Patch Detail
Show a patch.
GET /api/1.1/patches/857/?format=api
{ "id": 857, "url": "https://patchwork.libcamera.org/api/1.1/patches/857/?format=api", "web_url": "https://patchwork.libcamera.org/patch/857/", "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": "<20190402171309.6447-2-jacopo@jmondi.org>", "date": "2019-04-02T17:12:57", "name": "[libcamera-devel,v7,01/13] libcamera: geometry: Add 0-initialized SizeRange constructor", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "a110acfd09cf72a09186cd591054cfbe894638a7", "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/857/mbox/", "series": [ { "id": 231, "url": "https://patchwork.libcamera.org/api/1.1/series/231/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=231", "date": "2019-04-02T17:12:56", "name": "libcamera: ipu3: Add ImgU support", "version": 7, "mbox": "https://patchwork.libcamera.org/series/231/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/857/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/857/checks/", "tags": {}, "headers": { "Return-Path": "<jacopo@jmondi.org>", "Received": [ "from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net\n\t[217.70.183.199])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id C2FA56110E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 2 Apr 2019 19:12:30 +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 relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 522A8FF80D;\n\tTue, 2 Apr 2019 17:12:30 +0000 (UTC)" ], "X-Originating-IP": "2.224.242.101", "From": "Jacopo Mondi <jacopo@jmondi.org>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Tue, 2 Apr 2019 19:12:57 +0200", "Message-Id": "<20190402171309.6447-2-jacopo@jmondi.org>", "X-Mailer": "git-send-email 2.21.0", "In-Reply-To": "<20190402171309.6447-1-jacopo@jmondi.org>", "References": "<20190402171309.6447-1-jacopo@jmondi.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v7 01/13] libcamera: geometry: Add\n\t0-initialized SizeRange constructor", "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, 02 Apr 2019 17:12:31 -0000" }, "content": "Add constructor to SizeRange which initialize all the size range fields\nto 0.\n\nWhile at there make the in-line constructor declarations respect the\ncoding style by moving braces to a new line.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/libcamera/geometry.cpp | 11 ++++++++++-\n src/libcamera/include/geometry.h | 9 ++++++++-\n 2 files changed, 18 insertions(+), 2 deletions(-)", "diff": "diff --git a/src/libcamera/geometry.cpp b/src/libcamera/geometry.cpp\nindex 6dc8e74d2801..f76001d94562 100644\n--- a/src/libcamera/geometry.cpp\n+++ b/src/libcamera/geometry.cpp\n@@ -73,7 +73,16 @@ const std::string Rectangle::toString() const\n \n /**\n * \\fn SizeRange::SizeRange()\n- * \\brief Construct a size range\n+ * \\brief Construct a size range initialized to 0\n+ */\n+\n+/**\n+ * \\fn SizeRange::SizeRange(unsigned int minW, unsigned int minH, unsigned int maxW, unsigned int maxH)\n+ * \\brief Construct an initialized size range\n+ * \\param minW The minimum width\n+ * \\param minH The minimum height\n+ * \\param maxW The maximum width\n+ * \\param maxH The maximum height\n */\n \n /**\ndiff --git a/src/libcamera/include/geometry.h b/src/libcamera/include/geometry.h\nindex b14f9732f3db..567a54299b24 100644\n--- a/src/libcamera/include/geometry.h\n+++ b/src/libcamera/include/geometry.h\n@@ -22,10 +22,17 @@ struct Rectangle {\n };\n \n struct SizeRange {\n+\tSizeRange(void)\n+\t\t: SizeRange(0, 0, 0, 0)\n+\t{\n+\t}\n+\n \tSizeRange(unsigned int minW, unsigned int minH,\n \t\t unsigned int maxW, unsigned int maxH)\n \t\t: minWidth(minW), minHeight(minH), maxWidth(maxW),\n-\t\t maxHeight(maxH) {}\n+\t\t maxHeight(maxH)\n+\t{\n+\t}\n \n \tunsigned int minWidth;\n \tunsigned int minHeight;\n", "prefixes": [ "libcamera-devel", "v7", "01/13" ] }