From 7235248d38434f4c3e8a163ab03637ac115bdda8 Mon Sep 17 00:00:00 2001 From: Alexander Stein Date: Fri, 3 May 2024 14:44:20 +0200 Subject: libcamera: libipa: camera_sensor: Add Sony IMX415 sensor properties Provide the Sony IMX415 camera sensor properties and registration with libipa for the gain code helpers. The test patterns exposed by the IMX415 do not map well to the current set of test pattern controls supplied by libcamera. These are left intentionally unimplemented. Signed-off-by: Alexander Stein Reviewed-by: Laurent Pinchart Reviewed-by: Daniel Scally Signed-off-by: Laurent Pinchart --- src/ipa/libipa/camera_sensor_helper.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/ipa/libipa/camera_sensor_helper.cpp') diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp index 84d52d10..f8a497e1 100644 --- a/src/ipa/libipa/camera_sensor_helper.cpp +++ b/src/ipa/libipa/camera_sensor_helper.cpp @@ -466,6 +466,17 @@ public: }; REGISTER_CAMERA_SENSOR_HELPER("imx335", CameraSensorHelperImx335) +class CameraSensorHelperImx415 : public CameraSensorHelper +{ +public: + CameraSensorHelperImx415() + { + gainType_ = AnalogueGainExponential; + gainConstants_.exp = { 1.0, expGainDb(0.3) }; + } +}; +REGISTER_CAMERA_SENSOR_HELPER("imx415", CameraSensorHelperImx415) + class CameraSensorHelperImx477 : public CameraSensorHelper { public: -- cgit v1.2.1