libcamera/test/controls
Laurent Pinchart a1c6b2b641 libcamera: controls: Support accessing controls by numerical ID
The ControlList class has template get() and set() methods to get and
set control values. The methods require a reference to a Control
instance, which is only available when calling them with a hardcoded
control. In order to support usage of ControlList for V4L2 controls, as
well as serialisation and deserialisation of ControlList, we need a way
to get and set control values based on a control numerical ID. Add new
contains(), get() and set() overload methods to do so.

As this change prepares the ControlList to be used for other objects
than camera, update its documentation accordingly.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Tested-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
2019-10-13 20:37:34 +03:00
..
control_list.cpp libcamera: controls: Support accessing controls by numerical ID 2019-10-13 20:37:34 +03:00
control_range.cpp libcamera: controls: Rename ControlInfo to ControlRange 2019-10-05 20:02:51 +03:00
control_value.cpp libcamera: controls: Use explicit 32-bit integer types 2019-10-04 19:33:08 +03:00
meson.build libcamera: controls: Rename ControlInfo to ControlRange 2019-10-05 20:02:51 +03:00