[libcamera-devel] [PATCH] ipa: libipa: Add OV5647 Camera Sensor Helper
Christopher Obbard
chris.obbard at collabora.com
Wed Mar 8 23:44:24 CET 2023
Hi Kieran,
OV5647 was completely broken on RK3399 before this patch, thank you for fixing it!
On Wed, 2023-03-08 at 15:53 -0000, Kieran Bingham wrote:
> Provide a CameraSensorHelper for the OV5647 as used in the Raspberry Pi
> Camera Module v1.
>
> Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
Tested-by: Christopher Obbard <chris.obbard at collabora.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 15d92395a7ae..693b628a438a 100644
> --- a/src/ipa/libipa/camera_sensor_helper.cpp
> +++ b/src/ipa/libipa/camera_sensor_helper.cpp
> @@ -498,6 +498,17 @@ public:
> };
> REGISTER_CAMERA_SENSOR_HELPER("ov5640", CameraSensorHelperOv5640)
>
> +class CameraSensorHelperOv5647 : public CameraSensorHelper
> +{
> +public:
> + CameraSensorHelperOv5647()
> + {
> + gainType_ = AnalogueGainLinear;
> + gainConstants_.linear = { 1, 0, 0, 16 };
> + }
> +};
> +REGISTER_CAMERA_SENSOR_HELPER("ov5647", CameraSensorHelperOv5647)
> +
> class CameraSensorHelperOv5670 : public CameraSensorHelper
> {
> public:
More information about the libcamera-devel
mailing list