Message ID | 20230308155329.3083814-1-kieran.bingham@ideasonboard.com |
---|---|
State | Accepted |
Commit | 8c0ae95865126a519dc476a4ca00ea4d62210a89 |
Headers | show |
Series |
|
Related | show |
Hi Kieran, Thank you for the patch. On Wed, Mar 08, 2023 at 03:53:29PM +0000, Kieran Bingham via libcamera-devel wrote: > Provide a CameraSensorHelper for the OV5647 as used in the Raspberry Pi > Camera Module v1. > > Signed-off-by: Kieran Bingham <kieran.bingham@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 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:
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@ideasonboard.com> Tested-by: Christopher Obbard <chris.obbard@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:
Hi Kieran, On 3/8/23 9:23 PM, Kieran Bingham via libcamera-devel wrote: > Provide a CameraSensorHelper for the OV5647 as used in the Raspberry Pi > Camera Module v1. > > Signed-off-by: Kieran Bingham <kieran.bingham@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 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:
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:
Provide a CameraSensorHelper for the OV5647 as used in the Raspberry Pi Camera Module v1. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> --- src/ipa/libipa/camera_sensor_helper.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+)