[libcamera-devel] [PATCH] libcamera: camera_sensor: Add IMX519 sensor properties

Umang Jain umang.jain at ideasonboard.com
Wed Nov 30 18:45:35 CET 2022


Hi Laurent,

On 11/24/22 1:58 AM, Laurent Pinchart wrote:
> On Wed, Nov 23, 2022 at 06:32:20PM +0100, Jacopo Mondi via libcamera-devel wrote:
>> On Tue, Nov 15, 2022 at 08:48:15PM +0530, Umang Jain via libcamera-devel wrote:
>>> Add an entry for Arducam IMX519 sensor which has 1220x1220 pixel array
> It's the pixel size, not the pixel array.
ack
>
>>> and supports four test pattern modes.
>>>
>>> Signed-off-by: Umang Jain <umang.jain at ideasonboard.com>
>>> ---
>>>   src/libcamera/camera_sensor_properties.cpp | 10 ++++++++++
>>>   1 file changed, 10 insertions(+)
>>>
>>> diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
>>> index e5f27f06..04d80d6d 100644
>>> --- a/src/libcamera/camera_sensor_properties.cpp
>>> +++ b/src/libcamera/camera_sensor_properties.cpp
>>> @@ -102,6 +102,16 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
>>>   			.unitCellSize = { 1550, 1550 },
>>>   			.testPatternModes = {},
>>>   		} },
>>> +		{ "imx519", {
>>> +			.unitCellSize = { 1220, 1220 },
>>> +			.testPatternModes = {
>>> +				{ controls::draft::TestPatternModeOff, 0 },
>>> +				{ controls::draft::TestPatternModeColorBars, 1 },
>>> +				{ controls::draft::TestPatternModeSolidColor, 2 },
>>> +				{ controls::draft::TestPatternModeColorBarsFadeToGray, 3 },
>>> +				{ controls::draft::TestPatternModePn9, 4 },
>>> +			},
>>> +		} },
>> I don't have documentation, so it looks reasonable to me :)
>>
>> Reviewed-by: Jacopo Mondi <jacopo at jmondi.org>
> Umang, do you have access to that camera module ? If so, have you been
> able to compare the test patterns with the CCS specification ? If so,
> with the commit message update,

So there are couple of things off with test patterns I obtained.

- The CCS specification say [1] for Solid Color and [2] for 100% Color 
Bars. IMX519 got these indexes swapped while reporting via v4l2-ctl atleast
- There is no 'ColorBars' and 'ColorBarsFadeToGray' patterns in my 
testing  which comply with CCS's patterns atleast.

What I obttained is the following:

[0]: (disabled)
[1]: Two color bars only Aqua and Yellow (Does this count as color bars?)
[2]: Solid Color (white)
[3]: Same as [1]
[4]: PN9 seems fine

If you need visual samples let me know, I'll send it to you.
>
> Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
>
>>>   		{ "ov2740", {
>>>   			.unitCellSize = { 1400, 1400 },
>>>   			.testPatternModes = {



More information about the libcamera-devel mailing list