Show a patch.

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

{
    "id": 21472,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/21472/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/21472/",
    "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": "<20241002161933.247091-2-stefan.klug@ideasonboard.com>",
    "date": "2024-10-02T16:19:19",
    "name": "[v1,1/8] libcamera: Add debug control space",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "6388cd51b8e9409d5bad21ba509bd9c88b2f5003",
    "submitter": {
        "id": 184,
        "url": "https://patchwork.libcamera.org/api/1.1/people/184/?format=api",
        "name": "Stefan Klug",
        "email": "stefan.klug@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/21472/mbox/",
    "series": [
        {
            "id": 4648,
            "url": "https://patchwork.libcamera.org/api/1.1/series/4648/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4648",
            "date": "2024-10-02T16:19:18",
            "name": "Add support for IPA debugging metadata",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/4648/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/21472/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/21472/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 291FBBD80A\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed,  2 Oct 2024 16:20:14 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id A951E63527;\n\tWed,  2 Oct 2024 18:20:13 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 529966351F\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed,  2 Oct 2024 18:20:12 +0200 (CEST)",
            "from ideasonboard.com (unknown\n\t[IPv6:2a00:6020:448c:6c00:b246:b33f:c662:8ae1])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 7293BFEF;\n\tWed,  2 Oct 2024 18:18:38 +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=\"UNBJsP4j\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1727885919;\n\tbh=RxTwztA94Dg1TkGcOxHsM32CTWg2bPvgRPc88Cq3W3w=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=UNBJsP4jtTBLJQeAQugPHceXfufOhzLWSh50edjDUVV6CM9OOtkrPotZX0Tr4QW3u\n\tkS7F7VCB7Uh2cqq+9/gLB2kS4Z+AERsr4RItsa4hGKxhIixW8lkUqXEPiuumI//OKp\n\tHgRB6owSve8Gqmns93PHIGUdYphGfJnRxG9SOlwc=",
        "From": "Stefan Klug <stefan.klug@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Stefan Klug <stefan.klug@ideasonboard.com>",
        "Subject": "[PATCH v1 1/8] libcamera: Add debug control space",
        "Date": "Wed,  2 Oct 2024 18:19:19 +0200",
        "Message-ID": "<20241002161933.247091-2-stefan.klug@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.43.0",
        "In-Reply-To": "<20241002161933.247091-1-stefan.klug@ideasonboard.com>",
        "References": "<20241002161933.247091-1-stefan.klug@ideasonboard.com>",
        "MIME-Version": "1.0",
        "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": "Add a new 'debug' controls namespace for the upcoming implementation of\ndebug metadata.\n\nSigned-off-by: Stefan Klug <stefan.klug@ideasonboard.com>\n---\n include/libcamera/meson.build        |  3 ++-\n src/libcamera/control_ids_debug.yaml | 11 +++++++++++\n src/libcamera/control_ranges.yaml    |  5 ++++-\n 3 files changed, 17 insertions(+), 2 deletions(-)\n create mode 100644 src/libcamera/control_ids_debug.yaml",
    "diff": "diff --git a/include/libcamera/meson.build b/include/libcamera/meson.build\nindex a969a95dbf7a..152806988479 100644\n--- a/include/libcamera/meson.build\n+++ b/include/libcamera/meson.build\n@@ -36,6 +36,7 @@ controls_map = {\n     'controls': {\n         'draft': 'control_ids_draft.yaml',\n         'core': 'control_ids_core.yaml',\n+        'debug': 'control_ids_debug.yaml',\n         'rpi/vc4': 'control_ids_rpi.yaml',\n     },\n \n@@ -55,7 +56,7 @@ foreach mode, entry : controls_map\n     files_list = []\n     input_files = []\n     foreach vendor, header : entry\n-        if vendor != 'core' and vendor != 'draft'\n+        if vendor not in ['core', 'draft', 'debug']\n             if vendor not in pipelines\n                 continue\n             endif\ndiff --git a/src/libcamera/control_ids_debug.yaml b/src/libcamera/control_ids_debug.yaml\nnew file mode 100644\nindex 000000000000..11ddfd7cc8d8\n--- /dev/null\n+++ b/src/libcamera/control_ids_debug.yaml\n@@ -0,0 +1,11 @@\n+# SPDX-License-Identifier: LGPL-2.1-or-later\n+#\n+# Copyright (C) 2024, Ideas on Board Oy\n+#\n+%YAML 1.1\n+---\n+# Unless otherwise stated, all controls are bi-directional, i.e. they can be\n+# set through Request::controls() and returned out through Request::metadata().\n+vendor: debug\n+controls:\n+\ndiff --git a/src/libcamera/control_ranges.yaml b/src/libcamera/control_ranges.yaml\nindex d42447d04647..b89a517a64cd 100644\n--- a/src/libcamera/control_ranges.yaml\n+++ b/src/libcamera/control_ranges.yaml\n@@ -13,6 +13,9 @@ ranges:\n   draft: 10000\n   # Raspberry Pi vendor controls\n   rpi: 20000\n-  # Next range starts at 30000\n+  # Development controls\n+  debug: 30000\n+  # Next range starts at 40000\n+\n \n ...\n",
    "prefixes": [
        "v1",
        "1/8"
    ]
}