Patch Detail
Show a patch.
GET /api/1.1/patches/12023/?format=api
{ "id": 12023, "url": "https://patchwork.libcamera.org/api/1.1/patches/12023/?format=api", "web_url": "https://patchwork.libcamera.org/patch/12023/", "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": "<20210421042346.312854-7-hiroh@chromium.org>", "date": "2021-04-21T04:23:45", "name": "[libcamera-devel,v2,6/7] libcamera: pipeline: ipu3: Report available sensor test pattern mode", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "e4c065e18371eeb9ef7efca3b45876a8a97c950b", "submitter": { "id": 63, "url": "https://patchwork.libcamera.org/api/1.1/people/63/?format=api", "name": "Hirokazu Honda", "email": "hiroh@chromium.org" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/12023/mbox/", "series": [ { "id": 1953, "url": "https://patchwork.libcamera.org/api/1.1/series/1953/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1953", "date": "2021-04-21T04:23:39", "name": "Report Android HAL client test pattern modes", "version": 2, "mbox": "https://patchwork.libcamera.org/series/1953/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/12023/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/12023/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 2D44FBDB16\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 21 Apr 2021 04:24:08 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id E28AD68853;\n\tWed, 21 Apr 2021 06:24:07 +0200 (CEST)", "from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com\n\t[IPv6:2607:f8b0:4864:20::52b])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id EA044602C3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 21 Apr 2021 06:24:04 +0200 (CEST)", "by mail-pg1-x52b.google.com with SMTP id y32so28532797pga.11\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 20 Apr 2021 21:24:04 -0700 (PDT)", "from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:2:7aaa:cbeb:5d87:4ab6])\n\tby smtp.gmail.com with ESMTPSA id\n\tz18sm461316pfa.39.2021.04.20.21.24.02\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 20 Apr 2021 21:24:02 -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=\"feoh30Ol\"; 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=WKvWlo2rlqpJwhfL/Ss63p7PuDJHY1LEzWBviZ3QGB4=;\n\tb=feoh30OlpsEM2bvRk0Qa8hfq6qoQ5vGyDNj0Ii5QbHtrhx6DEyuizsDm3FAUqpkBG3\n\tv4OT9ANdF+PqKZYK3ENovrw6LiPAD3Hn1u+mGshVDvWlWrE2P2VP4gVrpl7TB/mA/zm9\n\t8zXFYKSgpFkCGBqmKbRTiQA7+ncd5ClF9Uyv0=", "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=WKvWlo2rlqpJwhfL/Ss63p7PuDJHY1LEzWBviZ3QGB4=;\n\tb=W0xkA7zUoCDyfU36lwcFf9S+loliPvwVFIN7kJloR9hiyvFdf8LsDYIUuFzohMQOnZ\n\tiAjLvPbJXbD/vE6aO9TH4TGN+O7GVXr0L3EgmA+ciViV/YIgiQuYQYrfcKSkigXtB3qR\n\t+69tX39Qm1zrfzkTk31tbFjrLaw7/zQy8NKTm76CWlHBK8rj2uhGZpurWveTb6XZwkLm\n\tHssFJwUAZ8PbdPQKHk68QDRPWuHqT38P3PGMrgIVW44XiRcMESHHDU8mf4T1KukGbATh\n\t7FSYV+9f98KCeWsPy8g234CuHGHBVjexpUiU2A7lG5P/eD1GL3VPLcy9sFf34HFOy7Sz\n\tEzuA==", "X-Gm-Message-State": "AOAM533xGqMHxB5Xt+MNi0lEuo6/6fFXQYthKOS4OLTljQbLuQTfcnNL\n\tnGPFJ754gs1e8+7CYuenBMskj1TN128Rkw==", "X-Google-Smtp-Source": "ABdhPJyR30WGvTiqeKPr1GLOM9lS00c4SqoUVXhTPZRxlEj5AjbnHe24RzToxGRDNzIgn7CmwDYD4A==", "X-Received": "by 2002:a17:90a:ce8d:: with SMTP id\n\tg13mr8752890pju.85.1618979043393; \n\tTue, 20 Apr 2021 21:24:03 -0700 (PDT)", "From": "Hirokazu Honda <hiroh@chromium.org>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Wed, 21 Apr 2021 13:23:45 +0900", "Message-Id": "<20210421042346.312854-7-hiroh@chromium.org>", "X-Mailer": "git-send-email 2.31.1.368.gbe11c130af-goog", "In-Reply-To": "<20210421042346.312854-1-hiroh@chromium.org>", "References": "<20210421042346.312854-1-hiroh@chromium.org>", "MIME-Version": "1.0", "Subject": "[libcamera-devel] [PATCH v2 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 | 12 ++++++++++++\n 1 file changed, 12 insertions(+)", "diff": "diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp\nindex 51446fcf..76903d31 100644\n--- a/src/libcamera/pipeline/ipu3/ipu3.cpp\n+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp\n@@ -891,6 +891,18 @@ int PipelineHandlerIPU3::initControls(IPU3CameraData *data)\n \tControlInfoMap::Map controls = IPU3Controls;\n \tconst ControlInfoMap &sensorControls = sensor->controls();\n \n+\tif (!sensorInfo.availableTestPatternModes.empty()) {\n+\t\tstd::vector<ControlValue> values(\n+\t\t\tsensorInfo.availableTestPatternModes.size());\n+\t\tfor (size_t i = 0; i < values.size(); ++i) {\n+\t\t\tvalues[i] = ControlValue(\n+\t\t\t\tsensorInfo.availableTestPatternModes[i]);\n+\t\t}\n+\n+\t\tcontrols[&controls::draft::TestPatternMode] =\n+\t\t\tControlInfo(libcamera::Span<const ControlValue>(values));\n+\t}\n+\n \t/*\n \t * Compute exposure time limits.\n \t *\n", "prefixes": [ "libcamera-devel", "v2", "6/7" ] }