[libcamera-devel] [PATCH v3 10/14] libcamera: ipu3: Report pipeline depth
Jacopo Mondi
jacopo at jmondi.org
Wed Oct 21 16:36:31 CEST 2020
Report for each request the pipeline depth describing the number of
processing steps the frames went through.
Acked-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
---
src/libcamera/pipeline/ipu3/ipu3.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index a90683ea523a..5a6ee1a83e45 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -841,6 +841,7 @@ void IPU3CameraData::imguOutputBufferReady(FrameBuffer *buffer)
return;
/* Mark the request as complete. */
+ request->metadata().set(controls::draft::PipelineDepth, 3);
pipe_->completeRequest(camera_, request);
}
@@ -866,6 +867,7 @@ void IPU3CameraData::cio2BufferReady(FrameBuffer *buffer)
if (request->findBuffer(&rawStream_)) {
bool isComplete = pipe_->completeBuffer(camera_, request, buffer);
if (isComplete) {
+ request->metadata().set(controls::draft::PipelineDepth, 2);
pipe_->completeRequest(camera_, request);
return;
}
--
2.28.0
More information about the libcamera-devel
mailing list