{"id":960,"url":"https://patchwork.libcamera.org/api/1.1/patches/960/?format=json","web_url":"https://patchwork.libcamera.org/patch/960/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/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":"<20190409192548.20325-6-jacopo@jmondi.org>","date":"2019-04-09T19:25:41","name":"[libcamera-devel,v4,05/12] libcamera: request: Expose the Stream to Buffers map","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"abf9faf25f4bdc62fc535cbb1a4464118c94cd17","submitter":{"id":3,"url":"https://patchwork.libcamera.org/api/1.1/people/3/?format=json","name":"Jacopo Mondi","email":"jacopo@jmondi.org"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/960/mbox/","series":[{"id":247,"url":"https://patchwork.libcamera.org/api/1.1/series/247/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=247","date":"2019-04-09T19:25:36","name":"libcamera: ipu3: Multiple streams support","version":4,"mbox":"https://patchwork.libcamera.org/series/247/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/960/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/960/checks/","tags":{},"headers":{"Return-Path":"<jacopo@jmondi.org>","Received":["from relay12.mail.gandi.net (relay12.mail.gandi.net\n\t[217.70.178.232])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 8FA3C60DB7\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue,  9 Apr 2019 21:25:08 +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 relay12.mail.gandi.net (Postfix) with ESMTPSA id 2C6D9200008;\n\tTue,  9 Apr 2019 19:25:08 +0000 (UTC)"],"From":"Jacopo Mondi <jacopo@jmondi.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Tue,  9 Apr 2019 21:25:41 +0200","Message-Id":"<20190409192548.20325-6-jacopo@jmondi.org>","X-Mailer":"git-send-email 2.21.0","In-Reply-To":"<20190409192548.20325-1-jacopo@jmondi.org>","References":"<20190409192548.20325-1-jacopo@jmondi.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v4 05/12] libcamera: request: Expose the\n\tStream to Buffers map","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":"Tue, 09 Apr 2019 19:25:08 -0000"},"content":"Add to the Request class a method to access the map to Stream to Buffer.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n include/libcamera/request.h |  2 ++\n src/libcamera/request.cpp   | 10 ++++++++++\n 2 files changed, 12 insertions(+)","diff":"diff --git a/include/libcamera/request.h b/include/libcamera/request.h\nindex 0dbd425115e8..2004312a2233 100644\n--- a/include/libcamera/request.h\n+++ b/include/libcamera/request.h\n@@ -37,6 +37,8 @@ public:\n \n \tStatus status() const { return status_; }\n \n+\tconst std::map<Stream *, Buffer *> &bufferMap() const { return bufferMap_; }\n+\n private:\n \tfriend class Camera;\n \tfriend class PipelineHandler;\ndiff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp\nindex e0e77e972411..46f9add98fde 100644\n--- a/src/libcamera/request.cpp\n+++ b/src/libcamera/request.cpp\n@@ -106,6 +106,16 @@ Buffer *Request::findBuffer(Stream *stream) const\n  * \\return The request completion status\n  */\n \n+/**\n+ * \\fn Request::bufferMap()\n+ * \\brief Retrieve the request' stream to buffer map\n+ *\n+ * Return a reference to the map that associates each Stream part of the\n+ * request to the Buffer the Stream output should be directed to.\n+ *\n+ * \\return The map of Stream to Buffers\n+ */\n+\n /**\n  * \\brief Prepare the resources for the completion handler\n  */\n","prefixes":["libcamera-devel","v4","05/12"]}