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>
This commit is contained in:
Niklas Söderlund
2019-11-21 18:36:49 +01:00
parent 6a735f014a
commit 9c4bc73c2f
2 changed files with 90 additions and 0 deletions
+17
View File
@@ -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: