[3/3] ipa: simple: Add a tuning file for the IMX582 and IMX586
diff mbox series

Message ID ER1-t_uBUITtJqahlHPsL9PAxsZJ6JgQgBRpIvDrSXv-dwdtsyFEHhNXbTCft5S-4wCRPzYfsAhy9sVe5zdmko2pZv5HfTduhv1aBQmSpMw=@proton.me
State New
Headers show
Series
  • [1/3] libcamera: camera_sensor_properties: Add IMX582, IMX586 and OV8856
Related show

Commit Message

j4niwzis Aug. 2, 2026, 2:01 p.m. UTC
Without a tuning file of its own the sensor falls back to uncalibrated.yaml,which has no colour correction at all, and the picture comes out blue.

The matrices here are the generic Sony daylight and tungsten ones, normalised
so that each row sums to one; they are not measured on a particular module,
but they are much closer than the identity that the uncalibrated file leaves
in place.  A module specific profile can be built later from a colour target
without touching this file.

Signed-off-by: j4niwzis <j4niwzis@proton.me>
---
--
2.51.0

Patch
diff mbox series

diff --git a/src/ipa/simple/data/meson.build b/src/ipa/simple/data/meson.build
--- a/src/ipa/simple/data/meson.build
+++ b/src/ipa/simple/data/meson.build
@@ -1,6 +1,7 @@ 
 # SPDX-License-Identifier: CC0-1.0

 conf_files = files([
+    'imx586.yaml',
     'uncalibrated.yaml',
 ])

diff --git a/src/ipa/simple/data/imx586.yaml b/src/ipa/simple/data/imx586.yaml
new file mode 100644
--- /dev/null
+++ b/src/ipa/simple/data/imx586.yaml
@@ -0,0 +1,20 @@ 
+# SPDX-License-Identifier: CC0-1.0
+%YAML 1.1
+---
+version: 1
+algorithms:
+  - BlackLevel:
+  - Awb:
+  - Ccm:
+      ccms:
+        - ct: 2900
+          ccm: [  1.55, -0.44, -0.11,
+                 -0.29,  1.61, -0.32,
+                 -0.03, -0.72,  1.75 ]
+        - ct: 6500
+          ccm: [  1.60, -0.52, -0.08,
+                 -0.23,  1.60, -0.37,
+                 -0.04, -0.55,  1.59 ]
+  - Adjust:
+  - Agc:
+...