Show a patch.

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

{
    "id": 10513,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/10513/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/10513/",
    "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": "<20201126145005.8838-3-david.plowman@raspberrypi.com>",
    "date": "2020-11-26T14:50:05",
    "name": "[libcamera-devel,v2,2/2] src: ipa: raspberrypi: Add digital gain to libcamera metadata",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "014ec987eed5b6e70a921b3780fe267f6683f0d3",
    "submitter": {
        "id": 42,
        "url": "https://patchwork.libcamera.org/api/1.1/people/42/?format=api",
        "name": "David Plowman",
        "email": "david.plowman@raspberrypi.com"
    },
    "delegate": {
        "id": 14,
        "url": "https://patchwork.libcamera.org/api/1.1/users/14/?format=api",
        "username": "pinchartl",
        "first_name": "Laurent",
        "last_name": "Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "mbox": "https://patchwork.libcamera.org/patch/10513/mbox/",
    "series": [
        {
            "id": 1485,
            "url": "https://patchwork.libcamera.org/api/1.1/series/1485/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1485",
            "date": "2020-11-26T14:50:03",
            "name": "Digital gain control",
            "version": 2,
            "mbox": "https://patchwork.libcamera.org/series/1485/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/10513/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/10513/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 022A2BE08A\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 26 Nov 2020 14:50:13 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id C696A63474;\n\tThu, 26 Nov 2020 15:50:12 +0100 (CET)",
            "from mail-ed1-x542.google.com (mail-ed1-x542.google.com\n\t[IPv6:2a00:1450:4864:20::542])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id E05E863469\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 26 Nov 2020 15:50:09 +0100 (CET)",
            "by mail-ed1-x542.google.com with SMTP id q3so2527360edr.12\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 26 Nov 2020 06:50:09 -0800 (PST)",
            "from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72])\n\tby smtp.gmail.com with ESMTPSA id\n\tcw26sm3249359ejb.47.2020.11.26.06.50.08\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 26 Nov 2020 06:50:08 -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=\"kOdPLI5O\"; 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=B0Fp/V/N1tYQw2TF4EfOmCRw4e3oIj27rbtr/hkcuD4=;\n\tb=kOdPLI5OAalplyuHA8+MXFzVZw0o4Y3q69KSP+hGLRx6I5BLQEb9/qOB3zPXeN/gGv\n\taEkqRuGWRdDdCfDv/4c0wJt9gLig5kmY4FsjQpRLPvRoBQWVFqJi10f33A7Mbn/GmZlt\n\tar+V3iZ9xO9v0TJGMH/8GV0RT6TaUZ3h/BI3ctZUozoLp33NmYiRrIQuZDkyvw8hnVEd\n\tnRamARczZroCLYXdu/dAQ5LHiWYtA2zMi4u3DmE7XtHojeMGaiSuDAAWVmSzYtszGOTn\n\tz4BlFJ6Q3foj0VBTeAIHTR+UupenyegX/hUMwyCvkZGoyLafEAMNL+JLYuqfyHoY5CQ/\n\tRBSg==",
        "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=B0Fp/V/N1tYQw2TF4EfOmCRw4e3oIj27rbtr/hkcuD4=;\n\tb=qEH+hM35dxuII1r0Tf8Cw+1faeYK/u6fa6BgEciNRVvfGtqHydBM5eYQJu6yrbM+OA\n\tofn1Qbckprf0DakSp89/TBBR02dmJr0FItq79g0Jl+AyOUP+eJeH165Igzn/UbAVSY/Y\n\t4iTan/W5aiSAe75A78kb8rI0hTxPh4g+0+3E1vDn3C+I0m+v8EkzWkZ5GBeKP4j9evRL\n\tRxLXC6ehX4ADj5iG3TsIEJ2KWlkaqYeEcwd+8u+Rjt9wpng7oRWmGtqSKK6T9FFiQ9Dc\n\tiZ8fgtx84abxbQ+RoqZzDpjU5OUskdAI/zLLmAR7B+euKVWrZa49j4DQGBzeKlKe+xvy\n\ts/hw==",
        "X-Gm-Message-State": "AOAM531e8ulMlNDo6eO2PPQNBN2EdQ7QdG9gwedI90tLbX2ExVtus7D1\n\tdzPNOqBwfL/t6b+6YeWh34qf/KclbICfKWTI",
        "X-Google-Smtp-Source": "ABdhPJxuVrB9PTFmL2a5pwOB74GI6dc4sPAqhDlCRZ9OmM9CY8SRDbTzpvV/3z93g1YqgmDV7z7E2Q==",
        "X-Received": "by 2002:aa7:d787:: with SMTP id s7mr2883029edq.205.1606402209387;\n\tThu, 26 Nov 2020 06:50:09 -0800 (PST)",
        "From": "David Plowman <david.plowman@raspberrypi.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Thu, 26 Nov 2020 14:50:05 +0000",
        "Message-Id": "<20201126145005.8838-3-david.plowman@raspberrypi.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20201126145005.8838-1-david.plowman@raspberrypi.com>",
        "References": "<20201126145005.8838-1-david.plowman@raspberrypi.com>",
        "MIME-Version": "1.0",
        "Subject": "[libcamera-devel] [PATCH v2 2/2] src: ipa: raspberrypi: Add digital\n\tgain to libcamera 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>",
        "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": "The digital gain reported by the AGC algorithm is reported in the\nmetadata that is included in completed requests.\n\nSigned-off-by: David Plowman <david.plowman@raspberrypi.com>\n---\n src/ipa/raspberrypi/raspberrypi.cpp | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/src/ipa/raspberrypi/raspberrypi.cpp b/src/ipa/raspberrypi/raspberrypi.cpp\nindex 9853a343..631fe7b3 100644\n--- a/src/ipa/raspberrypi/raspberrypi.cpp\n+++ b/src/ipa/raspberrypi/raspberrypi.cpp\n@@ -403,8 +403,10 @@ void IPARPi::reportMetadata()\n \t}\n \n \tAgcStatus *agcStatus = rpiMetadata_.GetLocked<AgcStatus>(\"agc.status\");\n-\tif (agcStatus)\n+\tif (agcStatus) {\n \t\tlibcameraMetadata_.set(controls::AeLocked, agcStatus->locked);\n+\t\tlibcameraMetadata_.set(controls::DigitalGain, agcStatus->digital_gain);\n+\t}\n \n \tLuxStatus *luxStatus = rpiMetadata_.GetLocked<LuxStatus>(\"lux.status\");\n \tif (luxStatus)\n",
    "prefixes": [
        "libcamera-devel",
        "v2",
        "2/2"
    ]
}