summaryrefslogtreecommitdiff
path: root/include/libcamera/buffer.h
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund@ragnatech.se>2019-11-21 18:36:49 +0100
committerNiklas Söderlund <niklas.soderlund@ragnatech.se>2020-01-12 16:10:37 +0100
commit9c4bc73c2f4499d5aadba6b899d8e20876f65612 (patch)
tree2fafeeeda6475453b8776f72aa6a32a7b4e8ebea /include/libcamera/buffer.h
parent6a735f014a4fa1734dbb55ab8ff9404b3d8a9610 (diff)
libcamera: buffer: Add FrameMetadata container for metadata information
With the introduction of FrameBuffer objects, the metadata information related to captured frames will not be stored directly in the frame buffer object. Add a new FrameMetadata class to hold this information. 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/libcamera/buffer.h')
-rw-r--r--include/libcamera/buffer.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/libcamera/buffer.h b/include/libcamera/buffer.h
index 80602124..0b95e41a 100644
--- a/include/libcamera/buffer.h
+++ b/include/libcamera/buffer.h
@@ -16,6 +16,23 @@ namespace libcamera {
class Request;
class Stream;
+struct FrameMetadata {
+ enum Status {
+ FrameSuccess,
+ FrameError,
+ FrameCancelled,
+ };
+
+ struct Plane {
+ unsigned int bytesused;
+ };
+
+ Status status;
+ unsigned int sequence;
+ uint64_t timestamp;
+ std::vector<Plane> planes;
+};
+
class Plane final
{
public: