summaryrefslogtreecommitdiff
path: root/test/v4l2_compat/meson.build
diff options
context:
space:
mode:
authorJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2021-06-28 21:55:00 +0200
committerJean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>2021-07-09 21:20:22 +0200
commitf23f3922b31651812c6c9da85023bd68c18d89b0 (patch)
tree9d627acffd3de92675f690fd3046b6307e8a794b /test/v4l2_compat/meson.build
parent89219aea936b23cabb03204e80dcf958f3474e32 (diff)
ipa: libipa: Fixups in CameraSensorHelpers
A few lines needed to be wrapped under 80 lines. Remove some unneeded documentation and minor typos. Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'test/v4l2_compat/meson.build')
0 files changed, 0 insertions, 0 deletions
ss="hl com"> * non-standard parameters which cannot be controlled through the V4L2 format * negotiation API. * * Controls are identified by a numerical ID, defined by the V4L2 kernel headers * and have an associated type. Each control has a value, which is the data that * can be modified with V4L2Device::setControls() or retrieved with * V4L2Device::getControls(). * * The control's type along with the control's flags define the type of the * control's value content. Controls can transport a single data value stored in * variable inside the control, or they might as well deal with more complex * data types, such as arrays of matrices, stored in a contiguous memory * locations associated with the control and called 'the payload'. Such controls * are called 'compound controls' and are currently not supported by the * libcamera V4L2 control framework. * * libcamera implements support for controls using the V4L2 Extended Control * API, which allows future handling of controls with payloads of arbitrary * sizes. * * The libcamera V4L2 Controls framework operates on lists of controls, wrapped * by the ControlList class, to match the V4L2 extended controls API. The * interface to set and get control is implemented by the V4L2Device class, and * this file only provides the data type definitions. * * \todo Add support for compound controls */ namespace libcamera { namespace { std::string v4l2_ctrl_name(const struct v4l2_query_ext_ctrl &ctrl) { size_t len = strnlen(ctrl.name, sizeof(ctrl.name)); return std::string(static_cast<const char *>(ctrl.name), len); } ControlType v4l2_ctrl_type(const struct v4l2_query_ext_ctrl &ctrl) { switch (ctrl.type) { case V4L2_CTRL_TYPE_BOOLEAN: return ControlTypeBool; case V4L2_CTRL_TYPE_INTEGER: return ControlTypeInteger32; case V4L2_CTRL_TYPE_INTEGER64: return ControlTypeInteger64; case V4L2_CTRL_TYPE_MENU: case V4L2_CTRL_TYPE_BUTTON: case V4L2_CTRL_TYPE_BITMASK: case V4L2_CTRL_TYPE_INTEGER_MENU: /* * More precise types may be needed, for now use a 32-bit