about summary refs log tree commit diff
path: root/lri-rs/proto/camera_module.proto
blob: 95069413a31a6daf2f856997b033640d481a65bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
syntax = "proto2";

package ltpb;

import "camera_id.proto";
import "point2i.proto";
import "point2f.proto";

message CameraModule {
    optional AFInfo af_info = 1;
    message AFInfo {
        required AFMode mode = 1;
        enum AFMode {
            AUTO = 0;
        }
        
        optional Point2F roi_center = 2;
        optional float disparity_focus_distance = 3;
        optional float contrast_focus_distance = 4;
        optional bool lens_timeout = 5;
        optional bool mirror_timeout = 6;
        optional int32 mirror_position = 7;
    }
    
    required CameraID id = 2;
    optional bool is_enabled = 3 [default = true];
    optional int32 mirror_position = 4 [default = 0];
    required int32 lens_position = 5;
    required float sensor_analog_gain = 7;
    required uint64 sensor_exposure = 8;
    
    required Surface sensor_data_surface = 9;
    message Surface {
        required Point2I start = 1;
        required Point2I size = 2;
        
        required FormatType format = 3;
        enum FormatType {
            RAW_BAYER_JPEG = 0;
            RAW_RESERVED_0 = 1;
            RAW_RESERVED_1 = 2;
            RAW_RESERVED_2 = 3;
            RAW_RESERVED_3 = 4;
            RAW_RESERVED_4 = 5;
            RAW_RESERVED_5 = 6;
            RAW_PACKED_10BPP = 7;
            RAW_PACKED_12BPP = 8;
            RAW_PACKED_14BPP = 9;
        }
        
        required uint32 row_stride = 4;
        required uint64 data_offset = 5;
        optional Point2F data_scale = 6;
    }
    
    optional sint32 sensor_temparature = 10;
    optional bool sensor_is_horizontal_flip = 11 [default = false];
    optional bool sensor_is_vertical_flip = 12 [default = false];
    optional Point2I sensor_bayer_red_override = 13;
    optional float sensor_digital_gain = 14;
    optional uint32 frame_index = 15;
    optional bool sensor_dpc_on = 16 [default = true];
    optional sint32 sensor_exp_start_offset = 17;
    optional float sensor_scan_speed = 18;
    
    reserved 6;
}