libcamera/test/v4l2_device
Kieran Bingham 03fcc154eb libcamera: v4l2_device: Simplify exportBuffers()
exportBuffers() can only operate on an existing BufferPool allocation. The
pool identifies its size through its .count() method.

Passing a count in to the exportBuffers() call is redundant and can be
incorrect if the value is not the same as the BufferPool size.

Simplify the function and remove the unnecessary argument, correcting all uses
throughout the code base.

While we're here, remove the createBuffers() helper from the V4L2DeviceTest
which only served to obfuscate which pool the buffers were being allocated for.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2019-02-13 15:50:09 +00:00
..
capture_async.cpp libcamera: v4l2_device: Simplify exportBuffers() 2019-02-13 15:50:09 +00:00
double_open.cpp test: v4l2_device: Add test suite and initial test 2019-01-17 21:55:27 +00:00
meson.build test: v4l2_device: Provide asynchronous capture test 2019-02-06 06:49:43 +02:00
request_buffers.cpp libcamera: v4l2_device: Simplify exportBuffers() 2019-02-13 15:50:09 +00:00
stream_on_off.cpp libcamera: v4l2_device: Simplify exportBuffers() 2019-02-13 15:50:09 +00:00
v4l2_device_test.cpp test: v4l2_device: Use VIVID capture stream 2019-02-13 15:46:18 +00:00
v4l2_device_test.h libcamera: v4l2_device: Simplify exportBuffers() 2019-02-13 15:50:09 +00:00