{"id":1629,"url":"https://patchwork.libcamera.org/api/patches/1629/?format=json","web_url":"https://patchwork.libcamera.org/patch/1629/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20190704225334.26170-9-jacopo@jmondi.org>","date":"2019-07-04T22:53:33","name":"[libcamera-devel,8/9] libcamera: pipeline: ipu3: Use buffer mapping","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"153692d198632ca009676401ecac1939edc5b8d4","submitter":{"id":3,"url":"https://patchwork.libcamera.org/api/people/3/?format=json","name":"Jacopo Mondi","email":"jacopo@jmondi.org"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/1629/mbox/","series":[{"id":407,"url":"https://patchwork.libcamera.org/api/series/407/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=407","date":"2019-07-04T22:53:25","name":"Add support for external bufferes","version":1,"mbox":"https://patchwork.libcamera.org/series/407/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/1629/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/1629/checks/","tags":{},"headers":{"Return-Path":"<jacopo@jmondi.org>","Received":["from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net\n\t[217.70.183.197])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id A01AE6156F\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri,  5 Jul 2019 00:52:32 +0200 (CEST)","from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 38EEC1C0008;\n\tThu,  4 Jul 2019 22:52:32 +0000 (UTC)"],"X-Originating-IP":"2.224.242.101","From":"Jacopo Mondi <jacopo@jmondi.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Fri,  5 Jul 2019 00:53:33 +0200","Message-Id":"<20190704225334.26170-9-jacopo@jmondi.org>","X-Mailer":"git-send-email 2.21.0","In-Reply-To":"<20190704225334.26170-1-jacopo@jmondi.org>","References":"<20190704225334.26170-1-jacopo@jmondi.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH 8/9] libcamera: pipeline: ipu3: Use buffer\n\tmapping","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Thu, 04 Jul 2019 22:52:32 -0000"},"content":"In order to support the usage of application provided buffer, retrieve\nthe buffer to use on video devices using the Request in order to allow\nthe stream to perform buffer mapping, if requested.\n\nThe IPU3 was the only pipeline handler to access the Request map\ndirectly instead of using Request::findBuffer().\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/libcamera/pipeline/ipu3/ipu3.cpp | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp\nindex 28dcefe3d19f..49aa27ff20d4 100644\n--- a/src/libcamera/pipeline/ipu3/ipu3.cpp\n+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp\n@@ -725,7 +725,7 @@ int PipelineHandlerIPU3::queueRequest(Camera *camera, Request *request)\n \n \tfor (auto it : request->buffers()) {\n \t\tIPU3Stream *stream = static_cast<IPU3Stream *>(it.first);\n-\t\tBuffer *buffer = it.second;\n+\t\tBuffer *buffer = request->findBuffer(stream);\n \n \t\tint ret = stream->device_->dev->queueBuffer(buffer);\n \t\tif (ret < 0)\n","prefixes":["libcamera-devel","8/9"]}