libcamera: v4l2_controls: Replace V4L2ControlInfo with V4L2ControlRange
The V4L2ControlInfo class only stores a ControlRange. Make it inherit from ControlRange to provide a convenience constructor from a struct v4l2_query_ext_ctrl and rename it to V4L2ControlRange. 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
7bb4d7144c
commit
207d57c8b4
7 changed files with 54 additions and 73 deletions
|
@ -342,7 +342,7 @@ int V4L2Device::ioctl(unsigned long request, void *argp)
|
|||
*/
|
||||
void V4L2Device::listControls()
|
||||
{
|
||||
std::map<const ControlId *, V4L2ControlInfo> ctrls;
|
||||
std::map<const ControlId *, V4L2ControlRange> ctrls;
|
||||
struct v4l2_query_ext_ctrl ctrl = {};
|
||||
|
||||
/* \todo Add support for menu and compound controls. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue