Show a patch.

GET /api/1.1/patches/10755/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 10755,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/10755/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/10755/",
    "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": "<20201228164003.53051-6-jacopo@jmondi.org>",
    "date": "2020-12-28T16:40:03",
    "name": "[libcamera-devel,v2,5/5] android: camera_device: Simplify properties.get()",
    "commit_ref": "0ed053245702d193b9c0ad7d8bda9e975ddfb6ed",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "1f13c30ebf3d20e5f822564a1f05faae308e1e5b",
    "submitter": {
        "id": 3,
        "url": "https://patchwork.libcamera.org/api/1.1/people/3/?format=api",
        "name": "Jacopo Mondi",
        "email": "jacopo@jmondi.org"
    },
    "delegate": {
        "id": 15,
        "url": "https://patchwork.libcamera.org/api/1.1/users/15/?format=api",
        "username": "jmondi",
        "first_name": "Jacopo",
        "last_name": "Mondi",
        "email": "jacopo@jmondi.org"
    },
    "mbox": "https://patchwork.libcamera.org/patch/10755/mbox/",
    "series": [
        {
            "id": 1556,
            "url": "https://patchwork.libcamera.org/api/1.1/series/1556/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1556",
            "date": "2020-12-28T16:39:58",
            "name": "android: support ColorFilterArrangement property",
            "version": 2,
            "mbox": "https://patchwork.libcamera.org/series/1556/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/10755/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/10755/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>",
        "X-Original-To": "parsemail@patchwork.libcamera.org",
        "Delivered-To": "parsemail@patchwork.libcamera.org",
        "Received": [
            "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id CB201C0F1C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 28 Dec 2020 16:39:59 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 808F362007;\n\tMon, 28 Dec 2020 17:39:59 +0100 (CET)",
            "from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net\n\t[217.70.183.193])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id AFFAF61FFA\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 28 Dec 2020 17:39:56 +0100 (CET)",
            "from uno.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 1D30124001A;\n\tMon, 28 Dec 2020 16:39:55 +0000 (UTC)"
        ],
        "X-Originating-IP": "2.224.242.101",
        "From": "Jacopo Mondi <jacopo@jmondi.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Mon, 28 Dec 2020 17:40:03 +0100",
        "Message-Id": "<20201228164003.53051-6-jacopo@jmondi.org>",
        "X-Mailer": "git-send-email 2.29.2",
        "In-Reply-To": "<20201228164003.53051-1-jacopo@jmondi.org>",
        "References": "<20201228164003.53051-1-jacopo@jmondi.org>",
        "MIME-Version": "1.0",
        "Subject": "[libcamera-devel] [PATCH v2 5/5] android: camera_device: Simplify\n\tproperties.get()",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.29",
        "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>",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "When accessing the value of a property by reading the properties\nControlList content with ControlList::get<>() it is not necessary to\nspecify the template type as it is already conveyed by the Control\ninstance provided as first argument.\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 src/android/camera_device.cpp | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/src/android/camera_device.cpp b/src/android/camera_device.cpp\nindex bbf016c323a7..7678d4485ce9 100644\n--- a/src/android/camera_device.cpp\n+++ b/src/android/camera_device.cpp\n@@ -853,7 +853,7 @@ const camera_metadata_t *CameraDevice::getStaticMetadata()\n \t/* Sensor static metadata. */\n \tif (properties.contains(properties::PixelArraySize)) {\n \t\tconst Size &size =\n-\t\t\tproperties.get<Size>(properties::PixelArraySize);\n+\t\t\tproperties.get(properties::PixelArraySize);\n \t\tstd::vector<int32_t> data{\n \t\t\tstatic_cast<int32_t>(size.width),\n \t\t\tstatic_cast<int32_t>(size.height),\n@@ -872,7 +872,7 @@ const camera_metadata_t *CameraDevice::getStaticMetadata()\n \n \tif (properties.contains(properties::PixelArrayActiveAreas)) {\n \t\tconst Span<const Rectangle> &rects =\n-\t\t\tproperties.get<Span<const Rectangle>>(properties::PixelArrayActiveAreas);\n+\t\t\tproperties.get(properties::PixelArrayActiveAreas);\n \t\tstd::vector<int32_t> data{\n \t\t\tstatic_cast<int32_t>(rects[0].x),\n \t\t\tstatic_cast<int32_t>(rects[0].y),\n",
    "prefixes": [
        "libcamera-devel",
        "v2",
        "5/5"
    ]
}