Show a patch.

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

{
    "id": 3585,
    "url": "https://patchwork.libcamera.org/api/patches/3585/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/3585/",
    "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": "<20200428081140.5242-1-naush@raspberrypi.com>",
    "date": "2020-04-28T08:11:40",
    "name": "[libcamera-devel] libcamera: controls: Add sensor black levels reporting through metadata",
    "commit_ref": "668cefa7e601f345ac34d90cd6c0bf908ab4f825",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "3c258b769b28f33cf6570405dde58842aba07571",
    "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/3585/mbox/",
    "series": [
        {
            "id": 841,
            "url": "https://patchwork.libcamera.org/api/series/841/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=841",
            "date": "2020-04-28T08:11:40",
            "name": "[libcamera-devel] libcamera: controls: Add sensor black levels reporting through metadata",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/841/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/3585/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/3585/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<naush@raspberrypi.com>",
        "Received": [
            "from mail-wr1-x443.google.com (mail-wr1-x443.google.com\n\t[IPv6:2a00:1450:4864:20::443])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 1D95F603F7\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 28 Apr 2020 10:11:59 +0200 (CEST)",
            "by mail-wr1-x443.google.com with SMTP id i10so23503307wrv.10\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 28 Apr 2020 01:11:59 -0700 (PDT)",
            "from naushir-VirtualBox.patuck.local ([88.97.76.4])\n\tby smtp.gmail.com with ESMTPSA id\n\ta20sm25668189wra.26.2020.04.28.01.11.57\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 28 Apr 2020 01:11:58 -0700 (PDT)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"lz+Fk6yM\"; 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;\n\tbh=9wpRjoniFwqVAnYQCY9XR949dMUm0LEwd23y6i7R1y8=;\n\tb=lz+Fk6yMC2cJawQNfETJEGuOVrO0T4QW+o4LfRACdcMSjoz+z2WwjiKxYGSg+ZP2zR\n\t5hz+rtmbBYw9RJJ1Ldd4F+wtUU9IKqCBAUeeQF+FcXpOaUoCW/y3xbSzSaQyAZtL+AV7\n\twr1P7yDrQhbJLIllxhIzO+oWcBwexTeEJcRcIH8UGIulB5q5h1e6W1oby7RIwW1l/4Iw\n\thTC0JmqCsBG0IaUkPs99W3r/CQSOmHzk9XebWwBW0pdZPymWhgIUjmM2ueUlfWpSjRKI\n\tFRv77PX9+7SWetYrVCiW7QoZexuDMZ7oWH+fa6FnUO/ektpgmIpw/jOW7Ke3cIdGBfry\n\tN0oQ==",
        "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;\n\tbh=9wpRjoniFwqVAnYQCY9XR949dMUm0LEwd23y6i7R1y8=;\n\tb=rKRr1VD4GkjLxeP7E5LPkEK/Bfgbw578tQ1lrlhxZaH8cnfWuyJNgIUIa62Dqi3dqG\n\tTFM35OImE7kk0Jx7c3T8JLPvNVxhjBsAyKmq/9d1KkTWVtIVQ5WK0SKoyjsayLpfOWXP\n\tyAaoc8yFKCAdVawpJ0ao5c18b4++DZ6HjdU2s78xvi6x1WK2CqrcO3xhjE82yA7MJQjU\n\tCsmPclRJVULTpfaCBc901Rp5jSRzDyExnmFo6bMKkE8rV6nT/HeuhrK788pfHQhi6v1y\n\tsSZHTqQT21CtaffJ5DnoAjcCOuvbUApd0Ddy8wPX4OEZHvhm0yP54pLInEqwlhltZrN2\n\tc6zA==",
        "X-Gm-Message-State": "AGi0PuYtI41Bji7jjnNVwA6nyRWv3wI2P3WO80VmLPI14+aepB5o1q23\n\tgifI08FHbaO/c9BjxcyKpC47v1yvlRSReA==",
        "X-Google-Smtp-Source": "APiQypJO6EMqANr6qmqKQSRYq9e8L2d7Unc/jYsKL16rRWu6YeKAQCKcARFMJD4X+e7vWmAabA/0Dw==",
        "X-Received": "by 2002:adf:b35c:: with SMTP id\n\tk28mr31905028wrd.61.1588061518581; \n\tTue, 28 Apr 2020 01:11:58 -0700 (PDT)",
        "From": "Naushir Patuck <naush@raspberrypi.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Tue, 28 Apr 2020 09:11:40 +0100",
        "Message-Id": "<20200428081140.5242-1-naush@raspberrypi.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[libcamera-devel] [PATCH] libcamera: controls: Add sensor black\n\tlevels reporting through metadata",
        "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": "Tue, 28 Apr 2020 08:11:59 -0000"
    },
    "content": "From: David Plowman <david.plowman@raspberrypi.com>\n\nThe black levels will be used when saving RAW data in DNG containers.\n\nFour values are reported, one for each channel, in the order R, Gr, Gb\nand B. The values are reported as being out of a 16-bit pixel range\n(a fully saturated pixel would be 65535), so may need subsequent\nre-scaling, depending on use.\n\nSigned-off-by: David Plowman <david.plowman@raspberrypi.com>\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\n---\n src/libcamera/control_ids.yaml | 9 +++++++++\n 1 file changed, 9 insertions(+)",
    "diff": "diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml\nindex b419f8a7..77ebc3f9 100644\n--- a/src/libcamera/control_ids.yaml\n+++ b/src/libcamera/control_ids.yaml\n@@ -230,4 +230,13 @@ controls:\n         Specify a fixed saturation parameter. Normal saturation is given by\n         the value 1.0; larger values produce more saturated colours; 0.0\n         produces a greyscale image.\n+\n+  - SensorBlackLevels:\n+      type: int32_t\n+      description: |\n+        Reports the sensor black levels used for processing a frame, in the\n+        order R, Gr, Gb, B. These values are returned as numbers out of a 16-bit\n+        pixel range (as if pixels ranged from 0 to 65535). The SensorBlackLevels\n+        control can only be returned in metadata.\n+      size: [4]\n ...\n",
    "prefixes": [
        "libcamera-devel"
    ]
}