libcamera: buffer: Move captured metadata to FrameMetadata
Move the metadata retrieved when dequeuing a V4L2 buffer into a FrameMetadata object. This is done as a step to migrate to the FrameBuffer interface as the functions added to Buffer around FrameMetadata match the ones in FrameBuffer. Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
dea689e1f2
commit
5967363c0b
16 changed files with 78 additions and 113 deletions
|
@ -92,9 +92,11 @@ protected:
|
|||
|
||||
void captureBufferReady(Buffer *buffer)
|
||||
{
|
||||
const FrameMetadata &metadata = buffer->metadata();
|
||||
|
||||
std::cout << "Received capture buffer" << std::endl;
|
||||
|
||||
if (buffer->status() != Buffer::BufferSuccess)
|
||||
if (metadata.status != FrameMetadata::FrameSuccess)
|
||||
return;
|
||||
|
||||
output_->queueBuffer(buffer);
|
||||
|
@ -103,9 +105,11 @@ protected:
|
|||
|
||||
void outputBufferReady(Buffer *buffer)
|
||||
{
|
||||
const FrameMetadata &metadata = buffer->metadata();
|
||||
|
||||
std::cout << "Received output buffer" << std::endl;
|
||||
|
||||
if (buffer->status() != Buffer::BufferSuccess)
|
||||
if (metadata.status != FrameMetadata::FrameSuccess)
|
||||
return;
|
||||
|
||||
capture_->queueBuffer(buffer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue