libcamera: v4l2_controls: Remove V4L2ControlInfo type field
The V4L2ControlInfo type field stores the V4L2 control type. It partly duplicates the V4L2ControlInfo id().type() that stores the corresponding libcamera control type. The two fields are not strictly identical, but having two types doesn't provide us with any extra value. As this is confusing, remove the V4L2ControlInfo type field. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Tested-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
@@ -127,7 +127,6 @@ V4L2ControlId::V4L2ControlId(const struct v4l2_query_ext_ctrl &ctrl)
|
||||
V4L2ControlInfo::V4L2ControlInfo(const struct v4l2_query_ext_ctrl &ctrl)
|
||||
: id_(ctrl)
|
||||
{
|
||||
type_ = ctrl.type;
|
||||
size_ = ctrl.elem_size * ctrl.elems;
|
||||
|
||||
if (ctrl.type == V4L2_CTRL_TYPE_INTEGER64)
|
||||
@@ -144,12 +143,6 @@ V4L2ControlInfo::V4L2ControlInfo(const struct v4l2_query_ext_ctrl &ctrl)
|
||||
* \return The V4L2 control ID
|
||||
*/
|
||||
|
||||
/**
|
||||
* \fn V4L2ControlInfo::type()
|
||||
* \brief Retrieve the control type as defined by V4L2_CTRL_TYPE_*
|
||||
* \return The V4L2 control type
|
||||
*/
|
||||
|
||||
/**
|
||||
* \fn V4L2ControlInfo::size()
|
||||
* \brief Retrieve the control value data size (in bytes)
|
||||
|
||||
Reference in New Issue
Block a user