[libcamera-devel] [PATCH] libipa: camera_sensor_helper: Add Sony IMX477 helper

paul.elder at ideasonboard.com paul.elder at ideasonboard.com
Fri May 27 05:05:53 CEST 2022


Hi Naush,

On Wed, May 25, 2022 at 01:27:35PM +0100, Naushir Patuck via libcamera-devel wrote:
> Add suport for the Sony IMX477 sensor in the cameara helper database.
> 
> Signed-off-by: Naushir Patuck <naush at raspberrypi.com>

Reviewed-by: Paul Elder <paul.elder at 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 0f1561370c9c..2ddbf01cdeac 100644
> --- a/src/ipa/libipa/camera_sensor_helper.cpp
> +++ b/src/ipa/libipa/camera_sensor_helper.cpp
> @@ -396,6 +396,17 @@ public:
>  };
>  REGISTER_CAMERA_SENSOR_HELPER("imx296", CameraSensorHelperImx296)
>  
> +class CameraSensorHelperImx477 : public CameraSensorHelper
> +{
> +public:
> +	CameraSensorHelperImx477()
> +	{
> +		gainType_ = AnalogueGainLinear;
> +		gainConstants_.linear = { 0, 1024, -1, 1024 };
> +	}
> +};
> +REGISTER_CAMERA_SENSOR_HELPER("imx477", CameraSensorHelperImx477)
> +
>  class CameraSensorHelperOv2740 : public CameraSensorHelper
>  {
>  public:
> -- 
> 2.34.1
> 


More information about the libcamera-devel mailing list