Show a patch.

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

{
    "id": 12498,
    "url": "https://patchwork.libcamera.org/api/patches/12498/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/12498/",
    "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": "<20210607011402.55331-5-hiroh@chromium.org>",
    "date": "2021-06-07T01:14:01",
    "name": "[libcamera-devel,v7,5/6] libcamera: pipeline: ipu3: Report available sensor test pattern mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "4bafbc34f72d9efd6d3ad582d2e0f21c5ec9fd91",
    "submitter": {
        "id": 63,
        "url": "https://patchwork.libcamera.org/api/people/63/?format=api",
        "name": "Hirokazu Honda",
        "email": "hiroh@chromium.org"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/12498/mbox/",
    "series": [
        {
            "id": 2105,
            "url": "https://patchwork.libcamera.org/api/series/2105/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=2105",
            "date": "2021-06-07T01:13:57",
            "name": "[libcamera-devel,v7,1/6] libcamera: controls: Add sensor test pattern mode",
            "version": 7,
            "mbox": "https://patchwork.libcamera.org/series/2105/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/12498/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/12498/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 3B6B7C320B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon,  7 Jun 2021 01:14:17 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id DD4F76892D;\n\tMon,  7 Jun 2021 03:14:16 +0200 (CEST)",
            "from mail-pf1-x433.google.com (mail-pf1-x433.google.com\n\t[IPv6:2607:f8b0:4864:20::433])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 8A7EB6892D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  7 Jun 2021 03:14:15 +0200 (CEST)",
            "by mail-pf1-x433.google.com with SMTP id s14so10983609pfd.9\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun, 06 Jun 2021 18:14:15 -0700 (PDT)",
            "from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:203:6eb1:2d91:79ee:2043])\n\tby smtp.gmail.com with ESMTPSA id\n\th12sm7303655pgn.54.2021.06.06.18.14.12\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tSun, 06 Jun 2021 18:14:13 -0700 (PDT)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=chromium.org header.i=@chromium.org\n\theader.b=\"gjvxYjxH\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org;\n\ts=google; \n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=eGamX387RzZe2eIC3xUR0g3TZDatng8JNNtBxBmx/TQ=;\n\tb=gjvxYjxHo9S36U67+o4BV8d5SM8wuOWbORFEb1e944JyNKwilrqmY4819sl9/hNfZu\n\tKAzBfnT+RfYCJwlWbXJqvY7PbHA5eQdhGsV/K1xFfPDyAK8GgVPdDZKYRvdQG80Pttbo\n\t7fMuh0Y0CP6SeEGuXjc8vQSpVKa3GgtbH/GZQ=",
        "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=eGamX387RzZe2eIC3xUR0g3TZDatng8JNNtBxBmx/TQ=;\n\tb=ndYNRLGdC0wm6aMlZCrTDJIT5VQH0YwiKFKwVezjFO0t7RgCi6SlA9gOF7CcJ+qn7o\n\tvPtYuu9rCh5JHsbfk2t8igToiN9AfHiLmAwNo37qtNOSpuwNXeJ3PPw/ZGRuwyTzovtV\n\tviGS+hBPb64Q7m+Evgi5DGtiucSth4E6y4KaFPGAyDu94WtIuSX+U2SrGGnWmhUrSAML\n\tA15FIC2ovBB+9fcah80OL4gtog8np6dYCWgCZ4xnvoor5hjYMFaWyHXr7ea2Fo5D295u\n\t2dTKNP+jUO/tfUK6e72sl6c5q9yJ8PN2ncJGxUdtTban797qGQFMy+x9H3UQhhej/SWK\n\tMIug==",
        "X-Gm-Message-State": "AOAM530SzZTeNl+BcxwG6YoKeT/BhVJt1r214ewd+vtmI78rgQWBkrR/\n\txWkVZmixhIKQOkp1CcISciZ/CKd4H0Q+nFYR",
        "X-Google-Smtp-Source": "ABdhPJxU244AvlvpjGL6MvG2sV2CHTE2C0N1erObIPJMDIF8UqiU0vsvyz6qjJ7JbL+htHcNoAF7Jw==",
        "X-Received": "by 2002:aa7:83c3:0:b029:2e8:f2ba:3979 with SMTP id\n\tj3-20020aa783c30000b02902e8f2ba3979mr15023894pfn.8.1623028454045; \n\tSun, 06 Jun 2021 18:14:14 -0700 (PDT)",
        "From": "Hirokazu Honda <hiroh@chromium.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Mon,  7 Jun 2021 10:14:01 +0900",
        "Message-Id": "<20210607011402.55331-5-hiroh@chromium.org>",
        "X-Mailer": "git-send-email 2.32.0.rc1.229.g3e70b5a671-goog",
        "In-Reply-To": "<20210607011402.55331-1-hiroh@chromium.org>",
        "References": "<20210607011402.55331-1-hiroh@chromium.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH v7 5/6] libcamera: pipeline: ipu3: Report\n\tavailable sensor test pattern mode",
        "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>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "PipelineHandlerIPU3 gets available test pattern modes of the\nsensor device and reports them to a client.\n\nSigned-off-by: Hirokazu Honda <hiroh@chromium.org>\nReviewed-by: Jacopo Mondi <jacopo@jmondi.org>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n src/libcamera/pipeline/ipu3/ipu3.cpp | 10 ++++++++++\n 1 file changed, 10 insertions(+)",
    "diff": "diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp\nindex b986bb70..52b11687 100644\n--- a/src/libcamera/pipeline/ipu3/ipu3.cpp\n+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp\n@@ -935,6 +935,16 @@ int PipelineHandlerIPU3::initControls(IPU3CameraData *data)\n \n \tControlInfoMap::Map controls = IPU3Controls;\n \tconst ControlInfoMap &sensorControls = sensor->controls();\n+\tconst std::vector<int32_t> &testPatternModes = sensor->testPatternModes();\n+\tif (!testPatternModes.empty()) {\n+\t\tstd::vector<ControlValue> values;\n+\t\tvalues.reserve(testPatternModes.size());\n+\n+\t\tfor (int32_t pattern : testPatternModes)\n+\t\t\tvalues.emplace_back(pattern);\n+\n+\t\tcontrols[&controls::draft::TestPatternMode] = ControlInfo(values);\n+\t}\n \n \t/*\n \t * Compute exposure time limits.\n",
    "prefixes": [
        "libcamera-devel",
        "v7",
        "5/6"
    ]
}