diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-07-25 02:47:53 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-07-26 11:49:11 +0300 |
commit | 799a04b7e7a15b2ec37cb0b2439f8fcfad8ac5e9 (patch) | |
tree | e35061520f1f66325a4e53168a50e2b3e42672c3 /src | |
parent | 34eef24d0b7bf5a976f6e2ea67cf55326a489741 (diff) |
libcamera: CameraSensorProperties: Sort entries
Keep entries sorted by sensor name to ensure the file stays readable.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcamera/camera_sensor_properties.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp index c6f383e0..4ee45e72 100644 --- a/src/libcamera/camera_sensor_properties.cpp +++ b/src/libcamera/camera_sensor_properties.cpp @@ -72,6 +72,10 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen { 4, controls::draft::TestPatternModePn9 }, }, } }, + { "ov5647", { + .unitCellSize = { 1400, 1400 }, + .testPatternModes = {}, + } }, { "ov5670", { .unitCellSize = { 1120, 1120 }, .testPatternModes = { @@ -79,17 +83,6 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen { 1, controls::draft::TestPatternModeColorBars }, }, } }, - { "ov13858", { - .unitCellSize = { 1120, 1120 }, - .testPatternModes = { - { 0, controls::draft::TestPatternModeOff }, - { 1, controls::draft::TestPatternModeColorBars }, - }, - } }, - { "ov5647", { - .unitCellSize = { 1400, 1400 }, - .testPatternModes = {}, - } }, { "ov5693", { .unitCellSize = { 1400, 1400 }, .testPatternModes = { @@ -116,6 +109,13 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen */ }, } }, + { "ov13858", { + .unitCellSize = { 1120, 1120 }, + .testPatternModes = { + { 0, controls::draft::TestPatternModeOff }, + { 1, controls::draft::TestPatternModeColorBars }, + }, + } }, }; const auto it = sensorProps.find(sensor); |