{"id":12200,"url":"https://patchwork.libcamera.org/api/patches/12200/?format=json","web_url":"https://patchwork.libcamera.org/patch/12200/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/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-2-hiroh@chromium.org>","date":"2021-05-06T07:54:44","name":"[libcamera-devel,v4,1/6] libcamera: controls: Add sensor test pattern mode","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"71632613cfb1ad53bf4bf8555d789d9df8596f89","submitter":{"id":63,"url":"https://patchwork.libcamera.org/api/people/63/?format=json","name":"Hirokazu Honda","email":"hiroh@chromium.org"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/12200/mbox/","series":[{"id":2001,"url":"https://patchwork.libcamera.org/api/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/12200/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/12200/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 90D46BDE7F\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu,  6 May 2021 07:55:00 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 5262E6891D;\n\tThu,  6 May 2021 09:55:00 +0200 (CEST)","from mail-pg1-x529.google.com (mail-pg1-x529.google.com\n\t[IPv6:2607:f8b0:4864:20::529])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id BB1766890E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu,  6 May 2021 09:54:58 +0200 (CEST)","by mail-pg1-x529.google.com with SMTP id m12so4143261pgr.9\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 06 May 2021 00:54:58 -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.54.55\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 06 May 2021 00:54:56 -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=\"Ol5jBS7x\"; 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=Krzn6mw8SbjmKOeNdoZjZqHeYTQu5C67qgFMCmk9PL4=;\n\tb=Ol5jBS7xppgGSckNL5N1pCwJDpuBqht+fxmmzUmCiPjBHqzU2UEj5HSak62K37SYGA\n\tco6u5Ni0PykwDuUfSACFIs+KhCr1vwbsdwdjHpESOgl0P081OsFCD9N1lEI4rXwPR3mh\n\t2o1VZ2zQMc6X3QddJMetVZlYWxexnWPTyQOpM=","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=Krzn6mw8SbjmKOeNdoZjZqHeYTQu5C67qgFMCmk9PL4=;\n\tb=uIZ7a/6Ed0svLvB3YB0xlsUfLmTdojJNxjiiRRfEyzkfRnzAbsEkufywr2aRg/T8jC\n\t/zWUBCOeXHykKl8fW5qFTfppZ42ujnTFsSgSWuCt2v3hmhbzVbjoSc/lXBqw+uKN/PbP\n\tS71yy4GdSZ2nVwsgFatYwRcK2YB8RVf1Dp8jZkULhPqvDOz9XpYAadnQ3K2YgX/7kX5i\n\tC5spCzUFjbP0Js62jQNQPMv/Ty+2+Wsj6cTpUaonUwY4N6+b6JLASeLZL0FQapWbjUiQ\n\tbUce7p9K192Q5025HkRE17qNs5IVGPNMNn5y64VCcBaAM1l6I7kD0sNLX6TbcyTyxCPC\n\tnLLQ==","X-Gm-Message-State":"AOAM531abzMHnf24FTeUBpPd2SEKTqekYNCo7pUg2xPl0GjzBtDkTpFH\n\tCSc+xD7WmNxzOh7yZsOZZILLSIiwxHowmg==","X-Google-Smtp-Source":"ABdhPJysu4rCUWUZesAVPisWJim9uuZ/pwTo9hYeEU/xuEf1StocanvMr5zYGcrEYulc62qJnS7o/w==","X-Received":"by 2002:a63:a547:: with SMTP id r7mr3000425pgu.7.1620287697178; \n\tThu, 06 May 2021 00:54:57 -0700 (PDT)","From":"Hirokazu Honda <hiroh@chromium.org>","To":"libcamera-devel@lists.libcamera.org","Date":"Thu,  6 May 2021 16:54:44 +0900","Message-Id":"<20210506075449.1761752-2-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 1/6] libcamera: controls: Add sensor\n\ttest 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":"The control is used to report available sensor test pattern modes\nand also specify the mode to sensor.\n\nSigned-off-by: Hirokazu Honda <hiroh@chromium.org>\nReviewed-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n src/libcamera/control_ids.yaml | 58 ++++++++++++++++++++++++++++++++++\n 1 file changed, 58 insertions(+)","diff":"diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml\nindex b4771f9d..cc472863 100644\n--- a/src/libcamera/control_ids.yaml\n+++ b/src/libcamera/control_ids.yaml\n@@ -608,4 +608,62 @@ controls:\n         detection, additional format conversions etc) count as an additional\n         pipeline stage.\n \n+  - TestPatternMode:\n+      type: int32_t\n+      draft: true\n+      description: |\n+        Control to select the test pattern mode. Currently identical to\n+        ANDROID_SENSOR_TEST_PATTERN_MODE.\n+      enum:\n+        - name: TestPatternModeOff\n+          value: 0\n+          description: |\n+            No test pattern mode is used. The camera device returns frames from\n+            the image sensor.\n+        - name: TestPatternModeSolidColor\n+          value: 1\n+          description: |\n+            Each pixel in [R, G_even, G_odd, B] is replaced by its respective\n+            color channel provided in test pattern data.\n+            \\todo Add control for test pattern data.\n+        - name: TestPatternModeColorBars\n+          value: 2\n+          description: |\n+            All pixel data is replaced with an 8-bar color pattern. The vertical\n+            bars (left-to-right) are as follows; white, yellow, cyan, green,\n+            magenta, red, blue and black. Each bar should take up 1/8 of the\n+            sensor pixel array width. When this is not possible, the bar size\n+            should be rounded down to the nearest integer and the pattern can\n+            repeat on the right side. Each bar's height must always take up the\n+            full sensor pixel array height.\n+        - name: TestPatternModeColorBarsFadeToGray\n+          value: 3\n+          description: |\n+            The test pattern is similar to TestPatternModeColorBars,\n+            except that each bar should start at its specified color at the top\n+            and fade to gray at the bottom. Furthermore each bar is further\n+            subdevided into a left and right half. The left half should have a\n+            smooth gradient, and the right half should have a quantized\n+            gradient. In particular, the right half's should consist of blocks\n+            of the same color for 1/16th active sensor pixel array width. The\n+            least significant bits in the quantized gradient should be copied\n+            from the most significant bits of the smooth gradient. The height of\n+            each bar should always be a multiple of 128. When this is not the\n+            case, the pattern should repeat at the bottom of the image.\n+        - name: TestPatternModePn9\n+          value: 4\n+          description: |\n+            All pixel data is replaced by a pseudo-random sequence generated\n+            from a PN9 512-bit sequence (typically implemented in hardware with\n+            a linear feedback shift register). The generator should be reset at\n+            the beginning of each frame, and thus each subsequent raw frame with\n+            this test pattern should be exactly the same as the last.\n+        - name: TestPatternModeCustom1\n+          value: 5\n+          description: |\n+            The first custom test pattern. All custom patterns that are\n+            available only on this camera device are at least this numeric\n+            value. All of the custom test patterns will be static (that is the\n+            raw image must not vary from frame to frame).\n+\n ...\n","prefixes":["libcamera-devel","v4","1/6"]}