libcamera/test/controls
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
..
control_info.cpp controls: Add boolean constructors for ControlInfo 2021-08-02 18:07:16 +09:00
control_info_map.cpp
control_list.cpp test: control_list: Test ControlList::merge() 2021-05-06 15:08:34 +02:00
control_value.cpp
meson.build libcamera: rename public libcamera dependency 2021-06-25 16:11:11 +01:00