libcamera: CameraSensorProperties: Add test pattern mode of IMX258

Add supported test pattern modes of IMX258 in CameraSensorProperties.

Signed-off-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Hirokazu Honda 2021-06-14 21:22:15 +09:00 committed by Laurent Pinchart
parent fc9b226d19
commit c11cc6f20b

View file

@ -64,8 +64,13 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
} }, } },
{ "imx258", { { "imx258", {
.unitCellSize = { 1120, 1120 }, .unitCellSize = { 1120, 1120 },
/* \todo fill test pattern modes for imx258. */ .testPatternModes = {
.testPatternModes = {}, { 0, controls::draft::TestPatternModeOff },
{ 1, controls::draft::TestPatternModeSolidColor },
{ 2, controls::draft::TestPatternModeColorBars },
{ 3, controls::draft::TestPatternModeColorBarsFadeToGray },
{ 4, controls::draft::TestPatternModePn9 },
},
} }, } },
{ "ov5670", { { "ov5670", {
.unitCellSize = { 1120, 1120 }, .unitCellSize = { 1120, 1120 },