Show a patch.

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

{
    "id": 27510,
    "url": "https://patchwork.libcamera.org/api/patches/27510/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/27510/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/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": "<20260727110852.260904-1-barnabas.pocze@ideasonboard.com>",
    "date": "2026-07-27T11:08:52",
    "name": "[v1] libcamera: v4l2_videodevice: Use `VIDEO_MAX_PLANES`",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "582752709fa0f35d69d3a4d85aa443bf32683266",
    "submitter": {
        "id": 216,
        "url": "https://patchwork.libcamera.org/api/people/216/?format=api",
        "name": "Barnabás Pőcze",
        "email": "barnabas.pocze@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/27510/mbox/",
    "series": [
        {
            "id": 6085,
            "url": "https://patchwork.libcamera.org/api/series/6085/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=6085",
            "date": "2026-07-27T11:08:52",
            "name": "[v1] libcamera: v4l2_videodevice: Use `VIDEO_MAX_PLANES`",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/6085/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/27510/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/27510/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 D5147BDE4C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 27 Jul 2026 11:08:57 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id E063A67F5D;\n\tMon, 27 Jul 2026 13:08:56 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id C6FCC67EB2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 27 Jul 2026 13:08:55 +0200 (CEST)",
            "from pb-laptop.local (185.182.215.156.nat.pool.zt.hu\n\t[185.182.215.156])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 022DB492\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 27 Jul 2026 13:07:51 +0200 (CEST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"MW8H3d0v\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1785150472;\n\tbh=rPlKAlZtK2s47JOThovOHeALziEXJTJD5wNfalNeZZE=;\n\th=From:To:Subject:Date:From;\n\tb=MW8H3d0vpW0NZxrLgM3jfzb9S+Zuq5devFBB9Onl2b/RUrc0hz1o/SW5duIEksgGv\n\thAuY2jK2b3J6+6KdlPSLwE66EU0pn5cQvS70QbKRlyYw4VlR8ZVwA9rIMFIdWJOk4e\n\tTBNtDE4el3n0pl5/9YDdVxHdy0qXhx7R1ZY+kF7Q=",
        "From": "=?utf-8?q?Barnab=C3=A1s_P=C5=91cze?= <barnabas.pocze@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Subject": "[PATCH v1] libcamera: v4l2_videodevice: Use `VIDEO_MAX_PLANES`",
        "Date": "Mon, 27 Jul 2026 13:08:52 +0200",
        "Message-ID": "<20260727110852.260904-1-barnabas.pocze@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.55.0",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "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>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "The `V4L2DeviceFormat` type is directly initialized from `v4l2_pix_format_mplane`\nin `V4L2VideoDevice::getFormatMultiplane()`. That type can store a maxumim\nof 8 planes. So adjust the number of planes that `V4L2DeviceFormat` supports\nto match the V4L2 limit.\n\nSigned-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>\n---\n include/libcamera/internal/v4l2_videodevice.h | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/include/libcamera/internal/v4l2_videodevice.h b/include/libcamera/internal/v4l2_videodevice.h\nindex 10367e4e17..f63d74879f 100644\n--- a/include/libcamera/internal/v4l2_videodevice.h\n+++ b/include/libcamera/internal/v4l2_videodevice.h\n@@ -176,7 +176,7 @@ public:\n \tSize size;\n \tstd::optional<ColorSpace> colorSpace;\n \n-\tstd::array<Plane, 3> planes;\n+\tstd::array<Plane, VIDEO_MAX_PLANES> planes;\n \tunsigned int planesCount = 0;\n \n \tstd::string toString() const;\n",
    "prefixes": [
        "v1"
    ]
}