Show a patch.

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

{
    "id": 812,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/812/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/812/",
    "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": "<20190326083902.26121-18-jacopo@jmondi.org>",
    "date": "2019-03-26T08:39:00",
    "name": "[libcamera-devel,v5,17/19] libcamera: ipu3: Use NV12 as default image format",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "c462401fe8caab72ac1ac1a07767d297600aa86d",
    "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/812/mbox/",
    "series": [
        {
            "id": 219,
            "url": "https://patchwork.libcamera.org/api/1.1/series/219/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=219",
            "date": "2019-03-26T08:38:43",
            "name": "libcamera: ipu3: Add ImgU support",
            "version": 5,
            "mbox": "https://patchwork.libcamera.org/series/219/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/812/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/812/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<jacopo@jmondi.org>",
        "Received": [
            "from relay10.mail.gandi.net (relay10.mail.gandi.net\n\t[217.70.178.230])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id D54296110D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 26 Mar 2019 09:38:41 +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 relay10.mail.gandi.net (Postfix) with ESMTPSA id 222BF240006;\n\tTue, 26 Mar 2019 08:38:40 +0000 (UTC)"
        ],
        "From": "Jacopo Mondi <jacopo@jmondi.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Tue, 26 Mar 2019 09:39:00 +0100",
        "Message-Id": "<20190326083902.26121-18-jacopo@jmondi.org>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<20190326083902.26121-1-jacopo@jmondi.org>",
        "References": "<20190326083902.26121-1-jacopo@jmondi.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v5 17/19] libcamera: ipu3: Use NV12 as\n\tdefault image format",
        "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, 26 Mar 2019 08:38:42 -0000"
    },
    "content": "Now that images come from the ImgU output, hardcode NV12 as default\noutput format.\n\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/libcamera/pipeline/ipu3/ipu3.cpp | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp\nindex 7a5e715458ae..7b7baa5ac5fb 100644\n--- a/src/libcamera/pipeline/ipu3/ipu3.cpp\n+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp\n@@ -253,13 +253,13 @@ PipelineHandlerIPU3::streamConfiguration(Camera *camera,\n \n \tconfig->width = maxRange.maxWidth;\n \tconfig->height = maxRange.maxHeight;\n-\tconfig->pixelFormat = cio2->maxSizes_.first;\n+\tconfig->pixelFormat = V4L2_PIX_FMT_NV12;\n \tconfig->bufferCount = IPU3_BUFFER_COUNT;\n \n \tLOG(IPU3, Debug)\n \t\t<< \"Stream format set to: \" << config->width << \"x\"\n \t\t<< config->height << \"-0x\" << std::hex << std::setfill('0')\n-\t\t<< std::setw(4) << config->pixelFormat;\n+\t\t<< std::setw(8) << config->pixelFormat;\n \n \treturn configs;\n }\n",
    "prefixes": [
        "libcamera-devel",
        "v5",
        "17/19"
    ]
}