diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-10-13 23:34:29 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-10-15 22:33:29 +0300 |
commit | 6d2411fcb7483c7fee98824cafd1fabac3d75071 (patch) | |
tree | 07b38791f2786a70e452b0379d029b6570c4d378 /test/ipa/ipa_module_test.cpp | |
parent | f24f77e7f506b6134e2636be27db7227c5052a26 (diff) |
libcamera: v4l2_controls: Index V4L2ControlInfoMap by ControlId *
To bring the libcamera and V4L2 control info maps closer, index the
latter by ControlId * like the former. As V4L2ControlInfoMap is widely
indexed by V4L2 numerical IDs, add accessors based on numerical IDs.
This allows complete removal of the ControId pointer from the
V4L2ControlInfo, as the ControId is accessible as the key when iterating
over the map. A handful of users have to be modified to adapt to the
change.
The controlInfo argument from V4L2Device::updateControls() can also be
removed as it itsn't used anymore.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'test/ipa/ipa_module_test.cpp')
0 files changed, 0 insertions, 0 deletions