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:
@@ -337,7 +337,7 @@ int UVCCameraData::init(MediaEntity *entity)
|
||||
/* Initialise the supported controls. */
|
||||
const V4L2ControlInfoMap &controls = video_->controls();
|
||||
for (const auto &ctrl : controls) {
|
||||
const V4L2ControlRange &range = ctrl.second;
|
||||
const ControlRange &range = ctrl.second;
|
||||
const ControlId *id;
|
||||
|
||||
switch (ctrl.first->id()) {
|
||||
|
||||
Reference in New Issue
Block a user