diff options
author | Paul Elder <paul.elder@ideasonboard.com> | 2022-03-16 16:58:42 +0900 |
---|---|---|
committer | Paul Elder <paul.elder@ideasonboard.com> | 2022-03-23 17:42:17 +0900 |
commit | 9cdf837ab7fa955683d857193d140508f059b84e (patch) | |
tree | 99caf3c6a8ba838a6179a3a219cc9d9c508da54e | |
parent | fc9bbddf0c6da7a333263198243feb11b21ff5ef (diff) |
libcamera: camera_sensor: Add OV5640 sensor properties
Add an entry to the sensor properties for the ov5640. Only the first
test pattern is included as the others that are exposed by the kernel
don't correspond to any that are defined in the libcamera control.
Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | src/libcamera/camera_sensor_properties.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp index d1c4605e..80a0bbac 100644 --- a/src/libcamera/camera_sensor_properties.cpp +++ b/src/libcamera/camera_sensor_properties.cpp @@ -101,6 +101,13 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen { controls::draft::TestPatternModeColorBars, 1}, }, } }, + { "ov5640", { + .unitCellSize = { 1400, 1400 }, + .testPatternModes = { + { controls::draft::TestPatternModeOff, 0 }, + { controls::draft::TestPatternModeColorBars, 1 }, + }, + } }, { "ov5647", { .unitCellSize = { 1400, 1400 }, .testPatternModes = {}, |