Patch Detail
Show a patch.
GET /api/1.1/patches/20506/?format=api
{ "id": 20506, "url": "https://patchwork.libcamera.org/api/1.1/patches/20506/?format=api", "web_url": "https://patchwork.libcamera.org/patch/20506/", "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": "<20240703104004.184783-7-stefan.klug@ideasonboard.com>", "date": "2024-07-03T10:39:53", "name": "[v2,6/6] ipa: rkisp1: Move ov4689 and ov5640 black levels into sensor helpers", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "983cbe67e0076f7b211d119050ccb0bea528f016", "submitter": { "id": 184, "url": "https://patchwork.libcamera.org/api/1.1/people/184/?format=api", "name": "Stefan Klug", "email": "stefan.klug@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/20506/mbox/", "series": [ { "id": 4435, "url": "https://patchwork.libcamera.org/api/1.1/series/4435/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4435", "date": "2024-07-03T10:39:47", "name": "ipa: Add black level to camera sensor helpers", "version": 2, "mbox": "https://patchwork.libcamera.org/series/4435/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/20506/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/20506/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 81FB9BEFBE\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 3 Jul 2024 10:40:34 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id EA326632EA;\n\tWed, 3 Jul 2024 12:40:33 +0200 (CEST)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 8074E6333B\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 3 Jul 2024 12:40:29 +0200 (CEST)", "from ideasonboard.com (unknown\n\t[IPv6:2a00:6020:448c:6c00:9263:c199:9587:576])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 5CA856D6;\n\tWed, 3 Jul 2024 12:40:01 +0200 (CEST)" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"qtOyON4B\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1720003201;\n\tbh=8mvjzSJjIYUSejtAaHxegbvpSTD5fdZSRvy1+AwL1l4=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=qtOyON4BArj81p2Aoi05y7yX5UncRIgCf0hS6sKMPJc9GM4J2wnqzxfZC/lmFQa8L\n\tE2KSGucpL8Pfkd4VK54NymM4GuDMlhAJA+X8SMmtA7w1LdduEZXz7g+qnhBLlYeim6\n\tcgBfwZZRmFsLvGXhiVUfYMyzNpKppZjIos3NvTLU=", "From": "Stefan Klug <stefan.klug@ideasonboard.com>", "To": "libcamera-devel@lists.libcamera.org", "Cc": "Stefan Klug <stefan.klug@ideasonboard.com>", "Subject": "[PATCH v2 6/6] ipa: rkisp1: Move ov4689 and ov5640 black levels into\n\tsensor helpers", "Date": "Wed, 3 Jul 2024 12:39:53 +0200", "Message-ID": "<20240703104004.184783-7-stefan.klug@ideasonboard.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20240703104004.184783-1-stefan.klug@ideasonboard.com>", "References": "<20240703104004.184783-1-stefan.klug@ideasonboard.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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": "Move black levels for tuning files that contained a BLC block into\nthe camera sensor helpers.\n\nov4689.yaml had 66@12bit while the datasheet states 64@12bit. Use the\nvalue from the datasheet (scaled to 16bit).\n\nov5640.yaml had 256@12bit while the datasheet states 16@10bit. Looking\nat the commit message the 256 most likely stems from the imx219 tuning\nfile and 16@10bit is the same as the 64@12bit from the ov4689. This\nseems more likely and is therefore used.\n\nSigned-off-by: Stefan Klug <stefan.klug@ideasonboard.com>\n---\n src/ipa/libipa/camera_sensor_helper.cpp | 2 ++\n src/ipa/rkisp1/data/ov4689.yaml | 4 ----\n src/ipa/rkisp1/data/ov5640.yaml | 4 ----\n 3 files changed, 2 insertions(+), 8 deletions(-)", "diff": "diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp\nindex 3d0e756927f0..982e35beaa90 100644\n--- a/src/ipa/libipa/camera_sensor_helper.cpp\n+++ b/src/ipa/libipa/camera_sensor_helper.cpp\n@@ -542,6 +542,7 @@ class CameraSensorHelperOv4689 : public CameraSensorHelper\n public:\n \tCameraSensorHelperOv4689()\n \t{\n+\t\tblackLevel_ = 1024;\n \t\tgainType_ = AnalogueGainLinear;\n \t\tgainConstants_.linear = { 1, 0, 0, 128 };\n \t}\n@@ -553,6 +554,7 @@ class CameraSensorHelperOv5640 : public CameraSensorHelper\n public:\n \tCameraSensorHelperOv5640()\n \t{\n+\t\tblackLevel_ = 1024;\n \t\tgainType_ = AnalogueGainLinear;\n \t\tgainConstants_.linear = { 1, 0, 0, 16 };\n \t}\ndiff --git a/src/ipa/rkisp1/data/ov4689.yaml b/src/ipa/rkisp1/data/ov4689.yaml\nindex 2068684cafcd..609012967e02 100644\n--- a/src/ipa/rkisp1/data/ov4689.yaml\n+++ b/src/ipa/rkisp1/data/ov4689.yaml\n@@ -6,8 +6,4 @@ algorithms:\n - Agc:\n - Awb:\n - BlackLevelCorrection:\n- R: 66\n- Gr: 66\n- Gb: 66\n- B: 66\n ...\ndiff --git a/src/ipa/rkisp1/data/ov5640.yaml b/src/ipa/rkisp1/data/ov5640.yaml\nindex 897b83cb435b..4b21d412e44e 100644\n--- a/src/ipa/rkisp1/data/ov5640.yaml\n+++ b/src/ipa/rkisp1/data/ov5640.yaml\n@@ -6,10 +6,6 @@ algorithms:\n - Agc:\n - Awb:\n - BlackLevelCorrection:\n- R: 256\n- Gr: 256\n- Gb: 256\n- B: 256\n - ColorProcessing:\n - GammaSensorLinearization:\n x-intervals: [ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ]\n", "prefixes": [ "v2", "6/6" ] }