Show a patch.

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

{
    "id": 12129,
    "url": "https://patchwork.libcamera.org/api/patches/12129/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/12129/",
    "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": "<20210428073617.373422-7-hiroh@chromium.org>",
    "date": "2021-04-28T07:36:16",
    "name": "[libcamera-devel,v3,6/7] libcamera: pipeline: ipu3: Report available sensor test pattern mode",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "fa7c4fd5d6d7758ef538374e1d3a752eb3f05f5c",
    "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/12129/mbox/",
    "series": [
        {
            "id": 1983,
            "url": "https://patchwork.libcamera.org/api/series/1983/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1983",
            "date": "2021-04-28T07:36:10",
            "name": "Report Android HAL client test pattern modes",
            "version": 3,
            "mbox": "https://patchwork.libcamera.org/series/1983/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/12129/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/12129/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 2400ABDE44\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 28 Apr 2021 07:36:37 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D4543688B4;\n\tWed, 28 Apr 2021 09:36:36 +0200 (CEST)",
            "from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com\n\t[IPv6:2607:f8b0:4864:20::62b])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id AE70C688BC\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 28 Apr 2021 09:36:33 +0200 (CEST)",
            "by mail-pl1-x62b.google.com with SMTP id e2so28007392plh.8\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 28 Apr 2021 00:36:33 -0700 (PDT)",
            "from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:2:489:a5f4:117:7d51])\n\tby smtp.gmail.com with ESMTPSA id\n\tm11sm1661265pgs.4.2021.04.28.00.36.30\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 28 Apr 2021 00:36:31 -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=\"AgAYxPoB\"; 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=TuN0pQYYQgzxSdB2iYkFDxxp3zogDjb5vpHNNdEskuU=;\n\tb=AgAYxPoBv3vNPxvPvMHgM6bXAUVbVOo3kc1vKyYWrvCkrpzBN6XCjS/tCdlFw/CVfT\n\tL4fzy6b158bo70ZT+e/LfYUsGRcY1yM6x794Pl9mrdTprNJ/83m9OzOef2wn6AwkWFgl\n\tTdholiCUWm7/LPERKhh4evK3TdyABmGJF3ORQ=",
        "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=TuN0pQYYQgzxSdB2iYkFDxxp3zogDjb5vpHNNdEskuU=;\n\tb=afrnS6Z2CS0TUEwU2auk9Z25cK1kYL7xalU09UtxDjbX1Tcsy+qZgH/oM7XGzYAUoI\n\tCZ7SljgcaiRpHQNpVU1pX965jrcyNL308jcSyJjucdV5dkREmvId7PYsimk9HXuYHAaq\n\tj4k+cab8LJgahvm+zv0D20G7zi92Zz8SHP5jtPcg0JExe1CZxwlbRA/5TP/kaTofnwkv\n\tG6K7WffQOUet0FAUrQvHwDoVZ6G+J5OdStUVA0fw/BI6ilR+FA7KZJQpRfILu/kjqXna\n\tlNw0ymPjBGuUc/XGuAhPEyxbVxBTn/zbQyR4sXW1kRWU8kOGNGkWYFn21OKfoJ62+YF8\n\t5Y1g==",
        "X-Gm-Message-State": "AOAM531VyN6OcIwZfe1LACzjk9su8OHWUEWmXlaHmXpIoTWTIYIc6QpK\n\t101as+f+W6piRsTsuTif7B8vzJW7XXHZpw==",
        "X-Google-Smtp-Source": "ABdhPJzca9aDP/KXtpJ+Di9xNRJpuyJPTAYGtYfCxiyRgwgHVcAm6vybaqh0nkOyvOZzMr+FHgcn3g==",
        "X-Received": "by 2002:a17:90a:5b0a:: with SMTP id\n\to10mr2503073pji.82.1619595391987; \n\tWed, 28 Apr 2021 00:36:31 -0700 (PDT)",
        "From": "Hirokazu Honda <hiroh@chromium.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Wed, 28 Apr 2021 16:36:16 +0900",
        "Message-Id": "<20210428073617.373422-7-hiroh@chromium.org>",
        "X-Mailer": "git-send-email 2.31.1.498.g6c1eba8ee3d-goog",
        "In-Reply-To": "<20210428073617.373422-1-hiroh@chromium.org>",
        "References": "<20210428073617.373422-1-hiroh@chromium.org>",
        "MIME-Version": "1.0",
        "Subject": "[libcamera-devel] [PATCH v3 6/7] 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>",
        "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": "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>\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 73306cea..b4d4b97d 100644\n--- a/src/libcamera/pipeline/ipu3/ipu3.cpp\n+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp\n@@ -891,6 +891,16 @@ int PipelineHandlerIPU3::initControls(IPU3CameraData *data)\n \tControlInfoMap::Map controls = IPU3Controls;\n \tconst ControlInfoMap &sensorControls = sensor->controls();\n \n+\tif (!sensorInfo.testPatternModes.empty()) {\n+\t\tstd::vector<ControlValue> values;\n+\t\tvalues.reserve(sensorInfo.testPatternModes.size());\n+\n+\t\tfor (int32_t pattern : sensorInfo.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 \t *\n",
    "prefixes": [
        "libcamera-devel",
        "v3",
        "6/7"
    ]
}