diff options
author | Hirokazu Honda <hiroh@chromium.org> | 2021-06-14 21:22:15 +0900 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-06-26 01:07:38 +0300 |
commit | c11cc6f20b4f701afaa24416be2b711e2415d79d (patch) | |
tree | f069be1e4124d2430ef62cb3f389fcf33493beac /src | |
parent | fc9b226d19b59e965b1746ba5dc6fc603de3b591 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/camera_sensor_properties.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp index 7b7279ef..7d8ba9e9 100644 --- a/src/libcamera/camera_sensor_properties.cpp +++ b/src/libcamera/camera_sensor_properties.cpp @@ -64,8 +64,13 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen } }, { "imx258", { .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", { .unitCellSize = { 1120, 1120 }, |