libcamera/test
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
..
libtest test: Move include definitions to libtest 2019-01-02 11:08:20 +02:00
media_device libcamera: device_enumerator: Reference-count MediaDevice instances 2019-01-24 22:24:11 +02:00
pipeline libcamera: device_enumerator: Reference-count MediaDevice instances 2019-01-24 22:24:11 +02:00
v4l2_device libcamera: v4l2_device: Simplify exportBuffers() 2019-02-13 15:50:09 +00:00
event-dispatcher.cpp tests: event-dispatcher: Add processEvents() interruption test 2019-01-23 18:51:56 +02:00
event.cpp test: Add event notifier test 2019-01-08 16:23:16 +02:00
list-cameras.cpp libcamera: camera: Handle camera objects through shared pointers 2019-01-21 11:13:53 +02:00
meson.build tests: Test event dispatcher interruption by signal 2019-01-23 18:51:56 +02:00
signal.cpp libcamera: signal: Disconnect signal automatically on slot deletion 2019-02-13 13:23:43 +02:00
timer.cpp test: timer: Add a 32 bit wraparound test 2019-01-17 21:31:33 +00:00