summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Scally <djrscally@gmail.com>2022-03-16 22:22:45 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2022-03-17 16:34:47 +0000
commitf0bfb2f19e2fbf82ed49b703208cb98704d5d5af (patch)
treef5de262eb9c49a65c19cc0b906577cf9176ef567
parenta42c00e01efbb54ca68d130b8817014fd55e7169 (diff)
libipa: Add CameraSensorHelper for OV2740
The datasheet for the OV2740 gives 0x80 as 1x gain, so real gain is GainCode / 128. Signed-off-by: Daniel Scally <djrscally@gmail.com> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--src/ipa/libipa/camera_sensor_helper.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp
index 5d052612..c953def0 100644
--- a/src/ipa/libipa/camera_sensor_helper.cpp
+++ b/src/ipa/libipa/camera_sensor_helper.cpp
@@ -305,6 +305,16 @@ public:
};
REGISTER_CAMERA_SENSOR_HELPER("imx258", CameraSensorHelperImx258)
+class CameraSensorHelperOv2740 : public CameraSensorHelper
+{
+public:
+ CameraSensorHelperOv2740()
+ {
+ analogueGainConstants_ = { AnalogueGainLinear, 1, 0, 0, 128 };
+ }
+};
+REGISTER_CAMERA_SENSOR_HELPER("ov2740", CameraSensorHelperOv2740)
+
class CameraSensorHelperOv5670 : public CameraSensorHelper
{
public: