Show a patch.

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

{
    "id": 10947,
    "url": "https://patchwork.libcamera.org/api/patches/10947/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/10947/",
    "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": "<20210122092537.708375-4-naush@raspberrypi.com>",
    "date": "2021-01-22T09:25:34",
    "name": "[libcamera-devel,v2,3/6] uapi: raspberrypi: Update the bcm2835-isp header definition",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "b4ce3c3aa49bfa21660f80552fef0643510192b9",
    "submitter": {
        "id": 34,
        "url": "https://patchwork.libcamera.org/api/people/34/?format=api",
        "name": "Naushir Patuck",
        "email": "naush@raspberrypi.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/10947/mbox/",
    "series": [
        {
            "id": 1596,
            "url": "https://patchwork.libcamera.org/api/series/1596/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1596",
            "date": "2021-01-22T09:25:31",
            "name": "Raspberry Pi: Colour denoise",
            "version": 2,
            "mbox": "https://patchwork.libcamera.org/series/1596/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/10947/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/10947/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 70467BD808\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 22 Jan 2021 09:25:49 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 3F1D268241;\n\tFri, 22 Jan 2021 10:25:49 +0100 (CET)",
            "from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com\n\t[IPv6:2a00:1450:4864:20::32a])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 5D0EF68237\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 22 Jan 2021 10:25:46 +0100 (CET)",
            "by mail-wm1-x32a.google.com with SMTP id j18so3648533wmi.3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 22 Jan 2021 01:25:46 -0800 (PST)",
            "from naushir-VirtualBox.patuck.local ([88.97.76.4])\n\tby smtp.gmail.com with ESMTPSA id\n\th15sm10664801wru.4.2021.01.22.01.25.44\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 22 Jan 2021 01:25:44 -0800 (PST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=raspberrypi.com header.i=@raspberrypi.com\n\theader.b=\"gSiwM3yk\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=oC5yi0rJCSJ++JryJM1jZt2Wbpib6spC2ceO5Cza75Y=;\n\tb=gSiwM3ykpvl1ogwZlqwEXenWeYrPU0AwiOB/MEvkgiBqQivK5D8UuacU5Re9UZ8+5n\n\tf0vLzakTwg/GG56c3P6iHc1Qs2VjTnqyu1QwwiORXWFD6pIqRlLVfYj4WYSuFhUlMaz6\n\tnfSf4yL2FK+9XAWOSP45DSewcHeBJ0TCxcsYSm6MmJDkmNd5rQOHdDfI7n8EkTMJmeuN\n\txzS9am2M3RXRJ+6Y5A79dOHKL5gr92N4/VUrmfmvmUQ63RwGO9rQo+BsCwEoxGDzFefT\n\tUhx2ClrJIW/w8Q6e5nTTOdIuCmo8Gd41d0PDNlrdDJHnl+2Mr193eroy4YH3azucVhYP\n\txJtw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=oC5yi0rJCSJ++JryJM1jZt2Wbpib6spC2ceO5Cza75Y=;\n\tb=PDDcnLvHhNU8NCgr7ocQCKbr/+OrWofsURZtbZzndXgESHxyzC6JTcD9rV2tKRIgG4\n\tefigBokaQnmruhuUBlhVxzOwDjVaT6TTSOFQNKLpXcVBd4fO7WZfehAn81tWDdQisYzq\n\t8WmoeD5r2xXnrk6ONNKLFU/LTvWhGa83MyrEGjIeGURgE3Y41dj4xgTrdz2wXGdflpja\n\ttTKEf735sTFoSsOX+Y9MuewYosbUluLuWYtwovF3XOR6yCmjgsh8PYlFOcinG1D9IOz1\n\tn/lizM2iNJHmjFBbCE1C2eiAmjO4N/+qLhXiV3O3R6KwbBCYHDbQMujT385Inn9TeYlf\n\tIQjQ==",
        "X-Gm-Message-State": "AOAM532mZ51BWgKaaRactLr6JWAEzJradZTaYh57HS1B8eg5JWsjre2v\n\t2Ud83E654WAplh6BZ2aF0zxW0ElbOqSqMQ==",
        "X-Google-Smtp-Source": "ABdhPJwNiHkw3qrsLUr2WFgK/1xWE/0B8lv2G4Hb8XRr/xWlPYphR9E1SLzQ2UXsJH6srKcNn0L01Q==",
        "X-Received": "by 2002:a05:600c:1986:: with SMTP id\n\tt6mr3058448wmq.92.1611307545842; \n\tFri, 22 Jan 2021 01:25:45 -0800 (PST)",
        "From": "Naushir Patuck <naush@raspberrypi.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Fri, 22 Jan 2021 09:25:34 +0000",
        "Message-Id": "<20210122092537.708375-4-naush@raspberrypi.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20210122092537.708375-1-naush@raspberrypi.com>",
        "References": "<20210122092537.708375-1-naush@raspberrypi.com>",
        "MIME-Version": "1.0",
        "Subject": "[libcamera-devel] [PATCH v2 3/6] uapi: raspberrypi: Update the\n\tbcm2835-isp header definition",
        "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>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Update the bcm2835-isp.h file with the latest version available in the\ndownstream Raspberry Pi linux repo.\n\nThis change adds support for colour denoise processing, and the\nfollowing downstream kernel changes must be available:\nhttps://github.com/raspberrypi/linux/pull/4069\nhttps://github.com/raspberrypi/linux/pull/4083\n\nThe Raspberry Pi image must also be running the latest firmware,\nobtained by running rpi-update.\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\nAcked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>\n---\n include/linux/bcm2835-isp.h | 32 +++++++++++++++++++++++++++++---\n 1 file changed, 29 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/include/linux/bcm2835-isp.h b/include/linux/bcm2835-isp.h\nindex 45abb681517e..94c3af947883 100644\n--- a/include/linux/bcm2835-isp.h\n+++ b/include/linux/bcm2835-isp.h\n@@ -31,7 +31,8 @@\n \t\t\t\t(V4L2_CID_USER_BCM2835_ISP_BASE + 0x0007)\n #define V4L2_CID_USER_BCM2835_ISP_DPC\t\t\\\n \t\t\t\t(V4L2_CID_USER_BCM2835_ISP_BASE + 0x0008)\n-\n+#define V4L2_CID_USER_BCM2835_ISP_CDN \\\n+\t\t\t\t(V4L2_CID_USER_BCM2835_ISP_BASE + 0x0009)\n /*\n  * All structs below are directly mapped onto the equivalent structs in\n  * drivers/staging/vc04_services/vchiq-mmal/mmal-parameters.h\n@@ -46,7 +47,7 @@\n  */\n struct bcm2835_isp_rational {\n \t__s32 num;\n-\t__s32 den;\n+\t__u32 den;\n };\n \n /**\n@@ -140,7 +141,7 @@ struct bcm2835_isp_black_level {\n \t__u16 black_level_r;\n \t__u16 black_level_g;\n \t__u16 black_level_b;\n-\t__u8 pad_[2]; /* Unused */\n+\t__u8 padding[2]; /* Unused */\n };\n \n /**\n@@ -175,6 +176,31 @@ struct bcm2835_isp_gamma {\n \t__u16 y[BCM2835_NUM_GAMMA_PTS];\n };\n \n+/**\n+ * enum bcm2835_isp_cdn_mode - Mode of operation for colour denoise.\n+ *\n+  * @CDN_MODE_FAST:\t\tFast (but lower quality) colour denoise\n+ *\t\t\t\talgorithm, typically used for video recording.\n+ * @CDN_HIGH_QUALITY:\t\tHigh quality (but slower) colour denoise\n+ *\t\t\t\talgorithm, typically used for stills capture.\n+ */\n+enum bcm2835_isp_cdn_mode {\n+\tCDN_MODE_FAST = 0,\n+\tCDN_MODE_HIGH_QUALITY = 1,\n+};\n+\n+/**\n+ * struct bcm2835_isp_cdn - Colour denoise parameters set with the\n+ *\t\t\t    V4L2_CID_USER_BCM2835_ISP_CDN ctrl.\n+ *\n+ * @enabled:\tEnable colour denoise.\n+ * @cdn_mode:\tColour denoise operating mode (see enum &bcm2835_isp_cdn_mode)\n+ */\n+struct bcm2835_isp_cdn {\n+\t__u32 enabled;\n+\t__u32 mode;\n+};\n+\n /**\n  * struct bcm2835_isp_denoise - Denoise parameters set with the\n  *\t\t\t\tV4L2_CID_USER_BCM2835_ISP_DENOISE ctrl.\n",
    "prefixes": [
        "libcamera-devel",
        "v2",
        "3/6"
    ]
}