summaryrefslogtreecommitdiff
path: root/src/ipa/libipa/camera_sensor_helper.cpp
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2022-07-13 15:01:28 +0200
committerJacopo Mondi <jacopo@jmondi.org>2022-07-14 20:12:17 +0200
commit7072646ffaf05b2c8e0559360d07096a7ece830c (patch)
tree222bc43231f1722c0465fb45cce055a36f38c8f6 /src/ipa/libipa/camera_sensor_helper.cpp
parent4ee97baf993c2493fba4033aafb204f217dd2440 (diff)
ipa: libipa: Add Sony IMX519 support
Add support for the IMX519 camera sensor to the libipa camera helper. The gain calculation function as reported in the RaspberryPi's src/ipa/raspberrypi/cam_helper_imx519.cpp is identical to the IMX477 one, so we can safely copy the same implementation here as well. Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/ipa/libipa/camera_sensor_helper.cpp')
-rw-r--r--src/ipa/libipa/camera_sensor_helper.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp
index d4dba497..09a6deae 100644
--- a/src/ipa/libipa/camera_sensor_helper.cpp
+++ b/src/ipa/libipa/camera_sensor_helper.cpp
@@ -407,6 +407,17 @@ public:
};
REGISTER_CAMERA_SENSOR_HELPER("imx477", CameraSensorHelperImx477)
+class CameraSensorHelperImx519 : public CameraSensorHelper
+{
+public:
+ CameraSensorHelperImx519()
+ {
+ gainType_ = AnalogueGainLinear;
+ gainConstants_.linear = { 0, 1024, -1, 1024 };
+ }
+};
+REGISTER_CAMERA_SENSOR_HELPER("imx519", CameraSensorHelperImx519)
+
class CameraSensorHelperOv2740 : public CameraSensorHelper
{
public: