summaryrefslogtreecommitdiff
path: root/src/libcamera/request.cpp
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2019-06-20 14:01:38 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-07-02 16:59:32 +0300
commitb69ea51c7c556f2196bea3a8f6223cf728e80d4a (patch)
tree95ac2c72685334dd3b8c2349abc7765e53fe86e8 /src/libcamera/request.cpp
parent0adc13ff7626a12b227d30313b64ffb99a977531 (diff)
libcamera: request: Add a ControlList
Provide a ControlList on request objects to facilitate setting controls. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/libcamera/request.cpp')
-rw-r--r--src/libcamera/request.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp
index fa3ee46d..f0b59858 100644
--- a/src/libcamera/request.cpp
+++ b/src/libcamera/request.cpp
@@ -48,11 +48,27 @@ LOG_DEFINE_CATEGORY(Request)
* \param[in] camera The camera that creates the request
*/
Request::Request(Camera *camera)
- : camera_(camera), status_(RequestPending)
+ : camera_(camera), controls_(camera), status_(RequestPending)
{
}
/**
+ * \fn Request::controls()
+ * \brief Retrieve the request's ControlList
+ *
+ * Requests store a list of controls to be applied to all frames captured for
+ * the request. They are created with an empty list of controls that can be
+ * accessed through this method and updated with ControlList::operator[]() or
+ * ControlList::update().
+ *
+ * Only controls supported by the camera to which this request will be
+ * submitted shall be included in the controls list. Attempting to add an
+ * unsupported control causes undefined behaviour.
+ *
+ * \return A reference to the ControlList in this request
+ */
+
+/**
* \fn Request::buffers()
* \brief Retrieve the request's streams to buffers map
*