[libcamera-devel] [PATCH] libipa: camera_sensor_helper: Add OV5640 helper
Jacopo Mondi
jacopo at jmondi.org
Mon Mar 28 14:55:26 CEST 2022
Hi Laurent,
On Mon, Mar 28, 2022 at 03:04:04PM +0300, Laurent Pinchart via libcamera-devel wrote:
> From: Paul Elder <paul.elder at ideasonboard.com>
>
> The OV5640 is am OmniVision sensor with a linear gain model, expressed
> in 1/16 steps.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo at jmondi.org>
Thanks
j
> ---
> 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 0ec51f4e0753..c098e48cdfe0 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("ov2740", CameraSensorHelperOv2740)
>
> +class CameraSensorHelperOv5640 : public CameraSensorHelper
> +{
> +public:
> + CameraSensorHelperOv5640()
> + {
> + gainType_ = AnalogueGainLinear;
> + gainConstants_.linear = { 1, 0, 0, 16 };
> + }
> +};
> +REGISTER_CAMERA_SENSOR_HELPER("ov5640", CameraSensorHelperOv5640)
> +
> class CameraSensorHelperOv5670 : public CameraSensorHelper
> {
> public:
> --
> Regards,
>
> Laurent Pinchart
>
More information about the libcamera-devel
mailing list