Patch Detail
Show a patch.
GET /api/patches/455/?format=api
{ "id": 455, "url": "https://patchwork.libcamera.org/api/patches/455/?format=api", "web_url": "https://patchwork.libcamera.org/patch/455/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/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": "<20190131181853.23739-3-niklas.soderlund@ragnatech.se>", "date": "2019-01-31T18:18:49", "name": "[libcamera-devel,v6,2/6] libcamera: stream: add initial StreamConfiguration structure", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "c81def4d90703784a939a2e8dfc5238ba274a849", "submitter": { "id": 5, "url": "https://patchwork.libcamera.org/api/people/5/?format=api", "name": "Niklas Söderlund", "email": "niklas.soderlund@ragnatech.se" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/455/mbox/", "series": [ { "id": 157, "url": "https://patchwork.libcamera.org/api/series/157/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=157", "date": "2019-01-31T18:18:47", "name": "libcamera: add basic support for streams and format configuration MIME-Version: 1.0", "version": 6, "mbox": "https://patchwork.libcamera.org/series/157/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/455/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/455/checks/", "tags": {}, "headers": { "Return-Path": "<niklas.soderlund@ragnatech.se>", "Received": [ "from vsp-unauthed02.binero.net (vsp-unauthed02.binero.net\n\t[195.74.38.227])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 7B81960C6A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 31 Jan 2019 19:19:13 +0100 (CET)", "from wyvern.c.hoisthospitality.com (unknown [217.64.245.162])\n\tby bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA\n\tid b4bbfc05-2584-11e9-b5ae-0050569116f7;\n\tThu, 31 Jan 2019 19:19:12 +0100 (CET)" ], "X-Halon-ID": "b4bbfc05-2584-11e9-b5ae-0050569116f7", "Authorized-sender": "niklas@soderlund.pp.se", "From": "=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Thu, 31 Jan 2019 19:18:49 +0100", "Message-Id": "<20190131181853.23739-3-niklas.soderlund@ragnatech.se>", "X-Mailer": "git-send-email 2.20.1", "In-Reply-To": "<20190131181853.23739-1-niklas.soderlund@ragnatech.se>", "References": "<20190131181853.23739-1-niklas.soderlund@ragnatech.se>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v6 2/6] libcamera: stream: add initial\n\tStreamConfiguration structure", "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, 31 Jan 2019 18:19:13 -0000" }, "content": "Add an initial StreamConfiguration implementation to hold configuration\ndata for a single stream of a Camera. In its current form not many\nconfiguration parameters are supported but it's expected the number of\noptions will grow over time.\n\nAt this stage the pixel format is represented as an unsigned int to\nallow for easy mapping to the V4L2 API. This might be subject to change\nin the future as we finalize how libcamera shall represent pixel\nformats.\n\nSigned-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n include/libcamera/stream.h | 6 ++++++\n src/libcamera/stream.cpp | 26 ++++++++++++++++++++++++++\n 2 files changed, 32 insertions(+)", "diff": "diff --git a/include/libcamera/stream.h b/include/libcamera/stream.h\nindex 4f47d85ed6382b36..4b24dd841dd64b64 100644\n--- a/include/libcamera/stream.h\n+++ b/include/libcamera/stream.h\n@@ -13,6 +13,12 @@ class Stream final\n {\n };\n \n+struct StreamConfiguration {\n+\tunsigned int width;\n+\tunsigned int height;\n+\tunsigned int pixelFormat;\n+};\n+\n } /* namespace libcamera */\n \n #endif /* __LIBCAMERA_STREAM_H__ */\ndiff --git a/src/libcamera/stream.cpp b/src/libcamera/stream.cpp\nindex 9417c5886185d35c..b0b4efe39c81e747 100644\n--- a/src/libcamera/stream.cpp\n+++ b/src/libcamera/stream.cpp\n@@ -47,4 +47,30 @@ namespace libcamera {\n * optimal stream for the task.\n */\n \n+/**\n+ * \\struct StreamConfiguration\n+ * \\brief Configuration parameters for a stream\n+ *\n+ * The StreamConfiguration structure models all information which can be\n+ * configured for a single video stream.\n+ */\n+\n+/**\n+ * \\var StreamConfiguration::width\n+ * \\brief Stream width in pixels\n+ */\n+\n+/**\n+ * \\var StreamConfiguration::height\n+ * \\brief Stream height in pixels\n+ */\n+\n+/**\n+ * \\var StreamConfiguration::pixelFormat\n+ * \\brief Stream pixel format\n+ *\n+ * This is a little endian four character code representation of the pixel\n+ * format described in V4L2 using the V4L2_PIX_FMT_* definitions.\n+ */\n+\n } /* namespace libcamera */\n", "prefixes": [ "libcamera-devel", "v6", "2/6" ] }