[v9,0/6] refactor DPF parsing and initialization
mbox series

Message ID 20260118203119.1554962-1-rui.wang@ideasonboard.com
Headers show
Series
  • refactor DPF parsing and initialization
Related show

Message

Rui Wang Jan. 18, 2026, 8:31 p.m. UTC
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 string-to-int map, 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.

Changes since v8:
- revert YAML key renaming across the series and tuning files.
- Remove redundant base configuration parsing from Dpf::parseConfig().
- Update prepare() to utilize prepareEnabledMode() and prepareDisabledMode().
- Update all sensor tuning data files to the new CamelCase key format.
- Restore detailed configuration logging for DPF updates.
- Delete commit of rename YAML dpf config
- replace strengthConfig_ config_  by const_iterator activeMode_ 



Rui Wang (6):
  ipa: rkisp1: algorithms: dpf: refactor DPF parsing and initialization
  ipa: rkisp1: algorithms: dpf: Implement mode switching
  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 | 281 ++++++++++++++++++++++++------
 src/ipa/rkisp1/algorithms/dpf.h   |  24 ++-
 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 ++++
 6 files changed, 364 insertions(+), 65 deletions(-)
 create mode 100644 src/ipa/rkisp1/data/ov5647.yaml