[libcamera-devel,v2] libcamera: Add OV5647 sensor properties
diff mbox series

Message ID 20210621140035.119636-1-vedantparanjape160201@gmail.com
State Superseded
Headers show
Series
  • [libcamera-devel,v2] libcamera: Add OV5647 sensor properties
Related show

Commit Message

Vedant Paranjape June 21, 2021, 2 p.m. UTC
Brief specifications available at
https://cdn.sparkfun.com/datasheets/Dev/RaspberryPi/ov5647_full.pdf

Change referenced from Page 5: key specifications section of the above
linked pdf

> pixel size: 1.4 μm x 1.4 μm

Signed-off-by: Vedant Paranjape <vedantparanjape160201@gmail.com>
---
 .vscode/c_cpp_properties.json              | 17 +++++++++++++++++
 src/libcamera/camera_sensor_properties.cpp |  5 +++++
 2 files changed, 22 insertions(+)
 create mode 100644 .vscode/c_cpp_properties.json

Patch
diff mbox series

diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json
new file mode 100644
index 00000000..103e7a55
--- /dev/null
+++ b/.vscode/c_cpp_properties.json
@@ -0,0 +1,17 @@ 
+{
+    "configurations": [
+        {
+            "name": "Linux",
+            "includePath": [
+                "${workspaceFolder}/**"
+            ],
+            "defines": [],
+            "compilerPath": "/usr/bin/gcc",
+            "cStandard": "gnu17",
+            "cppStandard": "gnu++14",
+            "intelliSenseMode": "linux-gcc-x64",
+            "compileCommands": "${workspaceFolder}/build/compile_commands.json"
+        }
+    ],
+    "version": 4
+}
\ No newline at end of file
diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp
index f660743a..43030e8b 100644
--- a/src/libcamera/camera_sensor_properties.cpp
+++ b/src/libcamera/camera_sensor_properties.cpp
@@ -81,6 +81,11 @@  const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
 				{ 1, controls::draft::TestPatternModeColorBars },
 			},
 		} },
+		{ "ov5647", {
+			.unitCellSize = { 1400, 1400 },
+			/* \todo fill test pattern modes for ov5647. */
+			.testPatternModes = {},
+		} },
 		{ "ov5693", {
 			.unitCellSize = { 1400, 1400 },
 			.testPatternModes = {