summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikhail Rudenko <mike.rudenko@gmail.com>2023-01-23 17:06:17 +0300
committerJacopo Mondi <jacopo.mondi@ideasonboard.com>2023-01-25 18:43:36 +0100
commit1818b92fd78eaacb05d0b4cd0fa58d9e1db751da (patch)
treefbbf945691abf60a86858caee4e0f3732dbc27b2 /src
parent3643c59617841a73ff8bd588bb60f7f6b87d418f (diff)
libcamera: camera_sensor: Add OV4689 sensor properties
Add an entry to the sensor properties for Omnivision OV4689. Kernel supports two more types of color bars patterns, which we do not expose now. Signed-off-by: Mikhail Rudenko <mike.rudenko@gmail.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/camera_sensor_properties.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
index c3c2cace..a601e1ae 100644
--- a/src/libcamera/camera_sensor_properties.cpp
+++ b/src/libcamera/camera_sensor_properties.cpp
@@ -130,6 +130,19 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
{ controls::draft::TestPatternModeColorBars, 1},
},
} },
+ { "ov4689", {
+ .unitCellSize = { 2000, 2000 },
+ .testPatternModes = {
+ { controls::draft::TestPatternModeOff, 0 },
+ { controls::draft::TestPatternModeColorBars, 1},
+ { controls::draft::TestPatternModeColorBarsFadeToGray, 2},
+ /*
+ * No corresponding test patterns in
+ * MIPI CCS specification for sensor's
+ * colorBarType2 and colorBarType3.
+ */
+ },
+ } },
{ "ov5640", {
.unitCellSize = { 1400, 1400 },
.testPatternModes = {