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

Laurent Pinchart laurent.pinchart at ideasonboard.com
Sun Jul 25 01:30:21 CEST 2021


On Sun, Jul 25, 2021 at 12:24:30AM +0100, Daniel Scally wrote:
> On 24/07/2021 23:57, Laurent Pinchart wrote:
> > 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.

Thank you. This doesn't seem to match what is expected by
controls::draft::TestPatternModeColorBars, so I'd leave it out (you can
check the MIPI CCS specification if you want to see what the color bars
pattern is supposed to look like).

> On that note, just noticed I spelled colour the UK way in the comment
> for item 3.

I prefer the British spelling, but in APIs it seems to be a lost battle
:-(

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