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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user