Show a patch.

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

{
    "id": 16249,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/16249/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/16249/",
    "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": "<20220616182350.17352-2-laurent.pinchart@ideasonboard.com>",
    "date": "2022-06-16T18:23:44",
    "name": "[libcamera-devel,1/7] media: v4l: Add packed YUV 4:4:4 YUVA and YUVX pixel formats",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "7edc2659dcd4355781df4ebac85838aae00b1d60",
    "submitter": {
        "id": 2,
        "url": "https://patchwork.libcamera.org/api/1.1/people/2/?format=api",
        "name": "Laurent Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/16249/mbox/",
    "series": [
        {
            "id": 3183,
            "url": "https://patchwork.libcamera.org/api/1.1/series/3183/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3183",
            "date": "2022-06-16T18:23:44",
            "name": "[libcamera-devel,1/7] media: v4l: Add packed YUV 4:4:4 YUVA and YUVX pixel formats",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/3183/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/16249/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/16249/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 94087C3273\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 16 Jun 2022 18:24:11 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id CB91065640;\n\tThu, 16 Jun 2022 20:24:10 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id EE3B4600F0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 16 Jun 2022 20:24:06 +0200 (CEST)",
            "from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 3500D415;\n\tThu, 16 Jun 2022 20:24:06 +0200 (CEST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1655403850;\n\tbh=ztBi00rSKDcSgkfJv3UH/XLkdSemXx4Zgh7eNV0uouA=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:\n\tFrom;\n\tb=nLdz1LVQ1C5Cxx2+qLnqzimNq8QaAIwRcNLgX71Xyw9N2Czlmvf7zg8inJBMZJJho\n\tJgKh5gd4DiOuRirVFz+NFVY3uPpCZ6MS3NIptBG1v7q3+dYSMyxYHdnTCfH1+H5O0c\n\tU34Joa1Tjo9LGJJOi+pWGYgv9B1VTLyt+4sKgnRAfiaxJsZKON93ijWIE/kI+wEe5r\n\t0evc2LTzHlQc50QuxKa2W1kKnNOOZVpipF0GYsC8iQt42WSwF9UWHL44qPECfBuCys\n\tbYBW1TVWj2fd6Iep9FdixG6kt6XPtQ1a2kYjpR30JdQwA4MvaIFoj+U90KNhpfK2Ey\n\tsI1A+TjfSWhxA==",
            "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1655403846;\n\tbh=ztBi00rSKDcSgkfJv3UH/XLkdSemXx4Zgh7eNV0uouA=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=L449YwWd7OrfX4ExuDlAKCM5KA+Ogu6cb2IO6xUte3VulhvsB8oEOxyQa89KQLl6V\n\tqwQ2G++C8Cpd/16DElQjbhMwPus/frF0MIQTzMxM8Mectp17Lq/vPOUf9uWCHLVk+s\n\tv7QwxLjGFe6GRkRz26/Hvm7kTFI5id3Sgu3LztlY="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"L449YwWd\"; dkim-atps=neutral",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Thu, 16 Jun 2022 21:23:44 +0300",
        "Message-Id": "<20220616182350.17352-2-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.35.1",
        "In-Reply-To": "<20220616182350.17352-1-laurent.pinchart@ideasonboard.com>",
        "References": "<20220616182350.17352-1-laurent.pinchart@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 1/7] media: v4l: Add packed YUV 4:4:4 YUVA\n\tand YUVX pixel formats",
        "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>",
        "From": "Laurent Pinchart via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>",
        "Reply-To": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "Cc": "Sakari Ailus <sakari.ailus@iki.fi>, linux-imx@nxp.com,\n\tkernel@pengutronix.de, Hans Verkuil <hverkuil-cisco@xs4all.nl>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "The new YUVA and YUVX are permutations of the existing AYUV and XYUV\nformats. They are use by the NXP i.MX8 ISI hardware.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\nReviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>\nReviewed-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n .../media/v4l/pixfmt-packed-yuv.rst           | 20 +++++++++++++++++++\n drivers/media/v4l2-core/v4l2-ioctl.c          |  2 ++\n include/uapi/linux/videodev2.h                |  2 ++\n 3 files changed, 24 insertions(+)",
    "diff": "diff --git a/Documentation/userspace-api/media/v4l/pixfmt-packed-yuv.rst b/Documentation/userspace-api/media/v4l/pixfmt-packed-yuv.rst\nindex 65520c3af7cf..bf283a1b5581 100644\n--- a/Documentation/userspace-api/media/v4l/pixfmt-packed-yuv.rst\n+++ b/Documentation/userspace-api/media/v4l/pixfmt-packed-yuv.rst\n@@ -220,6 +220,26 @@ the second byte and Y'\\ :sub:`7-0` in the third byte.\n       - Y'\\ :sub:`7-0`\n       - X\\ :sub:`7-0`\n \n+    * .. _V4L2-PIX-FMT-YUVA32:\n+\n+      - ``V4L2_PIX_FMT_YUVA32``\n+      - 'YUVA'\n+\n+      - Y'\\ :sub:`7-0`\n+      - Cb\\ :sub:`7-0`\n+      - Cr\\ :sub:`7-0`\n+      - A\\ :sub:`7-0`\n+\n+    * .. _V4L2-PIX-FMT-YUVX32:\n+\n+      - ``V4L2_PIX_FMT_YUVX32``\n+      - 'YUVX'\n+\n+      - Y'\\ :sub:`7-0`\n+      - Cb\\ :sub:`7-0`\n+      - Cr\\ :sub:`7-0`\n+      - X\\ :sub:`7-0`\n+\n     * .. _V4L2-PIX-FMT-YUV24:\n \n       - ``V4L2_PIX_FMT_YUV24``\ndiff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c\nindex f42f7ffcc247..18ed2227255a 100644\n--- a/drivers/media/v4l2-core/v4l2-ioctl.c\n+++ b/drivers/media/v4l2-core/v4l2-ioctl.c\n@@ -1297,6 +1297,8 @@ static void v4l_fill_fmtdesc(struct v4l2_fmtdesc *fmt)\n \tcase V4L2_PIX_FMT_XYUV32:\tdescr = \"32-bit XYUV 8-8-8-8\"; break;\n \tcase V4L2_PIX_FMT_VUYA32:\tdescr = \"32-bit VUYA 8-8-8-8\"; break;\n \tcase V4L2_PIX_FMT_VUYX32:\tdescr = \"32-bit VUYX 8-8-8-8\"; break;\n+\tcase V4L2_PIX_FMT_YUVA32:\tdescr = \"32-bit YUVA 8-8-8-8\"; break;\n+\tcase V4L2_PIX_FMT_YUVX32:\tdescr = \"32-bit YUVX 8-8-8-8\"; break;\n \tcase V4L2_PIX_FMT_YUV410:\tdescr = \"Planar YUV 4:1:0\"; break;\n \tcase V4L2_PIX_FMT_YUV420:\tdescr = \"Planar YUV 4:2:0\"; break;\n \tcase V4L2_PIX_FMT_HI240:\tdescr = \"8-bit Dithered RGB (BTTV)\"; break;\ndiff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h\nindex 343b95107fce..f6f9a690971e 100644\n--- a/include/uapi/linux/videodev2.h\n+++ b/include/uapi/linux/videodev2.h\n@@ -593,6 +593,8 @@ struct v4l2_pix_format {\n #define V4L2_PIX_FMT_XYUV32  v4l2_fourcc('X', 'Y', 'U', 'V') /* 32  XYUV-8-8-8-8  */\n #define V4L2_PIX_FMT_VUYA32  v4l2_fourcc('V', 'U', 'Y', 'A') /* 32  VUYA-8-8-8-8  */\n #define V4L2_PIX_FMT_VUYX32  v4l2_fourcc('V', 'U', 'Y', 'X') /* 32  VUYX-8-8-8-8  */\n+#define V4L2_PIX_FMT_YUVA32  v4l2_fourcc('Y', 'U', 'V', 'A') /* 32  YUVA-8-8-8-8  */\n+#define V4L2_PIX_FMT_YUVX32  v4l2_fourcc('Y', 'U', 'V', 'X') /* 32  YUVX-8-8-8-8  */\n #define V4L2_PIX_FMT_M420    v4l2_fourcc('M', '4', '2', '0') /* 12  YUV 4:2:0 2 lines y, 1 line uv interleaved */\n \n /* two planes -- one Y, one Cr + Cb interleaved  */\n",
    "prefixes": [
        "libcamera-devel",
        "1/7"
    ]
}