Show a patch.

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

{
    "id": 2922,
    "url": "https://patchwork.libcamera.org/api/patches/2922/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/2922/",
    "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": "<20200229164254.23604-5-laurent.pinchart@ideasonboard.com>",
    "date": "2020-02-29T16:42:27",
    "name": "[libcamera-devel,04/31] libcamera: ipa: Remove unused IPA control types",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "d562e09b8f9a3874589f855d5a2442fb1c254a23",
    "submitter": {
        "id": 2,
        "url": "https://patchwork.libcamera.org/api/people/2/?format=api",
        "name": "Laurent Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/2922/mbox/",
    "series": [
        {
            "id": 696,
            "url": "https://patchwork.libcamera.org/api/series/696/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=696",
            "date": "2020-02-29T16:42:23",
            "name": "libcamera: Add support for array controls",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/696/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/2922/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/2922/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<laurent.pinchart@ideasonboard.com>",
        "Received": [
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id A3A0862787\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 29 Feb 2020 17:43:23 +0100 (CET)",
            "from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi\n\t[81.175.216.236])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 336B733E;\n\tSat, 29 Feb 2020 17:43:23 +0100 (CET)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1582994603;\n\tbh=+wWhkoEz+xi/4MsIb+QgRnlaZWkFWTBMfQGULBbuYac=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=XXUfPJs+i9xk4N2QPR+tKjPKVRhrUXAc3u9jS4K2DpxzcWhOcdak06tqe51MTBM4+\n\tnvk65d7cObpJqC3xVbBICRgnfhqmctCFx9GN0KoMGx0VTvdm+g9wx2m7uegx1UiVc4\n\t0xkbCo2ymVN87jSt8akNoI6HXzNlhHEdnuGEoqCc=",
        "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Sat, 29 Feb 2020 18:42:27 +0200",
        "Message-Id": "<20200229164254.23604-5-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.24.1",
        "In-Reply-To": "<20200229164254.23604-1-laurent.pinchart@ideasonboard.com>",
        "References": "<20200229164254.23604-1-laurent.pinchart@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 04/31] libcamera: ipa: Remove unused IPA\n\tcontrol types",
        "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>",
        "X-List-Received-Date": "Sat, 29 Feb 2020 16:43:25 -0000"
    },
    "content": "From: Jacopo Mondi <jacopo@jmondi.org>\n\nThe ipa_control_range_data structure is only used to document the IPA\ncontrol serialization format, but isn't used in code at all as the\nControlRange entries are directly serialized to a byte stream buffer.\nThis applies to the ipa_control_value_data structure that is solely used\nby ipa_control_range_data.\n\nExpand the IPA control serialization format documentation to describe\nthe layout of control range data in words and diagrams instead of\nthrough a C structure. Remove the unused structures as a result.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n include/ipa/ipa_controls.h     | 11 ----------\n src/libcamera/ipa_controls.cpp | 38 ++++++++++++++--------------------\n 2 files changed, 16 insertions(+), 33 deletions(-)",
    "diff": "diff --git a/include/ipa/ipa_controls.h b/include/ipa/ipa_controls.h\nindex de3a017b0179..426d99689de2 100644\n--- a/include/ipa/ipa_controls.h\n+++ b/include/ipa/ipa_controls.h\n@@ -36,17 +36,6 @@ struct ipa_control_range_entry {\n \tuint32_t padding[1];\n };\n \n-union ipa_control_value_data {\n-\tbool b;\n-\tint32_t i32;\n-\tint64_t i64;\n-};\n-\n-struct ipa_control_range_data {\n-\tunion ipa_control_value_data min;\n-\tunion ipa_control_value_data max;\n-};\n-\n #ifdef __cplusplus\n }\n #endif\ndiff --git a/src/libcamera/ipa_controls.cpp b/src/libcamera/ipa_controls.cpp\nindex ed12830c0d9e..6ea71bc6dc46 100644\n--- a/src/libcamera/ipa_controls.cpp\n+++ b/src/libcamera/ipa_controls.cpp\n@@ -100,8 +100,22 @@\n  *\n  * Entries are described by the ipa_control_range_entry structure. They contain\n  * the numerical ID and type of the control. The control range data is stored\n- * in the data section as described by the ipa_control_range_data structure.\n- * The ipa_control_range_entry::offset field stores the offset from the\n+ * in the data section as described by the following diagram.\n+ *\n+ * ~~~~\n+ *           +-------------------------+       .\n+ *         / | ...                     |       | entry[n].offset\n+ *         | +-------------------------+ <-----´\n+ *    Data | | minimum value (#n)      | \\\n+ * section | +-------------------------+ | Entry #n\n+ *         | | maximum value (#n)      | /\n+ *         | +-------------------------+\n+ *         \\ | ...                     |\n+ *           +-------------------------+\n+ * ~~~~\n+ *\n+ * The minimum and maximum value are stored in the platform's native data\n+ * format. The ipa_control_range_entry::offset field stores the offset from the\n  * beginning of the data section to the range data.\n  *\n  * Range data in the data section shall be stored in the same order as the\n@@ -164,23 +178,3 @@\n  * \\var ipa_control_range_entry::padding\n  * Padding bytes (shall be set to 0)\n  */\n-\n-/**\n- * \\union ipa_control_value_data\n- * \\brief Serialized control value\n- * \\var ipa_control_value_data::b\n- * Value for ControlTypeBool controls\n- * \\var ipa_control_value_data::i32\n- * Value for ControlTypeInteger32 controls\n- * \\var ipa_control_value_data::i64\n- * Value for ControlTypeInteger64 controls\n- */\n-\n-/**\n- * \\struct ipa_control_range_data\n- * \\brief Serialized control range\n- * \\var ipa_control_range_data::min\n- * The control minimum value\n- * \\var ipa_control_range_data::max\n- * The control maximum value\n- */\n",
    "prefixes": [
        "libcamera-devel",
        "04/31"
    ]
}