diff options
author | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-03-16 02:40:37 +0100 |
---|---|---|
committer | Niklas Söderlund <niklas.soderlund@ragnatech.se> | 2020-03-27 16:27:28 +0100 |
commit | 417e3143a99493d89fbb5a3f3ccd82a716f5d53a (patch) | |
tree | 24f34538f4f4251ef4c876933c571bb2de75a62d /include | |
parent | 38f2efb05cef01af711a3caa2d2456d905164ba5 (diff) |
libcamera: FrameBuffer: Add a method to copy buffer content
This method may be used to memory copy a whole FrameBuffer content
from another buffer. The operation is not fast and should not be used
without great care by pipelines.
The intended use-case is to have an option to copy out RAW buffers from
the middle of a pipeline.
Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/buffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libcamera/buffer.h b/include/libcamera/buffer.h index 8e5ec699..ef3a3b36 100644 --- a/include/libcamera/buffer.h +++ b/include/libcamera/buffer.h @@ -57,6 +57,7 @@ public: unsigned int cookie() const { return cookie_; } void setCookie(unsigned int cookie) { cookie_ = cookie; } + int copyFrom(const FrameBuffer *src); private: friend class Request; /* Needed to update request_. */ friend class V4L2VideoDevice; /* Needed to update metadata_. */ |