[libcamera-devel] [PATCH 1/4] ipa: camera_sensor_helper: Add OV4689 support
Mikhail Rudenko
mike.rudenko at gmail.com
Thu Jan 19 16:59:02 CET 2023
Add support for Omnivision OV4689 image sensor to libipa.
The sensor implements a linear gain equation with analogue gain
control values 0-2047 corresponding to 0x-16x physical gain range.
Signed-off-by: Mikhail Rudenko <mike.rudenko at gmail.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 3d8a2835..075c568e 100644
--- a/src/ipa/libipa/camera_sensor_helper.cpp
+++ b/src/ipa/libipa/camera_sensor_helper.cpp
@@ -461,6 +461,17 @@ public:
};
REGISTER_CAMERA_SENSOR_HELPER("ov2740", CameraSensorHelperOv2740)
+class CameraSensorHelperOv4689 : public CameraSensorHelper
+{
+public:
+ CameraSensorHelperOv4689()
+ {
+ gainType_ = AnalogueGainLinear;
+ gainConstants_.linear = { 1, 0, 0, 128 };
+ }
+};
+REGISTER_CAMERA_SENSOR_HELPER("ov4689", CameraSensorHelperOv4689)
+
class CameraSensorHelperOv5640 : public CameraSensorHelper
{
public:
--
2.39.0
More information about the libcamera-devel
mailing list