Show a patch.

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

{
    "id": 11878,
    "url": "https://patchwork.libcamera.org/api/patches/11878/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/11878/",
    "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": "<20210409043208.1823330-5-hiroh@chromium.org>",
    "date": "2021-04-09T04:32:07",
    "name": "[libcamera-devel,RFC,4/5] libcamera: pipeline: ipu3: Report available test pattern modes",
    "commit_ref": null,
    "pull_url": null,
    "state": "rfc",
    "archived": false,
    "hash": "871c35d7c2c209bc392f28d26f8ceeda79b0ad9a",
    "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/11878/mbox/",
    "series": [
        {
            "id": 1906,
            "url": "https://patchwork.libcamera.org/api/series/1906/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1906",
            "date": "2021-04-09T04:32:03",
            "name": "Report available test pattern modes",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/1906/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/11878/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/11878/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 17A92BD16B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri,  9 Apr 2021 04:32:23 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id CB52D68808;\n\tFri,  9 Apr 2021 06:32:22 +0200 (CEST)",
            "from mail-pf1-x431.google.com (mail-pf1-x431.google.com\n\t[IPv6:2607:f8b0:4864:20::431])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 23C68687F6\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri,  9 Apr 2021 06:32:21 +0200 (CEST)",
            "by mail-pf1-x431.google.com with SMTP id o123so3404588pfb.4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 08 Apr 2021 21:32:21 -0700 (PDT)",
            "from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:2:7567:510e:1b47:ce92])\n\tby smtp.gmail.com with ESMTPSA id\n\til6sm737275pjb.56.2021.04.08.21.32.18\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 08 Apr 2021 21:32:19 -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=\"OscRek5h\"; 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=vsWwxDXMX5080odZxhA6IevxNdiFcMKuo4IlaZKtdaA=;\n\tb=OscRek5hjmwBqvX9a22MuH2781vK9kzWnBOTAmdwrShgrD6dzOcNd6DcREn3E4iKic\n\tFaZWm9yJQAQSjoru9T6E/vAXW45vDYPWI5I3HLKdk7E267CIz5CSTlQ4sqrM2NTtnFzs\n\t3W8SEaoZCCwgDxNfK1t4lmB1cLPG/RUpCrAFQ=",
        "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=vsWwxDXMX5080odZxhA6IevxNdiFcMKuo4IlaZKtdaA=;\n\tb=Xw4h6OoM/qGHSacADd2eqaZHGlIoFJPVskeSFNFdyN5GCfWDE6TZY7Us1Nm2d0whUP\n\tgqhsyTLIBpg1C/rPZKQWjPobubm02qXXteYsmhmJyEMdUTjegtqeUDI1YIXYP7pcYT4s\n\tKmxVYDL+1PWvmBT/zS6G78//sPbxDEOsVa70dTmrlsBcZufYuliR+eHydztdT+An8sNv\n\tCLK+vEgluRGDmO1BVA1T9LjQPf5IEokA5WZr967zBdmllHikL8okGkMNCu+el+nu75h2\n\tYrt4A049M9IF/JbrBp3/0mCEtrs71Al/JanYzgWjDe6jU1wxtoNiQgPs9ZqNScxJdJFd\n\th22g==",
        "X-Gm-Message-State": "AOAM532UzKhI9v4ACDnNr3Jw+Je5gk8bQqBq2yu0dHp5tVOPdGIZMHPY\n\tKj95kTuTjb63CKwXQBUMnKpeZUTG7711YA==",
        "X-Google-Smtp-Source": "ABdhPJySIpSHx7kguDCb4H/Fjlq5f82jWk6+j6Nk9A22hTJdI3Jnm+rRAB1XLJHBG7MUg/YE2AHgNQ==",
        "X-Received": "by 2002:a63:3d48:: with SMTP id\n\tk69mr10989492pga.239.1617942739648; \n\tThu, 08 Apr 2021 21:32:19 -0700 (PDT)",
        "From": "Hirokazu Honda <hiroh@chromium.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Fri,  9 Apr 2021 13:32:07 +0900",
        "Message-Id": "<20210409043208.1823330-5-hiroh@chromium.org>",
        "X-Mailer": "git-send-email 2.31.1.295.g9ea45b61b8-goog",
        "In-Reply-To": "<20210409043208.1823330-1-hiroh@chromium.org>",
        "References": "<20210409043208.1823330-1-hiroh@chromium.org>",
        "MIME-Version": "1.0",
        "Subject": "[libcamera-devel] [RFC PATCH 4/5] libcamera: pipeline: ipu3: Report\n\tavailable test pattern modes",
        "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": "Add available test pattern modes to controls.\n\nSigned-off-by: Hirokazu Honda <hiroh@chromium.org>\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 519cad4f..c6ca87a7 100644\n--- a/src/libcamera/pipeline/ipu3/ipu3.cpp\n+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp\n@@ -995,6 +995,16 @@ int PipelineHandlerIPU3::initControls(IPU3CameraData *data)\n \n \tcontrols[&controls::ScalerCrop] = ControlInfo(minCrop, maxCrop, maxCrop);\n \n+\tconst std::vector<int32_t> &availableTestPatternModes =\n+\t\tsensor->availableTestPatternModes();\n+\tif (!availableTestPatternModes.empty()) {\n+\t\tstd::vector<ControlValue> controlValues;\n+\t\tfor (int32_t value : availableTestPatternModes)\n+\t\t\tcontrolValues.emplace_back(value);\n+\t\tcontrols[&controls::draft::SensorTestPatternMode] =\n+\t\t\tControlInfo(controlValues);\n+\t}\n+\n \tdata->controlInfo_ = std::move(controls);\n \n \treturn 0;\n",
    "prefixes": [
        "libcamera-devel",
        "RFC",
        "4/5"
    ]
}