Show a patch.

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

{
    "id": 407,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/407/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/407/",
    "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": "<20190126162859.32031-2-jacopo@jmondi.org>",
    "date": "2019-01-26T16:28:58",
    "name": "[libcamera-devel,1/2] libcamera: ipu3: Add method to retrieve camera data",
    "commit_ref": "ebc4cab8626f449a5f028cfa52fd7a6eb3d57184",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "f74c811cf4846a127f01fb1b4e3f61edfdc4720c",
    "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/407/mbox/",
    "series": [
        {
            "id": 142,
            "url": "https://patchwork.libcamera.org/api/1.1/series/142/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=142",
            "date": "2019-01-26T16:28:57",
            "name": "libcamera: ipu3: more review fixes",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/142/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/407/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/407/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<jacopo@jmondi.org>",
        "Received": [
            "from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net\n\t[217.70.183.200])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id B07F760B2D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 26 Jan 2019 17:28:53 +0100 (CET)",
            "from uno.homenet.telecomitalia.it\n\t(host20-49-dynamic.18-79-r.retail.telecomitalia.it [79.18.49.20])\n\t(Authenticated sender: jacopo@jmondi.org)\n\tby relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 2CEA220004;\n\tSat, 26 Jan 2019 16:28:52 +0000 (UTC)"
        ],
        "X-Originating-IP": "79.18.49.20",
        "From": "Jacopo Mondi <jacopo@jmondi.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Sat, 26 Jan 2019 17:28:58 +0100",
        "Message-Id": "<20190126162859.32031-2-jacopo@jmondi.org>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20190126162859.32031-1-jacopo@jmondi.org>",
        "References": "<20190126162859.32031-1-jacopo@jmondi.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 1/2] libcamera: ipu3: Add method to\n\tretrieve camera data",
        "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": "Sat, 26 Jan 2019 16:28:53 -0000"
    },
    "content": "Provide a method for the IPU3 pipeline handler that hides the downcast\nrequired to return an \"IPU3CameraData *\" reference from the\nPipelineHandler::cameraData() method.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/libcamera/pipeline/ipu3/ipu3.cpp | 6 ++++++\n 1 file changed, 6 insertions(+)",
    "diff": "diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp\nindex d74655d..64f639f 100644\n--- a/src/libcamera/pipeline/ipu3/ipu3.cpp\n+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp\n@@ -42,6 +42,12 @@ private:\n \tstd::shared_ptr<MediaDevice> cio2_;\n \tstd::shared_ptr<MediaDevice> imgu_;\n \n+\tIPU3CameraData *cameraData(const Camera *camera)\n+\t{\n+\t\treturn static_cast<IPU3CameraData *>(\n+\t\t\tPipelineHandler::cameraData(camera));\n+\t}\n+\n \tV4L2Device *createVideoDevice(unsigned int id);\n \tvoid registerCameras();\n };\n",
    "prefixes": [
        "libcamera-devel",
        "1/2"
    ]
}