[PATCH 1/1] libcamera: Add camera sensor properties for ciri

Harvey Yang chenghaoyang at chromium.org
Mon Sep 23 09:09:56 CEST 2024


From: Han-Lin Chen <hanlinchen at chromium.org>

ciri has sensors: hi1339, gc08a3, and gc05a2.

Signed-off-by: Han-Lin Chen <hanlinchen at chromium.org>
Co-developed-by: Xing Gu <xinggu at chromium.org>
Co-developed-by: Yudhistira Erlandinata <yerlandinata at chromium.org>
Co-developed-by: Harvey Yang <chenghaoyang at chromium.org>
---
 .../sensor/camera_sensor_properties.cpp       | 21 +++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/src/libcamera/sensor/camera_sensor_properties.cpp b/src/libcamera/sensor/camera_sensor_properties.cpp
index 4e5217ab..a224f8d2 100644
--- a/src/libcamera/sensor/camera_sensor_properties.cpp
+++ b/src/libcamera/sensor/camera_sensor_properties.cpp
@@ -276,6 +276,27 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
 				{ controls::draft::TestPatternModeColorBars, 1 },
 			},
 		} },
+		{ "hi1339", {
+			.unitCellSize = { 1120, 1120 },
+			.testPatternModes = {
+				{ controls::draft::TestPatternModeOff, 0 },
+				{ controls::draft::TestPatternModeColorBars, 2 },
+			},
+		} },
+		{ "gc08a3", {
+			.unitCellSize = { 1120, 1120 },
+			.testPatternModes = {
+				{ controls::draft::TestPatternModeOff, 0 },
+				{ controls::draft::TestPatternModeColorBars, 2 },
+			},
+		} },
+		{ "gc05a2", {
+			.unitCellSize = { 1120, 1120 },
+			.testPatternModes = {
+				{ controls::draft::TestPatternModeOff, 0 },
+				{ controls::draft::TestPatternModeColorBars, 1 },
+			},
+		} },
 	};
 
 	const auto it = sensorProps.find(sensor);
-- 
2.46.0.792.g87dc391469-goog



More information about the libcamera-devel mailing list