diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2019-11-20 16:35:29 +0100 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2020-02-14 16:27:42 +0100 |
commit | 025149b050a4814d0600c0da88fbcc2181a5f226 (patch) | |
tree | 4b06f376f72a0b14ca504361c156385eb5a6666c /src/libcamera/pipeline_handler.cpp | |
parent | 2523771d7917a442cd53980b9ae88d25ae53fb38 (diff) |
libcamera: pipeline_handler: Add Camera properties
Associate to each Camera a ControlList which contains the Camera
properties as created by pipeline handlers in the pipeline handler's
CameraData and provide an operation to retrieve them.
Collect properties from the camera sensor in all pipeline handlers that
support one (IPU3, RKISP1 and VIMC).
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/libcamera/pipeline_handler.cpp')
-rw-r--r-- | src/libcamera/pipeline_handler.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/libcamera/pipeline_handler.cpp b/src/libcamera/pipeline_handler.cpp index 22889be4..8d623f54 100644 --- a/src/libcamera/pipeline_handler.cpp +++ b/src/libcamera/pipeline_handler.cpp @@ -99,6 +99,14 @@ LOG_DEFINE_CATEGORY(Pipeline) */ /** + * \var CameraData::properties_ + * \brief The list of properties supported by the camera + * + * The list of camera properties shall be initialised by the pipeline handler + * when creating the camera, and shall not be modified afterwards. + */ + +/** * \var CameraData::ipa_ * \brief The IPA module used by the camera * @@ -256,6 +264,17 @@ const ControlInfoMap &PipelineHandler::controls(Camera *camera) } /** + * \brief Retrieve the list of properties for a camera + * \param[in] camera The camera + * \return A ControlList of properties supported by \a camera + */ +const ControlList &PipelineHandler::properties(Camera *camera) +{ + CameraData *data = cameraData(camera); + return data->properties_; +} + +/** * \fn PipelineHandler::generateConfiguration() * \brief Generate a camera configuration for a specified camera * \param[in] camera The camera to generate a default configuration for |