Patch Detail
Show a patch.
GET /api/patches/12549/?format=api
{ "id": 12549, "url": "https://patchwork.libcamera.org/api/patches/12549/?format=api", "web_url": "https://patchwork.libcamera.org/patch/12549/", "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": "<20210610082539.529739-5-hiroh@chromium.org>", "date": "2021-06-10T08:25:38", "name": "[libcamera-devel,v8,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/12549/mbox/", "series": [ { "id": 2117, "url": "https://patchwork.libcamera.org/api/series/2117/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=2117", "date": "2021-06-10T08:25:34", "name": "[libcamera-devel,v8,1/6] libcamera: controls: Add sensor test pattern mode", "version": 8, "mbox": "https://patchwork.libcamera.org/series/2117/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/12549/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/12549/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 2F562BD78E\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 10 Jun 2021 08:25:55 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id DCA3568938;\n\tThu, 10 Jun 2021 10:25:54 +0200 (CEST)", "from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com\n\t[IPv6:2607:f8b0:4864:20::62c])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id ABCA8602C5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 10 Jun 2021 10:25:53 +0200 (CEST)", "by mail-pl1-x62c.google.com with SMTP id v12so586283plo.10\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 10 Jun 2021 01:25:53 -0700 (PDT)", "from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:203:98e0:b356:1c8a:25d4])\n\tby smtp.gmail.com with ESMTPSA id\n\tx3sm2087011pgx.8.2021.06.10.01.25.50\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 10 Jun 2021 01:25:51 -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=\"gyw9VIqZ\"; 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=gyw9VIqZnr4xjBKn/PNE+Zf2PqVFj4cuhv/zhycSyqvgH5Np6yMgU20CzFHBLZxHDW\n\tuXtib3PUOyLUDBI/X4TcXUJv1rnmrAZI3uxALJ9YSMO4bSgufzynbLqvuLfw7PdDYNRD\n\toINWYWxBwt039Fj+8rX2OHrx5jh3clTcFTHks=", "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=bmeIqGl8nJXj2SYuvFNGM+Yz4tlHVp5s71ynPrrkj8wgRREz9MFhmPfw9VqaHvoapG\n\t3HKYK6++fHMe99NZ+pVffccyNtlVH9rAijoYUQCo6YWOaYikli9SqhyOOm+XKkiRVGJN\n\t0UgzO+WWabbSIY1VLBBdBZAwmPaKTytfOQDrKM7lqv7sG8uRmuK+LfHnJ87WHAW7I03H\n\tSzoDDtkHviSYuhca5ahRQPC49xMa8A/SWUN44+bym7m/M54hFkHonavP6ccDq0qoDb8w\n\tBQG8Ragr288twtekize0/YISTl0zkDiKYy+D+TRoedhKVWzjFNY2cpGb+roBVTzB1Ja1\n\tmOTA==", "X-Gm-Message-State": "AOAM533d0uNvT+i4mA9LNk6OVcPI0m2dVsUooCDh7PjqFsUiJYvJO/nE\n\tdgHdcdApLpP0OkE6Yv/wzn/j7vK9CvNFig==", "X-Google-Smtp-Source": "ABdhPJz3YxbXw4Uzl1Sht86xUJy348WJ4mYbJnJdmGeocgtNsE9r4nPihw1BbPYAdy1vPrXPJvxECg==", "X-Received": "by 2002:a17:903:2482:b029:fd:696c:1d2b with SMTP id\n\tp2-20020a1709032482b02900fd696c1d2bmr3949935plw.24.1623313552106; \n\tThu, 10 Jun 2021 01:25:52 -0700 (PDT)", "From": "Hirokazu Honda <hiroh@chromium.org>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Thu, 10 Jun 2021 17:25:38 +0900", "Message-Id": "<20210610082539.529739-5-hiroh@chromium.org>", "X-Mailer": "git-send-email 2.32.0.rc1.229.g3e70b5a671-goog", "In-Reply-To": "<20210610082539.529739-1-hiroh@chromium.org>", "References": "<20210610082539.529739-1-hiroh@chromium.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v8 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", "v8", "5/6" ] }