[v1,4/4] ipa: rkisp1: data: Add Filter tuning configuration for sensors
diff mbox series

Message ID 20260118202953.1554892-5-rui.wang@ideasonboard.com
State New
Headers show
Series
  • Filter algorithm refactoring and mode switching
Related show

Commit Message

Rui Wang Jan. 18, 2026, 8:29 p.m. UTC
Add initial Filter algorithm tuning parameters for IMX219/OV5640
sensor, enabling filter noise reduction mode switching support.

Signed-off-by: Rui Wang <rui.wang@ideasonboard.com>
---
 src/ipa/rkisp1/data/imx219.yaml | 48 +++++++++++++++++++++++++++++++++
 src/ipa/rkisp1/data/ov5640.yaml | 47 ++++++++++++++++++++++++++++++++
 2 files changed, 95 insertions(+)

Patch
diff mbox series

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"
 ...