libcamera: v4l2_controls: Derive V4L2ControlInfoMap from ControlInfoMap
Replace the std::map<> used as the base type for V4L2ControlInfoMap by ControlInfoMap, which is an alias for an std::unsorted_map<> with the same key and value types. This shortens the code. 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:
@@ -342,7 +342,7 @@ int V4L2Device::ioctl(unsigned long request, void *argp)
|
||||
*/
|
||||
void V4L2Device::listControls()
|
||||
{
|
||||
std::map<const ControlId *, ControlRange> ctrls;
|
||||
ControlInfoMap ctrls;
|
||||
struct v4l2_query_ext_ctrl ctrl = {};
|
||||
|
||||
/* \todo Add support for menu and compound controls. */
|
||||
|
||||
Reference in New Issue
Block a user