mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-21 15:53:54 +03:00
libcamera: control_ids: Generate map of all supported controls
In order to deserialise a ControlList, we will need to lookup ControlId instances based on their numerical ID. Generate a global map from the controls definitions to support such a lookup. 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:
parent
5af6a1a012
commit
33ee44dc16
5 changed files with 22 additions and 0 deletions
|
@ -111,6 +111,7 @@ private:
|
|||
ControlValue max_;
|
||||
};
|
||||
|
||||
using ControlIdMap = std::unordered_map<unsigned int, const ControlId *>;
|
||||
using ControlInfoMap = std::unordered_map<const ControlId *, ControlRange>;
|
||||
|
||||
class ControlList
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue