libcamera/test/controls
Christian Rauch 5fd18af233 libcamera: controls: initialise control info to ControlTypeNone by default
The default ControlInfo constructor allows partially initialising the
min/max/def values. Uninitialised values are assigned to 0 by default.
This implicit initialisation makes it impossible to distinguish between
an uninitialised and an explicitly 0-initialised ControlValue.

Default construct the ControlValue in the ControlInfo default contructor to
explicitly represent uninitialised values by the ControlTypeNone type.

Signed-off-by: Christian Rauch <Rauch.Christian@gmx.de>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
2022-09-12 18:29:11 +09:00
..
control_info.cpp libcamera: controls: initialise control info to ControlTypeNone by default 2022-09-12 18:29:11 +09:00
control_info_map.cpp libcamera: pipelines: Use sensor ID as camera name 2020-08-05 20:07:13 +02:00
control_list.cpp test: control_list: Use get() to test for control presence 2022-07-20 13:25:02 +03:00
control_value.cpp test: controls: control_value: Test string control type 2020-03-20 16:47:45 +02:00
meson.build libcamera: rename public libcamera dependency 2021-06-25 16:11:11 +01:00