[libcamera-devel] [PATCH 8/9] libcamera: pipeline: ipu3: Use buffer mapping

Jacopo Mondi jacopo at jmondi.org
Fri Jul 5 00:53:33 CEST 2019


In order to support the usage of application provided buffer, retrieve
the buffer to use on video devices using the Request in order to allow
the stream to perform buffer mapping, if requested.

The IPU3 was the only pipeline handler to access the Request map
directly instead of using Request::findBuffer().

Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
---
 src/libcamera/pipeline/ipu3/ipu3.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index 28dcefe3d19f..49aa27ff20d4 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -725,7 +725,7 @@ int PipelineHandlerIPU3::queueRequest(Camera *camera, Request *request)
 
 	for (auto it : request->buffers()) {
 		IPU3Stream *stream = static_cast<IPU3Stream *>(it.first);
-		Buffer *buffer = it.second;
+		Buffer *buffer = request->findBuffer(stream);
 
 		int ret = stream->device_->dev->queueBuffer(buffer);
 		if (ret < 0)
-- 
2.21.0



More information about the libcamera-devel mailing list