summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2019-04-08 18:42:59 +0200
committerJacopo Mondi <jacopo@jmondi.org>2019-04-18 15:36:48 +0200
commit0527ba92adb7d97941ec4b8cd861178634f632b6 (patch)
tree56d382d34eee45d83104edf34ae433f10df995e7 /include
parente671485989cc308998db98ba17fc35224aaf5e14 (diff)
libcamera: request: Expose the Stream to Buffers map
Add to the Request class a method to access the map of Stream to Buffer. With the introduction of multiple stream support, pipeline handler should be able to access the map of streams at request queueing time. Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/request.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libcamera/request.h b/include/libcamera/request.h
index 0188bcab..58de6f00 100644
--- a/include/libcamera/request.h
+++ b/include/libcamera/request.h
@@ -32,6 +32,7 @@ public:
Request(const Request &) = delete;
Request &operator=(const Request &) = delete;
+ const std::map<Stream *, Buffer *> &buffers() const { return bufferMap_; }
int setBuffers(const std::map<Stream *, Buffer *> &streamMap);
Buffer *findBuffer(Stream *stream) const;