libcamera/test
Paul Elder 10cdc914da controls: Add boolean constructors for ControlInfo
It would be convenient to be able to iterate over available boolean
values, for example for controls that designate if some function can be
enabled/disabled. The current min/max/def constructor is insufficient,
as .values() is empty, so the values cannot be easily iterated over, and
creating a Span of booleans does not work for the values constructor.

Add new constructors to ControlInfo that takes a set of booleans (if
both booleans are valid values) plus a default, and another that takes
only one boolean (if only one boolean is a valid value).

Update the ControlInfo test accordingly.

Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
2021-08-02 18:07:16 +09:00
..
camera libcamera: camera: Make stop() idempotent 2021-07-06 12:40:41 +02:00
controls controls: Add boolean constructors for ControlInfo 2021-08-02 18:07:16 +09:00
ipa libcamera/base: Validate internal headers as private 2021-06-25 16:11:11 +01:00
ipc libcamera/base: Validate internal headers as private 2021-06-25 16:11:11 +01:00
libtest libcamera/base: Validate internal headers as private 2021-06-25 16:11:11 +01:00
log libcamera/base: Validate internal headers as private 2021-06-25 16:11:11 +01:00
media_device libcamera/base: Validate internal headers as private 2021-06-25 16:11:11 +01:00
pipeline libcamera/base: Validate internal headers as private 2021-06-25 16:11:11 +01:00
process libcamera/base: Validate internal headers as private 2021-06-25 16:11:11 +01:00
serialization libcamera/base: Validate internal headers as private 2021-06-25 16:11:11 +01:00
stream libcamera: rename public libcamera dependency 2021-06-25 16:11:11 +01:00
v4l2_compat tests: v4l2_compat: Fix v4l2-compliance and v4l2-ctl version parsing 2020-07-17 18:50:10 +09:00
v4l2_subdevice libcamera: buffer: Rename buffer.h to framebuffer.h 2021-07-11 17:42:02 +03:00
v4l2_videodevice libcamera: buffer: Rename buffer.h to framebuffer.h 2021-07-11 17:42:02 +03:00
bayer-format.cpp test: bayer-format: Rectify internal header's #include path 2021-05-05 10:32:33 +02:00
byte-stream-buffer.cpp test: byte-stream-buffer: Initialize data array 2021-05-26 10:24:15 +02:00
camera-sensor.cpp libcamera/base: Move utils to the base library 2021-06-25 16:11:02 +01:00
delayed_controls.cpp test: delayed_controls: Rename delayed_contols.cpp to delayed_controls.cpp 2021-03-12 14:20:51 +00:00
event-dispatcher.cpp libcamera/base: Move extended base functionality 2021-06-25 16:11:08 +01:00
event-thread.cpp libcamera/base: Move event_notifier to base 2021-06-25 16:11:10 +01:00
event.cpp libcamera/base: Move event_notifier to base 2021-06-25 16:11:10 +01:00
file-descriptor.cpp libcamera/base: Move utils to the base library 2021-06-25 16:11:02 +01:00
file.cpp libcamera/base: Move File to base library 2021-06-25 16:11:10 +01:00
geometry.cpp test: geometry: Add unit tests for new geometry helper functions 2020-10-27 14:06:51 +02:00
hotplug-cameras.cpp libcamera/base: Move File to base library 2021-06-25 16:11:10 +01:00
mapped-buffer.cpp libcamera: buffer: Rename buffer.h to framebuffer.h 2021-07-11 17:42:02 +03:00
meson.build test: Ensure LIBCAMERA_BASE_PRIVATE isn't public 2021-06-25 16:11:11 +01:00
message.cpp test: message: Test recursive Thread::dispatchMessages() calls 2021-07-11 17:41:59 +03:00
object-delete.cpp libcamera/base: Move extended base functionality 2021-06-25 16:11:08 +01:00
object-invoke.cpp libcamera/base: Move extended base functionality 2021-06-25 16:11:08 +01:00
object.cpp libcamera/base: Move extended base functionality 2021-06-25 16:11:08 +01:00
pixel-format.cpp libcamera/base: Move utils to the base library 2021-06-25 16:11:02 +01:00
public-api.cpp test: Ensure LIBCAMERA_BASE_PRIVATE isn't public 2021-06-25 16:11:11 +01:00
signal-threads.cpp libcamera/base: Move extended base functionality 2021-06-25 16:11:08 +01:00
signal.cpp libcamera/base: Move extended base functionality 2021-06-25 16:11:08 +01:00
span.cpp libcamera/base: Move span to base library 2021-06-25 16:11:11 +01:00
threads.cpp libcamera/base: Move extended base functionality 2021-06-25 16:11:08 +01:00
timer-thread.cpp libcamera/base: Move extended base functionality 2021-06-25 16:11:08 +01:00
timer.cpp libcamera/base: Move extended base functionality 2021-06-25 16:11:08 +01:00
utils.cpp libcamera/base: Move span to base library 2021-06-25 16:11:11 +01:00