{"id":12204,"url":"https://patchwork.libcamera.org/api/1.1/patches/12204/?format=json","web_url":"https://patchwork.libcamera.org/patch/12204/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20210506075449.1761752-6-hiroh@chromium.org>","date":"2021-05-06T07:54:48","name":"[libcamera-devel,v4,5/6] 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/1.1/people/63/?format=json","name":"Hirokazu Honda","email":"hiroh@chromium.org"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/12204/mbox/","series":[{"id":2001,"url":"https://patchwork.libcamera.org/api/1.1/series/2001/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2001","date":"2021-05-06T07:54:43","name":"[libcamera-devel,v4,1/6] libcamera: controls: Add sensor test pattern mode","version":4,"mbox":"https://patchwork.libcamera.org/series/2001/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/12204/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/12204/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 BEA97BDE7F\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu,  6 May 2021 07:55:06 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 63B4E68918;\n\tThu,  6 May 2021 09:55:06 +0200 (CEST)","from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com\n\t[IPv6:2607:f8b0:4864:20::102a])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 586116890E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu,  6 May 2021 09:55:05 +0200 (CEST)","by mail-pj1-x102a.google.com with SMTP id\n\tj6-20020a17090adc86b02900cbfe6f2c96so3015854pjv.1\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 06 May 2021 00:55:05 -0700 (PDT)","from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:2:ede4:ae0e:d4a4:c0d3])\n\tby smtp.gmail.com with ESMTPSA id\n\tf201sm1355546pfa.133.2021.05.06.00.55.02\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 06 May 2021 00:55: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=\"beBaDUSb\"; 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=VtbKXhukIcnDCQR37kiMKwtZ+jMQ3n+IXsG2+YQduf4=;\n\tb=beBaDUSbRiIBZbzrwFoO+iN945MXlsQ0y22PzdpmHxCmq/sJRoYe9mn86BjXR7xOGr\n\t1t4ByEXtbkWiJwH2Ur+FN3idueRdKMW5XG8/GeUsE3DnGH61AcjoDF6BmbaL1/O0KW32\n\t41BXjZhLcMSjnKnqVFw+m3BKb2e+w/8dJwtd0=","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=VtbKXhukIcnDCQR37kiMKwtZ+jMQ3n+IXsG2+YQduf4=;\n\tb=SzyCUo+rPIo86FgIXpcR4KsomM5UK/0aTpQ+wmK7AhBI9Ym1tZpkLoKTGc0kPcVGVf\n\txiHVpw1NTpNq+yMC+fBD9nvPWksse1C4kxLTxZDnvkcb0ORVCvtwxb+8C5P5vKflsmJF\n\tGA6ZLsE6bU8aG+RHUv5uBdq+eK/vfFSnZY4QDHl/arPoDdsc5AAfYcUMdvXRplQ5hAhD\n\tgh8UopBxKPvUFvdBLrtUyNfJGmWFn0GSsdgu9Q14UwP3dPeF7NPdlvsRgGvYsH1M54C8\n\tWHf2XtWdj16/zcfCiaDsATKzloQtLbbq95BP9z1qgAcSnVov/Z9kXfBsMVAh0bvemGFl\n\t2o+w==","X-Gm-Message-State":"AOAM530N+yK20zrbfEfRL0B+lHdZzqKP3tp3q6g+Q3HRaNscRJN3nJEC\n\tpU+j70uBDtj+cWMZ+wPR2FRdMxPlyTeG+Q==","X-Google-Smtp-Source":"ABdhPJzOVYumu6218ZzumNiIAMkmYUXVtYSlgsMg2GqRGlsfQy3TqX2Iz++Fjn0sEMyzWxONXSaA4w==","X-Received":"by 2002:a17:902:d386:b029:ee:bf5f:c037 with SMTP id\n\te6-20020a170902d386b02900eebf5fc037mr3121729pld.31.1620287703552; \n\tThu, 06 May 2021 00:55:03 -0700 (PDT)","From":"Hirokazu Honda <hiroh@chromium.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Thu,  6 May 2021 16:54:48 +0900","Message-Id":"<20210506075449.1761752-6-hiroh@chromium.org>","X-Mailer":"git-send-email 2.31.1.607.g51e8a6a459-goog","In-Reply-To":"<20210506075449.1761752-1-hiroh@chromium.org>","References":"<20210506075449.1761752-1-hiroh@chromium.org>","MIME-Version":"1.0","Subject":"[libcamera-devel] [PATCH v4 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>","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","v4","5/6"]}