Patch Detail
Show a patch.
GET /api/patches/12545/?format=api
{ "id": 12545, "url": "https://patchwork.libcamera.org/api/patches/12545/?format=api", "web_url": "https://patchwork.libcamera.org/patch/12545/", "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": "<20210610082539.529739-1-hiroh@chromium.org>", "date": "2021-06-10T08:25:34", "name": "[libcamera-devel,v8,1/6] libcamera: controls: Add sensor test pattern mode", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "9b88e49c134f5ace4bea47b54871b713e896cae7", "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/12545/mbox/", "series": [ { "id": 2117, "url": "https://patchwork.libcamera.org/api/series/2117/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=2117", "date": "2021-06-10T08:25:34", "name": "[libcamera-devel,v8,1/6] libcamera: controls: Add sensor test pattern mode", "version": 8, "mbox": "https://patchwork.libcamera.org/series/2117/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/12545/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/12545/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 C5B0CBD78E\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 10 Jun 2021 08:25:47 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 2358C6892F;\n\tThu, 10 Jun 2021 10:25:47 +0200 (CEST)", "from mail-pl1-x634.google.com (mail-pl1-x634.google.com\n\t[IPv6:2607:f8b0:4864:20::634])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 770F6602C5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 10 Jun 2021 10:25:46 +0200 (CEST)", "by mail-pl1-x634.google.com with SMTP id 69so595150plc.5\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 10 Jun 2021 01:25:46 -0700 (PDT)", "from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:203:98e0:b356:1c8a:25d4])\n\tby smtp.gmail.com with ESMTPSA id\n\tx3sm2087011pgx.8.2021.06.10.01.25.43\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 10 Jun 2021 01:25:44 -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=\"mjIFKA5t\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org;\n\ts=google; h=from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=Kp7vtkneKHWsTVr8H9RoZEqk8QShPlfAx9tM5R6qx14=;\n\tb=mjIFKA5tl5yMYk48QwoSc0BCWBHh05UurqyVwIt8EpvmSBm+SfTopr3Dcjyo7cZund\n\tf4NAC+J/wwX3WMfaMmjiW1BjhMuoxXX/1kxSDiq1C6bhWiOhRZEqyO3lBP00xXUctAb6\n\t5gV0fBFS8mpPSLUBNCLGkTohl02Fk65Izk29E=", "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:mime-version\n\t:content-transfer-encoding;\n\tbh=Kp7vtkneKHWsTVr8H9RoZEqk8QShPlfAx9tM5R6qx14=;\n\tb=sd9ZWxaOaIUEv3wmR3NbTeSkmj/mPCN9YyHhz2LTJAL/gs6tLj8LXOo39yPo0VmI+a\n\tt0IAsi2V94t5scZYR8sCK1azMcVrzKS+n5eY1bJtdpD7eTt3VCigvZVFbUu/cE66I7Fe\n\tC7hTJOv5xGjicakPZB2MScn3J8CPik4t6XC0QTuVvKeHqUpfaJTFmAUexXLryUpMEE2q\n\tLk7xJm+Bfcl6zgnMRy9XCxnHGMbvV1OLrQAva5czwwMJI7tJGAJ59bln4twvlXqV64x/\n\tomoCLC9XVR+kgN4yo2jHZets6b0sSTonnIDeBmUtgNAWA/d/8XDY93UbYNE97ZZRPk2a\n\tvJyA==", "X-Gm-Message-State": "AOAM532C4BZ3biUn3IyaKzfO/pqmnqynzq3WhROObjmCLi8LCxFjtTSk\n\ttzTYqhtcedy65M9pVhYn3DgEeDaFjwt07Q==", "X-Google-Smtp-Source": "ABdhPJzs381kdWohINj9jtvLVYmaqrHNk4ZabF6IQL+A+uKPWSO1zupySStn1OsuYr4Ae/BCe5DdEQ==", "X-Received": "by 2002:a17:903:2289:b029:109:8cf1:7d9a with SMTP id\n\tb9-20020a1709032289b02901098cf17d9amr3809543plh.53.1623313544763; \n\tThu, 10 Jun 2021 01:25:44 -0700 (PDT)", "From": "Hirokazu Honda <hiroh@chromium.org>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Thu, 10 Jun 2021 17:25:34 +0900", "Message-Id": "<20210610082539.529739-1-hiroh@chromium.org>", "X-Mailer": "git-send-email 2.32.0.rc1.229.g3e70b5a671-goog", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v8 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>", "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>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\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 f62ade48..d92f29f5 100644\n--- a/src/libcamera/control_ids.yaml\n+++ b/src/libcamera/control_ids.yaml\n@@ -622,4 +622,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: 256\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", "v8", "1/6" ] }