From 6b1b2bd7ea7f36e7819109c1019f80b1953b2c96 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Fri, 26 Apr 2024 18:55:16 +0530 Subject: libcamera: libipa: camera_sensor: Add Sony IMX335 sensor properties Provide the Sony IMX335 camera sensor properties and registration with libipa for the gain code helpers. The test patterns exposed by the IMX335 do not map well to the current set of test pattern controls supplied by libcamera. These are left intentionally unimplemented. Signed-off-by: Kieran Bingham Signed-off-by: Umang Jain Reviewed-by: Stefan Klug Reviewed-by: Jacopo Mondi Reviewed-by: Laurent Pinchart --- src/ipa/libipa/camera_sensor_helper.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/ipa') diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp index f70d898f..84d52d10 100644 --- a/src/ipa/libipa/camera_sensor_helper.cpp +++ b/src/ipa/libipa/camera_sensor_helper.cpp @@ -455,6 +455,17 @@ class CameraSensorHelperImx327 : public CameraSensorHelperImx290 }; REGISTER_CAMERA_SENSOR_HELPER("imx327", CameraSensorHelperImx327) +class CameraSensorHelperImx335 : public CameraSensorHelper +{ +public: + CameraSensorHelperImx335() + { + gainType_ = AnalogueGainExponential; + gainConstants_.exp = { 1.0, expGainDb(0.3) }; + } +}; +REGISTER_CAMERA_SENSOR_HELPER("imx335", CameraSensorHelperImx335) + class CameraSensorHelperImx477 : public CameraSensorHelper { public: -- cgit v1.2.1