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 /src/libcamera/camera.cpp | |
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 'src/libcamera/camera.cpp')
-rw-r--r-- | src/libcamera/camera.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libcamera/camera.cpp b/src/libcamera/camera.cpp index 617ea99c..592dfd39 100644 --- a/src/libcamera/camera.cpp +++ b/src/libcamera/camera.cpp @@ -549,6 +549,18 @@ int Camera::release() } /** + * \brief Retrieve the list of controls supported by the camera + * + * Camera controls remain constant through the lifetime of the camera. + * + * \return A ControlInfoMap listing the controls supported by the camera + */ +const ControlInfoMap &Camera::controls() +{ + return pipe_->controls(this); +} + +/** * \brief Retrieve all the camera's stream information * * Retrieve all of the camera's static stream information. The static |