summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Scally <djrscally@gmail.com>2021-07-22 21:36:58 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-25 02:43:45 +0300
commit34eef24d0b7bf5a976f6e2ea67cf55326a489741 (patch)
tree7c01c29417fdc00c915ea4a51a81b0833af63257 /src
parent2c88a6dbc12e0bf5e194446ea054124bc01faf2e (diff)
libcamera: Add OV8865 sensor properties
Add camera sensor properties for the OV8865 sensor. This is the world facing camera on most MS Surface platforms. Signed-off-by: Daniel Scally <djrscally@gmail.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> 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.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
index 7d8ba9e9..c6f383e0 100644
--- a/src/libcamera/camera_sensor_properties.cpp
+++ b/src/libcamera/camera_sensor_properties.cpp
@@ -102,6 +102,20 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
*/
},
} },
+ { "ov8865", {
+ .unitCellSize = { 1400, 1400 },
+ .testPatternModes = {
+ { 0, controls::draft::TestPatternModeOff },
+ { 2, controls::draft::TestPatternModeColorBars },
+ /*
+ * No corresponding test pattern mode for:
+ * 1: "Random data"
+ * 3: "Color bars with rolling bar"
+ * 4: "Color squares"
+ * 5: "Color squares with rolling bar"
+ */
+ },
+ } },
};
const auto it = sensorProps.find(sensor);