libcamera: camera_sensor_properties: Add vd56g3 camera sensor

Add unit cell size from the 'pixel size' element in the datasheet.
Delays are set to 2 in case a setting is entered at the very end of the
N frame, the N+1 frame will miss it and only the N+2 frame will use this
new setting.

Note that vd56g3 has a diagonal color test pattern, but does not match
any description in specified test patterns and therefore is ignored.

Signed-off-by: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Benjamin Mugnier
2025-08-06 17:48:12 +01:00
committed by Kieran Bingham
parent 4e567d1981
commit 6f1af6f578
@@ -456,6 +456,27 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
},
.sensorDelays = { },
} },
{ "vd56g3", {
.unitCellSize = { 2610, 2610 },
.testPatternModes = {
{ controls::draft::TestPatternModeOff, 0 },
{ controls::draft::TestPatternModeSolidColor, 1 },
{ controls::draft::TestPatternModePn9, 6 },
/*
* No corresponding test pattern mode for:
* 2: "Vertical Color Bars"
* 3: "Horizontal Gray Scale"
* 4: "Vertical Gray Scale"
* 5: "Diagonal Gray Scale"
*/
},
.sensorDelays = {
.exposureDelay = 2,
.gainDelay = 2,
.vblankDelay = 2,
.hblankDelay = 2
},
} },
};
const auto it = sensorProps.find(sensor);