Patch Detail
Show a patch.
GET /api/patches/887/?format=api
{ "id": 887, "url": "https://patchwork.libcamera.org/api/patches/887/?format=api", "web_url": "https://patchwork.libcamera.org/patch/887/", "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": "<20190403080148.11479-3-jacopo@jmondi.org>", "date": "2019-04-03T08:01:37", "name": "[libcamera-devel,v8,02/13] libcamera: geometry: Add Size structure", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "0305a3505212b0fab330e802d29de4109793c521", "submitter": { "id": 3, "url": "https://patchwork.libcamera.org/api/people/3/?format=api", "name": "Jacopo Mondi", "email": "jacopo@jmondi.org" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/887/mbox/", "series": [ { "id": 235, "url": "https://patchwork.libcamera.org/api/series/235/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=235", "date": "2019-04-03T08:01:35", "name": "libcamera: ipu3: Add ImgU support", "version": 8, "mbox": "https://patchwork.libcamera.org/series/235/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/887/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/887/checks/", "tags": {}, "headers": { "Return-Path": "<jacopo@jmondi.org>", "Received": [ "from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net\n\t[217.70.183.195])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id A45B1610C5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 3 Apr 2019 10:01:10 +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 relay3-d.mail.gandi.net (Postfix) with ESMTPSA id DDE1960006;\n\tWed, 3 Apr 2019 08:01:09 +0000 (UTC)" ], "X-Originating-IP": "2.224.242.101", "From": "Jacopo Mondi <jacopo@jmondi.org>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Wed, 3 Apr 2019 10:01:37 +0200", "Message-Id": "<20190403080148.11479-3-jacopo@jmondi.org>", "X-Mailer": "git-send-email 2.21.0", "In-Reply-To": "<20190403080148.11479-1-jacopo@jmondi.org>", "References": "<20190403080148.11479-1-jacopo@jmondi.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v8 02/13] libcamera: geometry: Add Size\n\tstructure", "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": "Wed, 03 Apr 2019 08:01:11 -0000" }, "content": "Add a simple Size structure that contains an image width and height.\n\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\nReviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/libcamera/geometry.cpp | 29 +++++++++++++++++++++++++++++\n src/libcamera/include/geometry.h | 15 +++++++++++++++\n 2 files changed, 44 insertions(+)", "diff": "diff --git a/src/libcamera/geometry.cpp b/src/libcamera/geometry.cpp\nindex f76001d94562..d0c63c353ab3 100644\n--- a/src/libcamera/geometry.cpp\n+++ b/src/libcamera/geometry.cpp\n@@ -105,4 +105,33 @@ const std::string Rectangle::toString() const\n * \\brief The maximum image height\n */\n \n+/**\n+ * \\struct Size\n+ * \\brief Describe a two-dimensional size\n+ *\n+ * The Size structure defines a two-dimensional size with integer precision.\n+ */\n+\n+/**\n+ * \\fn Size::Size()\n+ * \\brief Construct a Size with width and height set to 0\n+ */\n+\n+/**\n+ * \\fn Size::Size(unsigned int width, unsigned int height)\n+ * \\brief Construct a Size with given \\a width and \\a height\n+ * \\param width The Size width\n+ * \\param height The Size height\n+ */\n+\n+/**\n+ * \\var Size::width\n+ * \\brief The Size width\n+ */\n+\n+/**\n+ * \\var Size::height\n+ * \\brief The Size height\n+ */\n+\n } /* namespace libcamera */\ndiff --git a/src/libcamera/include/geometry.h b/src/libcamera/include/geometry.h\nindex d8d587d3b47b..f41017aa47bf 100644\n--- a/src/libcamera/include/geometry.h\n+++ b/src/libcamera/include/geometry.h\n@@ -40,6 +40,21 @@ struct SizeRange {\n \tunsigned int maxHeight;\n };\n \n+struct Size {\n+\tSize()\n+\t\t: Size(0, 0)\n+\t{\n+\t}\n+\n+\tSize(unsigned int w, unsigned int h)\n+\t\t: width(w), height(h)\n+\t{\n+\t}\n+\n+\tunsigned int width;\n+\tunsigned int height;\n+};\n+\n } /* namespace libcamera */\n \n #endif /* __LIBCAMERA_GEOMETRY_H__ */\n", "prefixes": [ "libcamera-devel", "v8", "02/13" ] }