[libcamera-devel] [PATCH 2/2] ipa: libipa: Add OV5695 Camera Sensor Helper
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Thu Mar 9 11:26:50 CET 2023
Hi Kieran,
Thank you for the patch.
On Mon, Feb 27, 2023 at 08:42:54PM +0000, Kieran Bingham via libcamera-devel wrote:
> Provide a CameraSensorHelper for the OV5695, along with the
> corresponding camera sensor properties.
>
> Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
> ---
> src/ipa/libipa/camera_sensor_helper.cpp | 11 +++++++++++
> src/libcamera/camera_sensor_properties.cpp | 8 ++++++++
> 2 files changed, 19 insertions(+)
>
> diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp
> index d1051cc25656..a38fefc75372 100644
> --- a/src/ipa/libipa/camera_sensor_helper.cpp
> +++ b/src/ipa/libipa/camera_sensor_helper.cpp
> @@ -527,6 +527,17 @@ public:
> };
> REGISTER_CAMERA_SENSOR_HELPER("ov5693", CameraSensorHelperOv5693)
>
> +class CameraSensorHelperOv5695 : public CameraSensorHelper
> +{
> +public:
> + CameraSensorHelperOv5695()
> + {
> + gainType_ = AnalogueGainLinear;
> + gainConstants_.linear = { 1, 0, 0, 128 };
This seems a bit weird, given that the driver sets the minimum gain to
0x10 and the maximum (and default) gain to 0xf8. I'd be surprised if the
sensors supported gains lower than one, and particularly as low as
0.125. A 1/16 gain step would be more plausible.
> + }
> +};
> +REGISTER_CAMERA_SENSOR_HELPER("ov5695", CameraSensorHelperOv5695)
> +
> class CameraSensorHelperOv8858 : public CameraSensorHelper
> {
> public:
> diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
> index 7652c5f3e24c..a92c13b87b7f 100644
> --- a/src/libcamera/camera_sensor_properties.cpp
> +++ b/src/libcamera/camera_sensor_properties.cpp
> @@ -204,6 +204,14 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
> */
> },
> } },
> + { "ov5695", {
> + .unitCellSize = { 1400, 1400 },
> + .testPatternModes = {
> + { controls::draft::TestPatternModeOff, 0 },
> + { controls::draft::TestPatternModeColorBars, 2 },
> + { controls::draft::TestPatternModeColorBarsFadeToGray, 4},
> + },
> + } },
> { "ov8858", {
> .unitCellSize = { 1120, 1120 },
> .testPatternModes = {
--
Regards,
Laurent Pinchart
More information about the libcamera-devel
mailing list