Patch Detail
Show a patch.
GET /api/1.1/patches/1039/?format=api
{ "id": 1039, "url": "https://patchwork.libcamera.org/api/1.1/patches/1039/?format=api", "web_url": "https://patchwork.libcamera.org/patch/1039/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20190418104715.22622-8-jacopo@jmondi.org>", "date": "2019-04-18T10:47:08", "name": "[libcamera-devel,v5,07/14] libcamera: request: Expose the Stream to Buffers map", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "c3c226e7064cd3aeee06ef2930f467640135e79d", "submitter": { "id": 3, "url": "https://patchwork.libcamera.org/api/1.1/people/3/?format=api", "name": "Jacopo Mondi", "email": "jacopo@jmondi.org" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/1039/mbox/", "series": [ { "id": 255, "url": "https://patchwork.libcamera.org/api/1.1/series/255/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=255", "date": "2019-04-18T10:47:01", "name": "libcamera: ipu3: Multiple streams support", "version": 5, "mbox": "https://patchwork.libcamera.org/series/255/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/1039/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/1039/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 65BBE60DD5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 18 Apr 2019 12:46:35 +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 9437B1C0004;\n\tThu, 18 Apr 2019 10:46:34 +0000 (UTC)" ], "X-Originating-IP": "2.224.242.101", "From": "Jacopo Mondi <jacopo@jmondi.org>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Thu, 18 Apr 2019 12:47:08 +0200", "Message-Id": "<20190418104715.22622-8-jacopo@jmondi.org>", "X-Mailer": "git-send-email 2.21.0", "In-Reply-To": "<20190418104715.22622-1-jacopo@jmondi.org>", "References": "<20190418104715.22622-1-jacopo@jmondi.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v5 07/14] 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": "Thu, 18 Apr 2019 10:46:36 -0000" }, "content": "Add to the Request class a method to access the map of Stream to Buffer.\n\nWith the introduction of multiple stream support, pipeline handler\nshould be able to access the map of streams at request queueing time.\n\nReviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n include/libcamera/request.h | 1 +\n src/libcamera/request.cpp | 10 ++++++++++\n 2 files changed, 11 insertions(+)", "diff": "diff --git a/include/libcamera/request.h b/include/libcamera/request.h\nindex 0188bcab8383..58de6f00a554 100644\n--- a/include/libcamera/request.h\n+++ b/include/libcamera/request.h\n@@ -32,6 +32,7 @@ public:\n \tRequest(const Request &) = delete;\n \tRequest &operator=(const Request &) = delete;\n \n+\tconst std::map<Stream *, Buffer *> &buffers() const { return bufferMap_; }\n \tint setBuffers(const std::map<Stream *, Buffer *> &streamMap);\n \tBuffer *findBuffer(Stream *stream) const;\n \ndiff --git a/src/libcamera/request.cpp b/src/libcamera/request.cpp\nindex 502048683245..c429d1fb2f8a 100644\n--- a/src/libcamera/request.cpp\n+++ b/src/libcamera/request.cpp\n@@ -51,6 +51,16 @@ Request::Request(Camera *camera)\n {\n }\n \n+/**\n+ * \\fn Request::buffers()\n+ * \\brief Retrieve the request's streams to buffers 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 Buffer\n+ */\n+\n /**\n * \\brief Set the streams to capture with associated buffers\n * \\param[in] streamMap The map of streams to buffers\n", "prefixes": [ "libcamera-devel", "v5", "07/14" ] }