Show a patch.

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

{
    "id": 16457,
    "url": "https://patchwork.libcamera.org/api/patches/16457/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/16457/",
    "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": "<20220630101702.45781-5-jeanmichel.hautbois@ideasonboard.com>",
    "date": "2022-06-30T10:17:01",
    "name": "[libcamera-devel,4/5] utils: ipu3: display green disparity params",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "652614d02ef79af488a10675a13e5ddd01ad3791",
    "submitter": {
        "id": 75,
        "url": "https://patchwork.libcamera.org/api/people/75/?format=api",
        "name": "Jean-Michel Hautbois",
        "email": "jeanmichel.hautbois@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/16457/mbox/",
    "series": [
        {
            "id": 3237,
            "url": "https://patchwork.libcamera.org/api/series/3237/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3237",
            "date": "2022-06-30T10:16:58",
            "name": "[libcamera-devel,1/5] utils: ipu3: Introduce a parameters dump tool",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/3237/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/16457/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/16457/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 4A42ABE173\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 30 Jun 2022 10:17:16 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 5414E65658;\n\tThu, 30 Jun 2022 12:17:14 +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 8E8A56564E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 30 Jun 2022 12:17:07 +0200 (CEST)",
            "from tatooine.ideasonboard.com (unknown\n\t[IPv6:2a01:e0a:169:7140:4fb3:9c17:e136:8792])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id E6D689B1;\n\tThu, 30 Jun 2022 12:17:06 +0200 (CEST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1656584234;\n\tbh=JUorfA7CE7JKlP6v+ZG3Tzg7kT5i6dRMwZg8I7Pn1OA=;\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:\n\tFrom;\n\tb=gMBk5DFK4lmEdzNGhHsaftLSAK6NT5Xjaky8xfmF6kqHjy2/kxwg3NmBwuGxBJUcY\n\tXSUQCjWtCZ6HkAzMURZfaCO9d3VoL4fOAA1m/u99T/pt5TDfdZ34q8YfBdFbmtkjpF\n\tahSwJtseuPx3cD+LGzUj++7K9bPtNyEjfGcnu4VnyAIkhlV+JO9KCNdnxn6x+ZZ4MU\n\tCGUrSWS5+aOGCznXOikBnW8qHEwYbeqqBKydX/JYPhJYpgtkFxor5YwYm0P4pwNVGx\n\t0QOxETPXPt1g8KrvZ+j9vmYdWXK3900Aer2pQuMXpr8NodzXQWQLNUp5v5rfXA9urk\n\tRg6eHR4+sH1Kw==",
            "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1656584227;\n\tbh=JUorfA7CE7JKlP6v+ZG3Tzg7kT5i6dRMwZg8I7Pn1OA=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=tF6lNQW405FtzF4I85UQisYK/uVUMKk02BoNRSfw7Q64kCrNhmiAMs1oi0OMgDlUH\n\txKe3pQ8sDA36jbBK9CEhDNmhBXF2ap7srkA1cglZ/lS6YLc2stTruuo185GHb6wq5r\n\tjCkq6H8HHAFQGEFCy3xQgNM0FJw+kK/QZJqwlH5s="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"tF6lNQW4\"; dkim-atps=neutral",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Thu, 30 Jun 2022 12:17:01 +0200",
        "Message-Id": "<20220630101702.45781-5-jeanmichel.hautbois@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20220630101702.45781-1-jeanmichel.hautbois@ideasonboard.com>",
        "References": "<20220630101702.45781-1-jeanmichel.hautbois@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 4/5] utils: ipu3: display green disparity\n\tparams",
        "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": "Jean-Michel Hautbois via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>",
        "Reply-To": "Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Display the shading gain coeff of red, green, blue and black. Those are\nused to calculate threshold given a pixel’s color value and its\ncoordinates in the image.\n---\n utils/ipu3/ipu3-dump-params.c | 20 ++++++++++++++++++++\n 1 file changed, 20 insertions(+)",
    "diff": "diff --git a/utils/ipu3/ipu3-dump-params.c b/utils/ipu3/ipu3-dump-params.c\nindex 257f2205..e34a7e53 100644\n--- a/utils/ipu3/ipu3-dump-params.c\n+++ b/utils/ipu3/ipu3-dump-params.c\n@@ -60,6 +60,21 @@ static void displayBNR(struct ipu3_uapi_params *params)\n \t\tbnr.thr_ctrl_shd.gb, bnr.thr_ctrl_shd.b);\n }\n \n+static void displayGD(struct ipu3_uapi_bnr_static_config_green_disparity *gd)\n+{\n+\tprintf(\"red: %u, green: %u, blue: %u, black: %u\\n\",\n+\t\tgd->gd_red,\n+\t\tgd->gd_green,\n+\t\tgd->gd_blue,\n+\t\tgd->gd_black);\n+\n+\tprintf(\"shading: %u, support: %u, clip: %u, central weight: %u\\n\",\n+\t\tgd->gd_shading,\n+\t\tgd->gd_support,\n+\t\tgd->gd_clip,\n+\t\tgd->gd_central_weight);\n+}\n+\n int main(int argc, char *argv[])\n {\n \tint in_fd;\n@@ -98,6 +113,11 @@ start:\n \t\tdisplayGrid(&params.acc_param.awb_fr.grid_cfg, \"awb_fr\");\n \t}\n \n+\tif (params.use.acc_green_disparity) {\n+\t\tprintf(\"\\n**** Green disparity parameters ****\\n\");\n+\t\tdisplayGD(&params.acc_param.green_disparity);\n+\t}\n+\n \tclose(in_fd);\n \n \treturn ret ? 1 : 0;\n",
    "prefixes": [
        "libcamera-devel",
        "4/5"
    ]
}