Patch Detail
Show a patch.
GET /api/patches/25763/?format=api
{ "id": 25763, "url": "https://patchwork.libcamera.org/api/patches/25763/?format=api", "web_url": "https://patchwork.libcamera.org/patch/25763/", "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": "<20260113174642.1185403-5-rui.wang@ideasonboard.com>", "date": "2026-01-13T17:46:40", "name": "[v7,4/6] ipa: rkisp1: algorithms: dpf: Simplify YAML key names", "commit_ref": null, "pull_url": null, "state": "deferred", "archived": false, "hash": "fde55aa0a6763837f03fb63ade26c56bdd14db7e", "submitter": { "id": 241, "url": "https://patchwork.libcamera.org/api/people/241/?format=api", "name": "Rui Wang", "email": "rui.wang@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/25763/mbox/", "series": [ { "id": 5704, "url": "https://patchwork.libcamera.org/api/series/5704/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5704", "date": "2026-01-13T17:46:36", "name": "refactor DPF parsing and initialization", "version": 7, "mbox": "https://patchwork.libcamera.org/series/5704/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/25763/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/25763/checks/", "tags": {}, "headers": { "Return-Path": "<kieran.bingham@ideasonboard.com>", "X-Original-To": "parsemail@patchwork.libcamera.org", "Delivered-To": [ "parsemail@patchwork.libcamera.org", "kbingham@ideasonboard.com" ], "Received": [ "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 20E3ABDCBF\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 13 Jan 2026 18:07:15 +0000 (UTC)", "from pendragon.ideasonboard.com\n\t(cpc89244-aztw30-2-0-cust6594.18-1.cable.virginm.net\n\t[86.31.185.195])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id AFAD950A\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 13 Jan 2026 19:06:48 +0100 (CET)", "from perceval.ideasonboard.com\n\tby perceval.ideasonboard.com with LMTP id 6Kr+EzGFZmndwyEA4E0KoQ\n\t(envelope-from <libcamera-devel-bounces@lists.libcamera.org>)\n\tfor <kbingham@ideasonboard.com>; Tue, 13 Jan 2026 18:47:29 +0100", "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\tby perceval.ideasonboard.com (Postfix) with ESMTPS\n\tid F298C316;\tTue, 13 Jan 2026 18:47:28 +0100 (CET)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 70BB961FC5;\n\tTue, 13 Jan 2026 18:47:54 +0100 (CET)", "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 0234261FA3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 13 Jan 2026 18:47:53 +0100 (CET)", "from rui-Precision-7560.local (unknown [209.216.103.65])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 74D0C73B;\n\tTue, 13 Jan 2026 18:47:26 +0100 (CET)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1768327608;\n\tbh=0oxDnL6U2dK+fbjhCkgcNQkSkOU+fSDim7kaGO0kTQo=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id:\n\tList-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:\n\tResent-From:Resent-To:From;\n\tb=oHiI0pFbNz5r4cTCVAlFrdyZkPLO45mJc6f4c2XwKGPAnJiqKvUNHzxxuIhnQahM+\n\tAIDhjDKYMPnKGbdGnbLVU9ve9M6hBkI0h6hXxXHa/arNA56i4K/T7HN6gBVIw0VvpQ\n\tjJAdFJe2AGsm4rGfkfdIsGYMm1hkwud/oUek1otM=", "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1768326446;\n\tbh=0oxDnL6U2dK+fbjhCkgcNQkSkOU+fSDim7kaGO0kTQo=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=VzE0Ru+m9gH+TbHCEUEX4u1pta0pEoFApVhVMCZnwFUEpj2KeeSBESYU7OJbjPQ1N\n\tV6khLPIuXqnKFmWco7XWNWKXlE/txbhGP1j+VyoEaSjm0dzt5ge7I+NAsjw9+gNtmj\n\tgA8RC4QLTfsZfxQv/tgJ7PLogwa5B38nrnZDdDr0=" ], "Authentication-Results": [ "perceval.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.a=rsa-sha256 header.s=mail header.b=VzE0Ru+m; dkim-atps=neutral", "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"VzE0Ru+m\";\tdkim-atps=neutral" ], "From": "Rui Wang <rui.wang@ideasonboard.com>", "To": "libcamera-devel@lists.libcamera.org", "Cc": "Rui Wang <rui.wang@ideasonboard.com>,\n\tJacopo Mondi <jacopo.mondi@ideasonboard.com>", "Subject": "[PATCH v7 4/6] ipa: rkisp1: algorithms: dpf: Simplify YAML key names", "Date": "Tue, 13 Jan 2026 12:46:40 -0500", "Message-ID": "<20260113174642.1185403-5-rui.wang@ideasonboard.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260113174642.1185403-1-rui.wang@ideasonboard.com>", "References": "<20260113174642.1185403-1-rui.wang@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>", "X-TUID": "j9RaxeHz2AUL", "Resent-From": "Kieran Bingham <kieran.bingham@ideasonboard.com>", "Resent-To": "parsemail@patchwork.libcamera.org" }, "content": "Rename DPF tuning file keys to shorter, more concise names:\n- DomainFilter -> filter\n- NoiseLevelFunction -> nll\n- FilterStrength -> strength\n\nThis improves readability and reduces verbosity in tuning files\nwhile maintaining the same functionality. Error messages are\nupdated accordingly to reflect the new key names.\n\nSigned-off-by: Rui Wang <rui.wang@ideasonboard.com>\nReviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>\n\n---\nchangelog since v5/v6: Nothing changed\n---\n src/ipa/rkisp1/algorithms/dpf.cpp | 14 +++++++-------\n 1 file changed, 7 insertions(+), 7 deletions(-)", "diff": "diff --git a/src/ipa/rkisp1/algorithms/dpf.cpp b/src/ipa/rkisp1/algorithms/dpf.cpp\nindex 6c0ef611..7e615e3b 100644\n--- a/src/ipa/rkisp1/algorithms/dpf.cpp\n+++ b/src/ipa/rkisp1/algorithms/dpf.cpp\n@@ -127,7 +127,7 @@ int Dpf::parseSingleConfig(const YamlObject &tuningData,\n \t * The domain kernel is configured with a 9x9 kernel for the green\n \t * pixels, and a 13x9 or 9x9 kernel for red and blue pixels.\n \t */\n-\tconst YamlObject &dFObject = tuningData[\"DomainFilter\"];\n+\tconst YamlObject &dFObject = tuningData[\"filter\"];\n \n \t/*\n \t * For the green component, we have the 9x9 kernel specified\n@@ -149,7 +149,7 @@ int Dpf::parseSingleConfig(const YamlObject &tuningData,\n \tvalues = dFObject[\"g\"].getList<uint8_t>().value_or(std::vector<uint8_t>{});\n \tif (values.size() != RKISP1_CIF_ISP_DPF_MAX_SPATIAL_COEFFS) {\n \t\tLOG(RkISP1Dpf, Error)\n-\t\t\t<< \"Invalid 'DomainFilter:g': expected \"\n+\t\t\t<< \"Invalid 'filter:g': expected \"\n \t\t\t<< RKISP1_CIF_ISP_DPF_MAX_SPATIAL_COEFFS\n \t\t\t<< \" elements, got \" << values.size();\n \t\treturn -EINVAL;\n@@ -186,7 +186,7 @@ int Dpf::parseSingleConfig(const YamlObject &tuningData,\n \tif (values.size() != RKISP1_CIF_ISP_DPF_MAX_SPATIAL_COEFFS &&\n \t values.size() != RKISP1_CIF_ISP_DPF_MAX_SPATIAL_COEFFS - 1) {\n \t\tLOG(RkISP1Dpf, Error)\n-\t\t\t<< \"Invalid 'DomainFilter:rb': expected \"\n+\t\t\t<< \"Invalid 'filter:rb': expected \"\n \t\t\t<< RKISP1_CIF_ISP_DPF_MAX_SPATIAL_COEFFS - 1\n \t\t\t<< \" or \" << RKISP1_CIF_ISP_DPF_MAX_SPATIAL_COEFFS\n \t\t\t<< \" elements, got \" << values.size();\n@@ -208,13 +208,13 @@ int Dpf::parseSingleConfig(const YamlObject &tuningData,\n \t * which stores a piecewise linear function that characterizes the\n \t * sensor noise profile as a noise level function curve (NLF).\n \t */\n-\tconst YamlObject &rFObject = tuningData[\"NoiseLevelFunction\"];\n+\tconst YamlObject &rFObject = tuningData[\"nll\"];\n \n \tstd::vector<uint16_t> nllValues;\n \tnllValues = rFObject[\"coeff\"].getList<uint16_t>().value_or(std::vector<uint16_t>{});\n \tif (nllValues.size() != RKISP1_CIF_ISP_DPF_MAX_NLF_COEFFS) {\n \t\tLOG(RkISP1Dpf, Error)\n-\t\t\t<< \"Invalid 'RangeFilter:coeff': expected \"\n+\t\t\t<< \"Invalid 'nll:coeff': expected \"\n \t\t\t<< RKISP1_CIF_ISP_DPF_MAX_NLF_COEFFS\n \t\t\t<< \" elements, got \" << nllValues.size();\n \t\treturn -EINVAL;\n@@ -230,13 +230,13 @@ int Dpf::parseSingleConfig(const YamlObject &tuningData,\n \t\tconfig.nll.scale_mode = RKISP1_CIF_ISP_NLL_SCALE_LOGARITHMIC;\n \t} else {\n \t\tLOG(RkISP1Dpf, Error)\n-\t\t\t<< \"Invalid 'RangeFilter:scale-mode': expected \"\n+\t\t\t<< \"Invalid 'nll:scale-mode': expected \"\n \t\t\t<< \"'linear' or 'logarithmic' value, got \"\n \t\t\t<< scaleMode;\n \t\treturn -EINVAL;\n \t}\n \n-\tconst YamlObject &fSObject = tuningData[\"FilterStrength\"];\n+\tconst YamlObject &fSObject = tuningData[\"strength\"];\n \n \tstrengthConfig.r = fSObject[\"r\"].get<uint8_t>().value_or(64);\n \tstrengthConfig.g = fSObject[\"g\"].get<uint8_t>().value_or(64);\n", "prefixes": [ "v7", "4/6" ] }