[libcamera-devel,v2,3/4] libipa: camera_sensor_helper: Add OV64A40 helper
diff mbox series

Message ID 20231204091053.22807-4-jacopo.mondi@ideasonboard.com
State Superseded
Headers show
Series
  • ipa: Add support for Arducam OV64A40
Related show

Commit Message

Jacopo Mondi Dec. 4, 2023, 9:10 a.m. UTC
Add a CameraSensorHelper for the OV64A40 camera sensor.

Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
---
 src/ipa/libipa/camera_sensor_helper.cpp | 11 +++++++++++
 1 file changed, 11 insertions(+)

Comments

Laurent Pinchart Dec. 6, 2023, 11:34 a.m. UTC | #1
On Mon, Dec 04, 2023 at 10:10:52AM +0100, Jacopo Mondi via libcamera-devel wrote:
> Add a CameraSensorHelper for the OV64A40 camera sensor.
> 
> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.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 f0ecc3830115..ce29f423e712 100644
> --- a/src/ipa/libipa/camera_sensor_helper.cpp
> +++ b/src/ipa/libipa/camera_sensor_helper.cpp
> @@ -547,6 +547,17 @@ public:
>  };
>  REGISTER_CAMERA_SENSOR_HELPER("ov5693", CameraSensorHelperOv5693)
>  
> +class CameraSensorHelperOv64a40 : public CameraSensorHelper
> +{
> +public:
> +	CameraSensorHelperOv64a40()
> +	{
> +		gainType_ = AnalogueGainLinear;
> +		gainConstants_.linear = { 1, 0, 0, 128 };
> +	}
> +};
> +REGISTER_CAMERA_SENSOR_HELPER("ov64a40", CameraSensorHelperOv64a40)
> +
>  class CameraSensorHelperOv8858 : public CameraSensorHelper
>  {
>  public:

Patch
diff mbox series

diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp
index f0ecc3830115..ce29f423e712 100644
--- a/src/ipa/libipa/camera_sensor_helper.cpp
+++ b/src/ipa/libipa/camera_sensor_helper.cpp
@@ -547,6 +547,17 @@  public:
 };
 REGISTER_CAMERA_SENSOR_HELPER("ov5693", CameraSensorHelperOv5693)
 
+class CameraSensorHelperOv64a40 : public CameraSensorHelper
+{
+public:
+	CameraSensorHelperOv64a40()
+	{
+		gainType_ = AnalogueGainLinear;
+		gainConstants_.linear = { 1, 0, 0, 128 };
+	}
+};
+REGISTER_CAMERA_SENSOR_HELPER("ov64a40", CameraSensorHelperOv64a40)
+
 class CameraSensorHelperOv8858 : public CameraSensorHelper
 {
 public: