mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-12 23:09:45 +03:00
libcamera: v4l2_controls: Remove V4L2ControlList class
The V4L2ControlList class only provides a convenience constructor for the ControlList, which can easily be moved to the ControlList class and may benefit it later (to construct a ControlList from controls supported by a camera). Move the constructor and remove V4L2ControlList. 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
319d6ae8e3
commit
ba9a62c836
9 changed files with 16 additions and 39 deletions
|
@ -46,7 +46,7 @@ protected:
|
|||
const ControlRange &saturation = info.find(V4L2_CID_SATURATION)->second;
|
||||
|
||||
/* Test getting controls. */
|
||||
V4L2ControlList ctrls(info);
|
||||
ControlList ctrls(info);
|
||||
ctrls.set(V4L2_CID_BRIGHTNESS, -1);
|
||||
ctrls.set(V4L2_CID_CONTRAST, -1);
|
||||
ctrls.set(V4L2_CID_SATURATION, -1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue