diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2019-11-22 17:31:08 +0100 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-01-12 16:10:37 +0100 |
commit | dea689e1f260b904697a9c2f3d05b7b5068d85e1 (patch) | |
tree | 3f4af3e375e64a7e54c4a044e0620679f7fe1032 /include | |
parent | 13724144f9bfd22f79d56431061bc55a887c1d10 (diff) |
libcamera: request: In addBuffer() do not fetch stream from Buffer
In the FrameBuffer interface the stream will not be available from the
buffer object as the buffer might be allocated externally. The
application needs to explicitly state which stream the buffer is being
added for to the request.
Extend the addBuffer() function to get this information explicitly from
the caller.
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/request.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libcamera/request.h b/include/libcamera/request.h index 728f380d..b8324224 100644 --- a/include/libcamera/request.h +++ b/include/libcamera/request.h @@ -39,7 +39,7 @@ public: ControlList &controls() { return *controls_; } ControlList &metadata() { return *metadata_; } const std::map<Stream *, Buffer *> &buffers() const { return bufferMap_; } - int addBuffer(std::unique_ptr<Buffer> buffer); + int addBuffer(Stream *stream, std::unique_ptr<Buffer> buffer); Buffer *findBuffer(Stream *stream) const; uint64_t cookie() const { return cookie_; } |