Patch Detail
Show a patch.
GET /api/patches/12467/?format=api
{ "id": 12467, "url": "https://patchwork.libcamera.org/api/patches/12467/?format=api", "web_url": "https://patchwork.libcamera.org/patch/12467/", "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": "<20210528030531.189492-5-hiroh@chromium.org>", "date": "2021-05-28T03:05:30", "name": "[libcamera-devel,v6,5/6] libcamera: pipeline: ipu3: Report available sensor test pattern mode", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "d0af59d567d48cb9e7ce5a5811a83f35b8ff18d3", "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/12467/mbox/", "series": [ { "id": 2089, "url": "https://patchwork.libcamera.org/api/series/2089/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=2089", "date": "2021-05-28T03:05:26", "name": "[libcamera-devel,v6,1/6] libcamera: controls: Add sensor test pattern mode", "version": 6, "mbox": "https://patchwork.libcamera.org/series/2089/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/12467/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/12467/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 543EAC3205\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 28 May 2021 03:05:47 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id EC8A46892E;\n\tFri, 28 May 2021 05:05:46 +0200 (CEST)", "from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com\n\t[IPv6:2607:f8b0:4864:20::62f])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 9687F68925\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 28 May 2021 05:05:44 +0200 (CEST)", "by mail-pl1-x62f.google.com with SMTP id h12so937084plf.11\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 27 May 2021 20:05:44 -0700 (PDT)", "from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:2:caec:ab3b:ea16:3d01])\n\tby smtp.gmail.com with ESMTPSA id\n\tl20sm2892051pjq.38.2021.05.27.20.05.41\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 27 May 2021 20:05:42 -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=\"HZBCRIGJ\"; 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=wHSrzNuB9f7V06xtq8lyAZpgYyHA1noTd6F7pwFmqkk=;\n\tb=HZBCRIGJoQJV45ZONWqnOURBJMD416kJ6QkIBhFn7G97gtRUQcoVTvqW1aS6W/4/Fw\n\tsp4/4S6dSuR6emlRKKuFytVb+gLO5nmAMsVlyCl4TyASlga/5tV1j9iRygtxf5bdrZjp\n\tMHJPx9vhafCDwrtiM05Q1LaGxkClckAupcr/Q=", "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=wHSrzNuB9f7V06xtq8lyAZpgYyHA1noTd6F7pwFmqkk=;\n\tb=moy9XMyZpyo4qxltYx2/t/OByzN3ZVRnoyo3e8XQcfcyxOmnUAHbDKEZMaFrqUODlN\n\t3NmwOwcQWJvg2BtlZw2cpHZ/A7NSnWerSDRL0EUOTfnqjClaC5s0xx0mtVGDALvbEEv2\n\t0B0C9jhT+7hfcDcP2fAsAIRGKZqHWV4L9G1nFSO/GPPM82//z0sH5K+aVSg0rWLhxcIG\n\tkYIaiVXhIO/zW0d/ZinGO4Se8n9K95Sw/XCuPlo3PzPSlxRCfd18xcEfDoLJqZbndlf9\n\t4wGLD7O3SK8X46quTHwdhNeyp5ItvnFCF80v9cuVVkwTmpFirn7bAb8cnOK+Xn/8LLRi\n\t3A6Q==", "X-Gm-Message-State": "AOAM532/1wNu9iSKuU6j/Dm2Fj9J/McZrPXc0+o4QGwpHYRUYg8qiFz7\n\t4GnC1yaMUKyZ+ZDcBMvZMHBk2EJkjUNuBQ==", "X-Google-Smtp-Source": "ABdhPJx8S231A3OYPf/+9yTXfM61Dc1lV21EIr0AIR4dpNyE66ZZtyFWKAYDZdnuijH3VZ/CVQBkow==", "X-Received": "by 2002:a17:902:9685:b029:ef:70fd:a5a2 with SMTP id\n\tn5-20020a1709029685b02900ef70fda5a2mr6031689plp.20.1622171143069; \n\tThu, 27 May 2021 20:05:43 -0700 (PDT)", "From": "Hirokazu Honda <hiroh@chromium.org>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Fri, 28 May 2021 12:05:30 +0900", "Message-Id": "<20210528030531.189492-5-hiroh@chromium.org>", "X-Mailer": "git-send-email 2.32.0.rc0.204.g9fa02ecfa5-goog", "In-Reply-To": "<20210528030531.189492-1-hiroh@chromium.org>", "References": "<20210528030531.189492-1-hiroh@chromium.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v6 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>\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 58923bc7..0e028cff 100644\n--- a/src/libcamera/pipeline/ipu3/ipu3.cpp\n+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp\n@@ -936,6 +936,18 @@ int PipelineHandlerIPU3::initControls(IPU3CameraData *data)\n \tControlInfoMap::Map controls = IPU3Controls;\n \tconst ControlInfoMap &sensorControls = sensor->controls();\n \n+\tif (const std::vector<uint8_t> &testPatternModes =\n+\t\t sensor->testPatternModes();\n+\t !testPatternModes.empty()) {\n+\t\tstd::vector<ControlValue> values;\n+\t\tvalues.reserve(testPatternModes.size());\n+\n+\t\tfor (uint8_t pattern : testPatternModes)\n+\t\t\tvalues.emplace_back(static_cast<int32_t>(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", "v6", "5/6" ] }