[libcamera-devel] [PATCH 2/2] libcamera: Add OV8865 sensor properties.

Laurent Pinchart laurent.pinchart at ideasonboard.com
Sun Jul 25 00:57:50 CEST 2021


Hi Dan,

Thank you for the patch.

On Thu, Jul 22, 2021 at 09:36:58PM +0100, Daniel Scally wrote:
> Add camera sensor properties for the OV8865 sensor. This is the world
> facing camera on most MS Surface platforms.
> 
> Signed-off-by: Daniel Scally <djrscally at gmail.com>
> ---
>  src/libcamera/camera_sensor_properties.cpp | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
> index 7d8ba9e9..e1b6416b 100644
> --- a/src/libcamera/camera_sensor_properties.cpp
> +++ b/src/libcamera/camera_sensor_properties.cpp
> @@ -102,6 +102,20 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
>  				 */
>  			},
>  		} },
> +		{ "ov8865", {
> +			.unitCellSize = { 1400, 1400 },
> +			.testPatternModes = {
> +				{ 0, controls::draft::TestPatternModeOff },
> +				{ 2, controls::draft::TestPatternModeColorBars },

Would you be able to capture an image with this test pattern ? The color
bars pattern has a specific definition, identical to the one in the CCS
specification. I'd like to double-check that it matches.

> +				/*
> +				 * No corresponding test pattern mode for:
> +				 * 1: "Random data"
> +				 * 3: "Colour Bars with Rolling Bar"
> +				 * 4: "Color squares"
> +				 * 5: "Color squares with rolling bar"
> +				 */
> +			},
> +		} },
>  	};
>  
>  	const auto it = sensorProps.find(sensor);

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list