From 6a393789f342fb43e37d986394eb1848f9ca5093 Mon Sep 17 00:00:00 2001 From: Daniel Scally Date: Tue, 28 Oct 2025 10:37:20 +0100 Subject: [PATCH] libipa: camera_sensor_helper: Add imx708 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The imx708 sensor driver has long been available, especially in raspberry pi kernels; and the raspberry pi ipa module has had the corresponding helper class since 2023 (952ef94ed78d71). The camera sensor properties database also has an entry for it (2fb0f250196326), but the camera sensor helper class is missing from the common libipa component. So add it, with the same gain formula present in the raspberry pi ipa module, and the black level taken from the rpi tuning files. Handling the raspberry pi specific "wide" / "noir" suffixes is omitted. They are not present in the camera sensor properties database either. Signed-off-by: Daniel Scally [Add black level, extend commit message.] Signed-off-by: Barnabás Pőcze Reviewed-by: Kieran Bingham Signed-off-by: Kieran Bingham --- src/ipa/libipa/camera_sensor_helper.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp index ef3bd0d6..e3e3e535 100644 --- a/src/ipa/libipa/camera_sensor_helper.cpp +++ b/src/ipa/libipa/camera_sensor_helper.cpp @@ -642,6 +642,17 @@ public: }; REGISTER_CAMERA_SENSOR_HELPER("imx477", CameraSensorHelperImx477) +class CameraSensorHelperImx708 : public CameraSensorHelper +{ +public: + CameraSensorHelperImx708() + { + blackLevel_ = 4096; + gain_ = AnalogueGainLinear{ 0, 1024, -1, 1024 }; + } +}; +REGISTER_CAMERA_SENSOR_HELPER("imx708", CameraSensorHelperImx708) + class CameraSensorHelperOv2685 : public CameraSensorHelper { public: