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

Daniel Scally djrscally at gmail.com
Sun Jul 25 01:24:30 CEST 2021


Hi Laurent

On 24/07/2021 23:57, Laurent Pinchart wrote:
> 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.


Sure, this is the output: https://i.imgur.com/Lna5L47.png ... guess it's
more like "coloured columns" than bars. On that note, just noticed I
spelled colour the UK way in the comment for item 3.

>
>> +				/*
>> +				 * 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);


More information about the libcamera-devel mailing list