From patchwork Sun Feb 1 19:16:00 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rui Wang X-Patchwork-Id: 26063 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 0BFD4BD78E for ; Sun, 1 Feb 2026 19:16:26 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4ED5E61FCF; Sun, 1 Feb 2026 20:16:25 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="JVx7vUXV"; 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 A55A461FA0 for ; Sun, 1 Feb 2026 20:16:23 +0100 (CET) Received: from rui-Precision-7560.tail5b760b.ts.net (unknown [209.216.103.65]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DA8A2492; Sun, 1 Feb 2026 20:15:42 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1769973343; bh=NmPC0W8iK/v5v5W722WFtnPenG9taHq2vSFmJTuxGpY=; h=From:To:Cc:Subject:Date:From; b=JVx7vUXV5GL1OgC+mKbtkyneBGyKTYL5b0Vw/3rPULkl8Al+D/1THmgmtAxSb82Gq Zt/8MNx3r5mhhftVSQ1G2yckLhxkUYvZXP94KAo6UxfCC+RT+ghV8P2ilvPWUBvgkA 8xcgf06Ls396Swv6juyppQSSaIIEZalwHTPoCrS0= From: Rui Wang To: libcamera-devel@lists.libcamera.org Cc: Rui Wang Subject: [PATCH v12 0/7] refactor DPF parsing and initialization Date: Sun, 1 Feb 2026 14:16:00 -0500 Message-ID: <20260201191607.2740223-1-rui.wang@ideasonboard.com> X-Mailer: git-send-email 2.43.0 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" This patch series refactors the DPF (Denoise Pre-Filter) parsing and nitialization in the rkisp1 IPA module, and enables DPF tuning for the IMX219/OV5647/OV5640 sensor. The changes include restructuring the DPF configuration handling, improving readability, and adding support for sensor-specific DPF parameters. Support mode selection base on tuning parameters Key changes: - Inlined parseModes into parseConfig for cleaner initialization. - Refactored mode lookup to use a dictionary, facilitating name-based lookup in tuning files. - Introduced ActiveMode as an optional tuning parameter to set the default DPF state. - Improved code structure in prepare() by using helper functions for enabled and disabled states. - Enhanced debug logging for ISP parameter verification. - Provided initial tuning data for IMX219, OV5640, and OV5647. hanges since v11: - name changed: ActiveMode -> ActiveMode - simplified mode lookup logic in parseConfig() - simplified logging in parseConfig() - add NoiseReductionModeOff to noiseReductionMode_ to reduce lookup complexity Rui Wang (7): ipa: rkisp1: algorithms: dpf: refactor DPF parsing and initialization ipa: rkisp1: algorithms: dpf: Implement mode switching ipa: rkisp1: algorithms: register noise reduction controls ipa: rkisp1: algorithms: dpf: Refactor prepare() into helpers ipa: rkisp1: algorithms: dpf: Add detailed config logging ipa: rkisp1: algorithms: data: enable DPF tuning for sensors ipa: rkisp1: algorithms: data: Add OV5647/IMX219 tuning file src/ipa/rkisp1/algorithms/dpf.cpp | 280 ++++++++++++++++++++++++------ src/ipa/rkisp1/algorithms/dpf.h | 25 ++- src/ipa/rkisp1/data/imx219.yaml | 25 +++ src/ipa/rkisp1/data/meson.build | 1 + src/ipa/rkisp1/data/ov5640.yaml | 64 +++++-- src/ipa/rkisp1/data/ov5647.yaml | 34 ++++ src/ipa/rkisp1/rkisp1.cpp | 1 - 7 files changed, 364 insertions(+), 66 deletions(-) create mode 100644 src/ipa/rkisp1/data/ov5647.yaml