Patch Detail
Show a patch.
GET /api/1.1/patches/12675/?format=api
{ "id": 12675, "url": "https://patchwork.libcamera.org/api/1.1/patches/12675/?format=api", "web_url": "https://patchwork.libcamera.org/patch/12675/", "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": "<20210622023654.969162-4-hiroh@chromium.org>", "date": "2021-06-22T02:36:53", "name": "[libcamera-devel,RFC,v2,4/5] libcamera: ipu3: Apply a requested test pattern mode", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "dc26c2742e005f813d2fe4f821107824dd485ba3", "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/12675/mbox/", "series": [ { "id": 2164, "url": "https://patchwork.libcamera.org/api/1.1/series/2164/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=2164", "date": "2021-06-22T02:36:50", "name": "[libcamera-devel,RFC,v2,1/5] libcamera: camera_sensor: Reverse the key and value of test pattern mode map", "version": 2, "mbox": "https://patchwork.libcamera.org/series/2164/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/12675/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/12675/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 D2EA5C321B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 22 Jun 2021 02:37:07 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id ED4756893E;\n\tTue, 22 Jun 2021 04:37:06 +0200 (CEST)", "from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com\n\t[IPv6:2607:f8b0:4864:20::42a])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 8DE7068932\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 22 Jun 2021 04:37:05 +0200 (CEST)", "by mail-pf1-x42a.google.com with SMTP id c5so2601786pfv.8\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 21 Jun 2021 19:37:05 -0700 (PDT)", "from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:203:a025:f98b:b63b:e6b2])\n\tby smtp.gmail.com with ESMTPSA id\n\to7sm18947145pgs.45.2021.06.21.19.37.02\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 21 Jun 2021 19:37:03 -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=\"TjTad1uy\"; 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=gzOEmV+QUcgTBzBz3f7jfAL9lrYpj5bnbGr4JngLmwM=;\n\tb=TjTad1uylHJ0hBoFLSTxXuPiAIuxa/8PpnMXnd8ppaN6XR0JiDMnNScxg+vtYMAxTS\n\tFbk+2ikVs98hOrPMEwWc0tP8ItG61zSXkX9pAX4Rgo4lkMR0Q2odx71YUoA71r5eyNdY\n\t70gRoisBOIlEZDFo79y5Aj41Tov4Hx2V39Dbk=", "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=gzOEmV+QUcgTBzBz3f7jfAL9lrYpj5bnbGr4JngLmwM=;\n\tb=q9NWr4eKwfVXislST1MgzOozsTknEBnoqr91PyudcEGpYT1USCwAeHVPmFRjU14beg\n\tpmAZ740eWEFfs/IlL6wraSTanvR6HoylfSTnK9Qrppz2Y8lcFFu9GX1xHl8y3/vHXIOc\n\tm0g2PTn5ldkNrr/vGz0Po/3sizyJ6n6+MMyfmhrzQwhjGARjfZxx6F4bOor7aDVKGm7d\n\tstDNVkNssk8L9KRzlqKwhzoS7I/7HU1HMk9Fpgh7COLu0M+yjKRwtjd1CiGfp/5n+dwY\n\tktBSVUKLci631kPANc1UG8BvWa1AoVGYH+g061NhecIrM+lDmlccMoTNUhsBFvl/cSyZ\n\tUGkg==", "X-Gm-Message-State": "AOAM531jHj5Og+LWb3Iw4sU8wXXrtKlc/qymEJfp008tbQ5nG5uPyegz\n\ttoDZkpePPOWE0TGalrSVHGXhekvCNytGUQ==", "X-Google-Smtp-Source": "ABdhPJw3tUWz7UQvh0mxaDuGuxn9Z9EAF93KPkSE5CbeKudpSEJcRAIYmbZjTnAr2khguYIZ1lQ78A==", "X-Received": "by 2002:a63:5153:: with SMTP id r19mr1542025pgl.56.1624329423818;\n\tMon, 21 Jun 2021 19:37:03 -0700 (PDT)", "From": "Hirokazu Honda <hiroh@chromium.org>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Tue, 22 Jun 2021 11:36:53 +0900", "Message-Id": "<20210622023654.969162-4-hiroh@chromium.org>", "X-Mailer": "git-send-email 2.32.0.288.g62a8d224e6-goog", "In-Reply-To": "<20210622023654.969162-1-hiroh@chromium.org>", "References": "<20210622023654.969162-1-hiroh@chromium.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [RFC PATCH v2 4/5] libcamera: ipu3: Apply a\n\trequested 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": "Apply a camera sensor a requested test pattern mode. The test\npattern mode can be specified per frame.\n\nSigned-off-by: Hirokazu Honda <hiroh@chromium.org>\n---\n src/libcamera/pipeline/ipu3/cio2.cpp | 15 +++++++++++++++\n 1 file changed, 15 insertions(+)", "diff": "diff --git a/src/libcamera/pipeline/ipu3/cio2.cpp b/src/libcamera/pipeline/ipu3/cio2.cpp\nindex 8548f749..9d1ff07d 100644\n--- a/src/libcamera/pipeline/ipu3/cio2.cpp\n+++ b/src/libcamera/pipeline/ipu3/cio2.cpp\n@@ -12,6 +12,7 @@\n #include <libcamera/control_ids.h>\n #include <libcamera/formats.h>\n #include <libcamera/geometry.h>\n+#include <libcamera/request.h>\n #include <libcamera/stream.h>\n \n #include \"libcamera/internal/camera_sensor.h\"\n@@ -289,6 +290,20 @@ FrameBuffer *CIO2Device::queueBuffer(Request *request, FrameBuffer *rawBuffer)\n \t\tbuffer->setRequest(request);\n \t}\n \n+\tif (request->controls().contains(controls::draft::TestPatternMode)) {\n+\t\tconst uint8_t testPatternMode =\n+\t\t\tstatic_cast<uint8_t>(request->controls().get(\n+\t\t\t\tcontrols::draft::TestPatternMode));\n+\t\tint ret = sensor_->setTestPatternMode(testPatternMode);\n+\t\tif (ret) {\n+\t\t\tLOG(IPU3, Error)\n+\t\t\t\t<< \"Failed to set test pattern mode: \" << ret;\n+\t\t} else {\n+\t\t\trequest->metadata().set(controls::draft::TestPatternMode,\n+\t\t\t\t\t\ttestPatternMode);\n+\t\t}\n+\t}\n+\n \tint ret = output_->queueBuffer(buffer);\n \tif (ret)\n \t\treturn nullptr;\n", "prefixes": [ "libcamera-devel", "RFC", "v2", "4/5" ] }