mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-24 09:05:06 +03:00
libcamera: v4l2_controls: Store a ControlRange in V4L2ControlInfoMap
V4L2ControlRange only offers a convenience constructor for a ControlRange. Store the ControlRange instead of V4L2ControlRange in V4L2ControlInfoMap to make the map less dependent on V4L2 types. 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>
This commit is contained in:
parent
207d57c8b4
commit
1bfed95c1e
6 changed files with 27 additions and 29 deletions
|
@ -41,9 +41,9 @@ protected:
|
|||
return TestFail;
|
||||
}
|
||||
|
||||
const V4L2ControlRange &brightness = info.find(V4L2_CID_BRIGHTNESS)->second;
|
||||
const V4L2ControlRange &contrast = info.find(V4L2_CID_CONTRAST)->second;
|
||||
const V4L2ControlRange &saturation = info.find(V4L2_CID_SATURATION)->second;
|
||||
const ControlRange &brightness = info.find(V4L2_CID_BRIGHTNESS)->second;
|
||||
const ControlRange &contrast = info.find(V4L2_CID_CONTRAST)->second;
|
||||
const ControlRange &saturation = info.find(V4L2_CID_SATURATION)->second;
|
||||
|
||||
/* Test getting controls. */
|
||||
V4L2ControlList ctrls(info);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue