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:
parent
1bfed95c1e
commit
c957c8580a
3 changed files with 21 additions and 21 deletions
|
@ -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. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue