Message ID | 20220328120336.10834-5-laurent.pinchart@ideasonboard.com |
---|---|
State | Accepted |
Headers | show |
Series |
|
Related | show |
Hi Laurent On Mon, Mar 28, 2022 at 03:03:36PM +0300, Laurent Pinchart via libcamera-devel wrote: > The IMX296 is a Sony sensor that expresses its gain in 0.1dB units. It > thus maps to the exponential gain model. > > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@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 136b9f6bc3c5..0ec51f4e0753 100644 > --- a/src/ipa/libipa/camera_sensor_helper.cpp > +++ b/src/ipa/libipa/camera_sensor_helper.cpp > @@ -385,6 +385,17 @@ public: > }; > REGISTER_CAMERA_SENSOR_HELPER("imx290", CameraSensorHelperImx290) > > +class CameraSensorHelperImx296 : public CameraSensorHelper > +{ > +public: > + CameraSensorHelperImx296() > + { > + gainType_ = AnalogueGainExponential; > + gainConstants_.exp = { 1.0, expGainDb(0.1) }; > + } > +}; > +REGISTER_CAMERA_SENSOR_HELPER("imx296", CameraSensorHelperImx296) > + > class CameraSensorHelperOv2740 : public CameraSensorHelper > { > public: > -- > Regards, > > Laurent Pinchart >
Hi, On 3/28/22 17:33, Laurent Pinchart via libcamera-devel wrote: > The IMX296 is a Sony sensor that expresses its gain in 0.1dB units. It > thus maps to the exponential gain model. > > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@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 136b9f6bc3c5..0ec51f4e0753 100644 > --- a/src/ipa/libipa/camera_sensor_helper.cpp > +++ b/src/ipa/libipa/camera_sensor_helper.cpp > @@ -385,6 +385,17 @@ public: > }; > REGISTER_CAMERA_SENSOR_HELPER("imx290", CameraSensorHelperImx290) > > +class CameraSensorHelperImx296 : public CameraSensorHelper > +{ > +public: > + CameraSensorHelperImx296() > + { > + gainType_ = AnalogueGainExponential; > + gainConstants_.exp = { 1.0, expGainDb(0.1) }; > + } > +}; > +REGISTER_CAMERA_SENSOR_HELPER("imx296", CameraSensorHelperImx296) > + > class CameraSensorHelperOv2740 : public CameraSensorHelper > { > public:
Hi Laurent, On Mon, Mar 28, 2022 at 03:03:36PM +0300, Laurent Pinchart via libcamera-devel wrote: > The IMX296 is a Sony sensor that expresses its gain in 0.1dB units. It > thus maps to the exponential gain model. > > Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@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 136b9f6bc3c5..0ec51f4e0753 100644 > --- a/src/ipa/libipa/camera_sensor_helper.cpp > +++ b/src/ipa/libipa/camera_sensor_helper.cpp > @@ -385,6 +385,17 @@ public: > }; > REGISTER_CAMERA_SENSOR_HELPER("imx290", CameraSensorHelperImx290) > > +class CameraSensorHelperImx296 : public CameraSensorHelper > +{ > +public: > + CameraSensorHelperImx296() > + { > + gainType_ = AnalogueGainExponential; > + gainConstants_.exp = { 1.0, expGainDb(0.1) }; > + } > +}; > +REGISTER_CAMERA_SENSOR_HELPER("imx296", CameraSensorHelperImx296) > + > class CameraSensorHelperOv2740 : public CameraSensorHelper > { > public:
diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp index 136b9f6bc3c5..0ec51f4e0753 100644 --- a/src/ipa/libipa/camera_sensor_helper.cpp +++ b/src/ipa/libipa/camera_sensor_helper.cpp @@ -385,6 +385,17 @@ public: }; REGISTER_CAMERA_SENSOR_HELPER("imx290", CameraSensorHelperImx290) +class CameraSensorHelperImx296 : public CameraSensorHelper +{ +public: + CameraSensorHelperImx296() + { + gainType_ = AnalogueGainExponential; + gainConstants_.exp = { 1.0, expGainDb(0.1) }; + } +}; +REGISTER_CAMERA_SENSOR_HELPER("imx296", CameraSensorHelperImx296) + class CameraSensorHelperOv2740 : public CameraSensorHelper { public:
The IMX296 is a Sony sensor that expresses its gain in 0.1dB units. It thus maps to the exponential gain model. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> --- src/ipa/libipa/camera_sensor_helper.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+)