{"id":12319,"url":"https://patchwork.libcamera.org/api/1.1/patches/12319/?format=json","web_url":"https://patchwork.libcamera.org/patch/12319/","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":"<20210519075941.1337388-5-hiroh@chromium.org>","date":"2021-05-19T07:59:40","name":"[libcamera-devel,v5,5/6] libcamera: pipeline: ipu3: Report available sensor test pattern mode","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"d0af59d567d48cb9e7ce5a5811a83f35b8ff18d3","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/12319/mbox/","series":[{"id":2037,"url":"https://patchwork.libcamera.org/api/1.1/series/2037/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2037","date":"2021-05-19T07:59:36","name":"[libcamera-devel,v5,1/6] libcamera: controls: Add sensor test pattern mode","version":5,"mbox":"https://patchwork.libcamera.org/series/2037/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/12319/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/12319/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 B5E08C31FF\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 19 May 2021 08:00:00 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 73D636891E;\n\tWed, 19 May 2021 10:00:00 +0200 (CEST)","from mail-pf1-x429.google.com (mail-pf1-x429.google.com\n\t[IPv6:2607:f8b0:4864:20::429])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 9F88E6891C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 19 May 2021 09:59:55 +0200 (CEST)","by mail-pf1-x429.google.com with SMTP id x188so9330498pfd.7\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 19 May 2021 00:59:55 -0700 (PDT)","from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:2:3948:91a2:b8ec:1976])\n\tby smtp.gmail.com with ESMTPSA id\n\t80sm1160847pfw.200.2021.05.19.00.59.52\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 19 May 2021 00:59:53 -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=\"mjsQ0ELA\"; 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=wgvL7+yR5w/TCnatKYLUR5ZoG1ezPhhfr6ubaG6Qn+0=;\n\tb=mjsQ0ELANVG+RfiVvVtLNTU3O7hFVBiO2PopLy95crymcofbkvDb9onU2cYrMfrY/R\n\t8vX73jvxDYHzb2bXWLVn9gYvWrLvjtzMXSCboHSaQO30ogih9+6YNlicxB/Km6teM+By\n\tsrIp68hxgUnBTxyyusF3ZDHsUFXeDJkAJb8as=","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=wgvL7+yR5w/TCnatKYLUR5ZoG1ezPhhfr6ubaG6Qn+0=;\n\tb=lAegFHgPOMz7zCuf6LuEBsk66dltJaRUf9fJIY2QcsF9Z9WsW5mNdU9J8q/YWeGUWZ\n\ti7tXY16mVnr39WYpbpRS7vs6MmhK6PAmIeqezayz5r71CrEUAz0+Lc6bOsj+1FMbp+Ba\n\tuBtid2PDAi7GFGs6nWiW5kz7HZmOBzl3QneQVkPFDvDUHEC1rg9exn0oo4iO3PTKNUf+\n\tesG3OgHCwTm9rUihSw6NKuAb+J0iwMOeF2ZxpGr02/dAbBcjDvmdsEtQ36zL2xIAAfbV\n\tSpBoO4QVMoye5q2G78PO+ELmmGuFxyBHR2wgDmNDnMWiW3XrneRjEddOH6kxl3k6+6jT\n\t/+EQ==","X-Gm-Message-State":"AOAM532jRvO9xFMZtZLljnlugr8IJS3QemElouVZY1xo25m4rl9ts9S9\n\tNrwWUi7shyCJLqF3K8qdygWHG1He6jgwRQ==","X-Google-Smtp-Source":"ABdhPJwYXUhtQGOdU1dX8V1NuwbyReVintzYe1qEumdbalBfs9GaEWbJCEDgby1qPAr8MKbcBq8X4g==","X-Received":"by 2002:a63:7204:: with SMTP id n4mr9832439pgc.78.1621411194109; \n\tWed, 19 May 2021 00:59:54 -0700 (PDT)","From":"Hirokazu Honda <hiroh@chromium.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Wed, 19 May 2021 16:59:40 +0900","Message-Id":"<20210519075941.1337388-5-hiroh@chromium.org>","X-Mailer":"git-send-email 2.31.1.751.gd2f1c929bd-goog","In-Reply-To":"<20210519075941.1337388-1-hiroh@chromium.org>","References":"<20210519075941.1337388-1-hiroh@chromium.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v5 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 ade8ffbd..c1d1d937 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 (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","v5","5/6"]}