diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2019-06-27 15:33:04 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-07-02 16:59:28 +0300 |
commit | b9bf9514eb7b08220763d7d72c3b1b83bdfe6ab0 (patch) | |
tree | cecfe4629242b616c0ce16e5e3461d122156d247 /include/libcamera/controls.h | |
parent | 20d5640ca49c76c89be5bebcc00981942c7a9c19 (diff) |
libcamera: camera: Provide a list of ControlInfo
Extend the Camera class to expose the controls it supports. Each
pipeline should generate a list of controls supported by each camera it
creates. These are represented by a ControlInfoMap, and an associated
ControlList of default values.
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'include/libcamera/controls.h')
-rw-r--r-- | include/libcamera/controls.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libcamera/controls.h b/include/libcamera/controls.h index 22061559..18293c94 100644 --- a/include/libcamera/controls.h +++ b/include/libcamera/controls.h @@ -99,6 +99,8 @@ static inline bool operator!=(const ControlInfo &lhs, const ControlId &rhs) return !(lhs == rhs); } +using ControlInfoMap = std::unordered_map<ControlId, ControlInfo>; + class ControlList { private: |