about summary refs log tree commit diff
path: root/lri-proto/proto/lightheader.proto
diff options
context:
space:
mode:
Diffstat (limited to 'lri-proto/proto/lightheader.proto')
-rw-r--r--lri-proto/proto/lightheader.proto106
1 files changed, 106 insertions, 0 deletions
diff --git a/lri-proto/proto/lightheader.proto b/lri-proto/proto/lightheader.proto
new file mode 100644
index 0000000..6a729bb
--- /dev/null
+++ b/lri-proto/proto/lightheader.proto
@@ -0,0 +1,106 @@
+syntax = "proto2";
+
+package ltpb;
+
+import "camera_module.proto";
+import "camera_id.proto";
+import "time_stamp.proto";
+import "geometric_calibration.proto";
+import "color_calibration.proto";
+import "sensor_characterization.proto";
+import "vignetting_characterization.proto";
+import "hot_pixel_map.proto";
+import "device_temp.proto";
+import "dead_pixel_map.proto";
+import "tof_calibration.proto";
+import "flash_calibration.proto";
+import "sensor_type.proto";
+import "hw_info.proto";
+import "view_preferences.proto";
+import "proximity_sensors.proto";
+import "imu_data.proto";
+import "gps_data.proto";
+import "face_data.proto";
+
+message FactoryDeviceCalibration {
+    optional FlashCalibration flash = 1;
+    optional ToFCalibration tof = 2;
+    optional TimeStamp time_stamp = 3;
+}
+
+message FactoryModuleCalibration {
+    required CameraID camera_id = 1;
+    repeated ColorCalibration color = 2;
+    optional GeometricCalibration geometry = 3;
+    optional VignettingCharacterization vignetting = 4;
+    optional HotPixelMap hot_pixel_map = 5;
+    optional DeadPixelMap dead_pixel_map = 6;
+    optional TimeStamp time_stamp = 7;
+}
+
+message ColorCalibrationGold {
+    required CameraID camera_id = 1;
+    repeated ColorCalibration data = 2;
+    optional TimeStamp time_stamp = 3;
+}
+
+message SensorData {
+    required SensorType type = 1;
+    required SensorCharacterization data = 2;
+    optional TimeStamp time_stamp = 3;
+}
+
+message FlashData {
+    required Mode mode = 1;
+    enum Mode {
+        NOFLASH = 0;
+        FLASH = 1;
+        TORCH = 2;
+    }
+    
+    optional uint32 ledcool_current = 2;
+    optional uint32 ledwarm_current = 3;
+    optional uint32 flash_duration = 4;
+    optional int32 offset_duration = 5;
+}
+
+message AFDebugInfo {
+    optional bool focus_achieved = 1;
+    optional int32 image_focal_length = 2;
+}
+
+message Compatibility {
+    required uint32 version = 1;
+    repeated string features = 2;
+}
+
+message LightHeader {
+    optional uint64 image_unique_id_low = 1;
+    optional uint64 image_unique_id_high = 2;
+    optional TimeStamp image_time_stamp = 3;
+    optional int32 image_focal_length = 4;
+    optional CameraID image_reference_camera = 5;
+    optional uint64 device_unique_id_low = 6;
+    optional uint64 device_unique_id_high = 7;
+    optional string device_model_name = 8;
+    optional string device_fw_version = 9;
+    optional string device_asic_fw_version = 10;
+    optional DeviceTemp device_temperature = 11;
+    repeated CameraModule modules = 12;
+    repeated FactoryModuleCalibration module_calibration = 13;
+    optional FactoryDeviceCalibration device_calibration = 14;
+    repeated ColorCalibrationGold gold_cc = 15;
+    repeated SensorData sensor_data = 16;
+    optional float tof_range = 17;
+    optional HwInfo hw_info = 18;
+    optional ViewPreferences view_preferences = 19;
+    optional ProximitySensors proximity_sensors = 20;
+    optional FlashData flash_data = 22;
+    repeated IMUData imu_data = 23;
+    optional AFDebugInfo af_info = 24;
+    optional GPSData gps_data = 25;
+    optional Compatibility compatibility = 26;
+    repeated FaceData face_data = 27;
+    
+    reserved 21;
+}