[libcamera-devel] [PATCH] libipa: camera_sensor_helper: Add Sony IMX477 helper
Naushir Patuck
naush at raspberrypi.com
Wed May 25 14:27:35 CEST 2022
Add suport for the Sony IMX477 sensor in the cameara helper database.
Signed-off-by: Naushir Patuck <naush at raspberrypi.com>
---
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 0f1561370c9c..2ddbf01cdeac 100644
--- a/src/ipa/libipa/camera_sensor_helper.cpp
+++ b/src/ipa/libipa/camera_sensor_helper.cpp
@@ -396,6 +396,17 @@ public:
};
REGISTER_CAMERA_SENSOR_HELPER("imx296", CameraSensorHelperImx296)
+class CameraSensorHelperImx477 : public CameraSensorHelper
+{
+public:
+ CameraSensorHelperImx477()
+ {
+ gainType_ = AnalogueGainLinear;
+ gainConstants_.linear = { 0, 1024, -1, 1024 };
+ }
+};
+REGISTER_CAMERA_SENSOR_HELPER("imx477", CameraSensorHelperImx477)
+
class CameraSensorHelperOv2740 : public CameraSensorHelper
{
public:
--
2.34.1
More information about the libcamera-devel
mailing list