[libcamera-devel] [PATCH v2 09/13] libcamera: ipu3: Report pipeline depth
Jacopo Mondi
jacopo at jmondi.org
Tue Oct 20 20:05:30 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 4cbd7ba3007b..ce14e5083ed6 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -840,6 +840,7 @@ void IPU3CameraData::imguOutputBufferReady(FrameBuffer *buffer)
return;
/* Mark the request as complete. */
+ request->metadata().set(controls::draft::PipelineDepth, 3);
pipe_->completeRequest(camera_, request);
}
@@ -865,6 +866,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