From patchwork Sun Jan 18 20:29:53 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Wang X-Patchwork-Id: 25829 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 9153DBDCBE for ; Sun, 18 Jan 2026 20:30:53 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 5129F61FC6; Sun, 18 Jan 2026 21:30:53 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="XY6d4nn3"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E3C3B61FC4 for ; Sun, 18 Jan 2026 21:30:51 +0100 (CET) Received: from rui-Precision-7560.local (unknown [209.216.103.65]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id AA96F1BA; Sun, 18 Jan 2026 21:30:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1768768222; bh=2tKHiCOXdI7XE8K/9Cjk2rsU6b/hAY8TCZtwDlVPGR0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XY6d4nn3RYI+zREM2acG5cPQEwMdnj7jyA3/N0k2zdE3UtW8YpAXY0OqFttML+tCC iCu3X4CRmN+zH8KTUW+fB99S9jxum2XXZswhQc1hZFE43ge/baJRlUOPEyj1WdYwJ2 7DR33Gk4QZVbZomIjV7BQt6FjoBGy4hJ7fQHbAXs= From: Rui Wang To: libcamera-devel@lists.libcamera.org Cc: Rui Wang Subject: [PATCH v1 4/4] ipa: rkisp1: data: Add Filter tuning configuration for sensors Date: Sun, 18 Jan 2026 15:29:53 -0500 Message-ID: <20260118202953.1554892-5-rui.wang@ideasonboard.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260118202953.1554892-1-rui.wang@ideasonboard.com> References: <20260118202953.1554892-1-rui.wang@ideasonboard.com> MIME-Version: 1.0 X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add initial Filter algorithm tuning parameters for IMX219/OV5640 sensor, enabling filter noise reduction mode switching support. Signed-off-by: Rui Wang --- src/ipa/rkisp1/data/imx219.yaml | 48 +++++++++++++++++++++++++++++++++ src/ipa/rkisp1/data/ov5640.yaml | 47 ++++++++++++++++++++++++++++++++ 2 files changed, 95 insertions(+) diff --git a/src/ipa/rkisp1/data/imx219.yaml b/src/ipa/rkisp1/data/imx219.yaml index 0d99cb52..ff02b273 100644 --- a/src/ipa/rkisp1/data/imx219.yaml +++ b/src/ipa/rkisp1/data/imx219.yaml @@ -111,4 +111,52 @@ algorithms: 1438, 1226, 1059, 1024, 1024, 1024, 1024, 1024, 1024, 1024, 1025, 1054, 1185, 1326, 1334, 1334, ] + - Filter: + NoiseReductionModes: + - type: "ReductionMinimal" + mode: 1266 # 0x000004f2 in decimal + lum_weight: 139328 # 0x00022040 in decimal + grn_stage1: 6 + chr_h_mode: 3 + chr_v_mode: 3 + thresh_bl0: 8 + thresh_bl1: 2 + thresh_sh0: 18 + thresh_sh1: 33 + fac_sh0: 4 + fac_sh1: 4 + fac_mid: 4 + fac_bl0: 2 + fac_bl1: 0 + - type: "ReductionHighQuality" + mode: 1266 # 0x000004f2 in decimal + lum_weight: 139328 # 0x00022040 in decimal + grn_stage1: 6 + chr_h_mode: 3 + chr_v_mode: 3 + thresh_bl0: 8 + thresh_bl1: 2 + thresh_sh0: 18 + thresh_sh1: 33 + fac_sh0: 4 + fac_sh1: 4 + fac_mid: 4 + fac_bl0: 2 + fac_bl1: 0 + - type: "ReductionMinimal" + mode: 1266 # 0x000004f2 in decimal + lum_weight: 139328 # 0x00022040 in decimal + grn_stage1: 6 + chr_h_mode: 3 + chr_v_mode: 3 + thresh_bl0: 8 + thresh_bl1: 2 + thresh_sh0: 18 + thresh_sh1: 33 + fac_sh0: 4 + fac_sh1: 4 + fac_mid: 4 + fac_bl0: 2 + fac_bl1: 0 + ActiveMode: "ReductionHighQuality" ... diff --git a/src/ipa/rkisp1/data/ov5640.yaml b/src/ipa/rkisp1/data/ov5640.yaml index 4b21d412..8613380a 100644 --- a/src/ipa/rkisp1/data/ov5640.yaml +++ b/src/ipa/rkisp1/data/ov5640.yaml @@ -247,4 +247,51 @@ algorithms: g: 64 b: 64 - Filter: + NoiseReductionModes: + - type: "ReductionMinimal" + mode: 1266 # 0x000004f2 in decimal + lum_weight: 139328 # 0x00022040 in decimal + grn_stage1: 6 + chr_h_mode: 3 + chr_v_mode: 3 + thresh_bl0: 8 + thresh_bl1: 2 + thresh_sh0: 18 + thresh_sh1: 33 + fac_sh0: 4 + fac_sh1: 4 + fac_mid: 4 + fac_bl0: 2 + fac_bl1: 0 + - type: "ReductionHighQuality" + mode: 1266 # 0x000004f2 in decimal + lum_weight: 139328 # 0x00022040 in decimal + grn_stage1: 6 + chr_h_mode: 3 + chr_v_mode: 3 + thresh_bl0: 8 + thresh_bl1: 2 + thresh_sh0: 18 + thresh_sh1: 33 + fac_sh0: 4 + fac_sh1: 4 + fac_mid: 4 + fac_bl0: 2 + fac_bl1: 0 + - type: "ReductionMinimal" + mode: 1266 # 0x000004f2 in decimal + lum_weight: 139328 # 0x00022040 in decimal + grn_stage1: 6 + chr_h_mode: 3 + chr_v_mode: 3 + thresh_bl0: 8 + thresh_bl1: 2 + thresh_sh0: 18 + thresh_sh1: 33 + fac_sh0: 4 + fac_sh1: 4 + fac_mid: 4 + fac_bl0: 2 + fac_bl1: 0 + ActiveMode: "ReductionHighQuality" ...