[libcamera-devel] [PATCH v2] libcamera: Add OV5647 sensor properties
Vedant Paranjape
vedantparanjape160201 at gmail.com
Mon Jun 21 16:00:35 CEST 2021
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 at 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
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 = {
--
2.25.1
More information about the libcamera-devel
mailing list