• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// LINT: LEGACY_NAMES
2syntax = "proto2";
3
4package wireless.android.partner.adl.proto;
5
6option java_package = "com.google.wireless.android.partner.adl.proto";
7option java_outer_classname = "CameraDeviceInfoProto";
8
9// Content of this file is generated from $(ANDROID_ROOT)/system/media/camera/doc
10// Keep internal protocol buffer definition in sync with this one
11// Camera related device information
12// Next Id: 9
13message CameraDeviceInfo {
14  // Supported profiles from CamcorderProfile.hasProfile
15  optional bool profile_480p = 1;
16  optional bool profile_720p = 2;
17  optional bool profile_1080p = 3;
18  optional bool profile_cif = 4;
19  optional bool profile_qcif = 5;
20  optional bool profile_qvga = 6;
21  optional int32 num_of_camera = 7;
22
23  message PerCameraInfo {
24    message Rational {
25        optional int32 numerator = 1;
26        optional int32 denominator = 2;
27    }
28
29    message Size {
30        optional int32 width = 1;
31        optional int32 height = 2;
32    }
33
34    message SizeF {
35        optional float width = 1;
36        optional float height = 2;
37    }
38
39    message Rect {
40        optional int32 left = 1;
41        optional int32 right = 2;
42        optional int32 top = 3;
43        optional int32 bottom = 4;
44    }
45
46    message StreamConfigurations {
47        message StreamConfig {
48            optional int32 format = 1;
49            optional int32 width = 2;
50            optional int32 height = 3;
51            optional bool input = 4;
52            optional int64 minFrameDuration = 5;
53        }
54        repeated StreamConfig availableStreamConfigurations = 1;
55    }
56
57    message RangeInt {
58        optional int32 lower = 1;
59        optional int32 upper = 2;
60    }
61
62    message RangeLong {
63        optional int64 lower = 1;
64        optional int64 upper = 2;
65    }
66
67    message ColorSpaceTransform {
68        repeated Rational elements = 1;
69    }
70
71    message BlackLevelPattern {
72        repeated int32 black_level_pattern = 1;
73    }
74
75    optional string cameraId = 1;
76
77    // Start of codegen fields
78    repeated int32 android_colorCorrection_availableAberrationModes = 65536;
79    repeated int32 android_control_aeAvailableAntibandingModes = 131072;
80    repeated int32 android_control_aeAvailableModes = 131073;
81    repeated RangeInt android_control_aeAvailableTargetFpsRanges = 131074;
82    optional RangeInt android_control_aeCompensationRange = 131075;
83    optional Rational android_control_aeCompensationStep = 131076;
84    repeated int32 android_control_afAvailableModes = 131077;
85    repeated int32 android_control_availableEffects = 131078;
86    repeated int32 android_control_availableSceneModes = 131079;
87    repeated int32 android_control_availableVideoStabilizationModes = 131080;
88    repeated int32 android_control_awbAvailableModes = 131081;
89    optional int32 android_control_maxRegionsAe = 131082;
90    optional int32 android_control_maxRegionsAwb = 131083;
91    optional int32 android_control_maxRegionsAf = 131084;
92    optional bool android_control_aeLockAvailable = 131085;
93    optional bool android_control_awbLockAvailable = 131086;
94    repeated int32 android_control_availableModes = 131087;
95    optional RangeInt android_control_postRawSensitivityBoostRange = 131088;
96    repeated int32 android_edge_availableEdgeModes = 262144;
97    optional bool android_flash_info_available = 393216;
98    repeated int32 android_hotPixel_availableHotPixelModes = 458752;
99    repeated Size android_jpeg_availableThumbnailSizes = 524288;
100    optional int32 android_lens_facing = 589824;
101    optional int32 android_lens_poseReference = 589825;
102    repeated float android_lens_info_availableApertures = 655360;
103    repeated float android_lens_info_availableFilterDensities = 655361;
104    repeated float android_lens_info_availableFocalLengths = 655362;
105    repeated int32 android_lens_info_availableOpticalStabilization = 655363;
106    optional float android_lens_info_hyperfocalDistance = 655364;
107    optional float android_lens_info_minimumFocusDistance = 655365;
108    optional int32 android_lens_info_focusDistanceCalibration = 655366;
109    repeated int32 android_noiseReduction_availableNoiseReductionModes = 720896;
110    optional int32 android_request_maxNumOutputRaw = 851968;
111    optional int32 android_request_maxNumOutputProc = 851969;
112    optional int32 android_request_maxNumOutputProcStalling = 851970;
113    optional int32 android_request_maxNumInputStreams = 851971;
114    optional int32 android_request_pipelineMaxDepth = 851972;
115    optional int32 android_request_partialResultCount = 851973;
116    repeated int32 android_request_availableCapabilities = 851974;
117    optional float android_scaler_availableMaxDigitalZoom = 917504;
118    optional StreamConfigurations android_scaler_streamConfigurationMap = 917505;
119    optional int32 android_scaler_croppingType = 917506;
120    repeated MandatoryStreamCombination android_scaler_mandatoryStreamCombinations = 917507;
121    optional int32 android_sensor_referenceIlluminant1 = 983040;
122    optional int32 android_sensor_referenceIlluminant2 = 983041;
123    optional ColorSpaceTransform android_sensor_calibrationTransform1 = 983042;
124    optional ColorSpaceTransform android_sensor_calibrationTransform2 = 983043;
125    optional ColorSpaceTransform android_sensor_colorTransform1 = 983044;
126    optional ColorSpaceTransform android_sensor_colorTransform2 = 983045;
127    optional ColorSpaceTransform android_sensor_forwardMatrix1 = 983046;
128    optional ColorSpaceTransform android_sensor_forwardMatrix2 = 983047;
129    optional BlackLevelPattern android_sensor_blackLevelPattern = 983048;
130    optional int32 android_sensor_maxAnalogSensitivity = 983049;
131    optional int32 android_sensor_orientation = 983050;
132    repeated int32 android_sensor_availableTestPatternModes = 983051;
133    repeated Rect android_sensor_opticalBlackRegions = 983052;
134    optional Rect android_sensor_info_activeArraySize = 1048576;
135    optional RangeInt android_sensor_info_sensitivityRange = 1048577;
136    optional int32 android_sensor_info_colorFilterArrangement = 1048578;
137    optional RangeLong android_sensor_info_exposureTimeRange = 1048579;
138    optional int64 android_sensor_info_maxFrameDuration = 1048580;
139    optional SizeF android_sensor_info_physicalSize = 1048581;
140    optional Size android_sensor_info_pixelArraySize = 1048582;
141    optional int32 android_sensor_info_whiteLevel = 1048583;
142    optional int32 android_sensor_info_timestampSource = 1048584;
143    optional bool android_sensor_info_lensShadingApplied = 1048585;
144    optional Rect android_sensor_info_preCorrectionActiveArraySize = 1048586;
145    repeated int32 android_shading_availableModes = 1114112;
146    repeated int32 android_statistics_info_availableFaceDetectModes = 1245184;
147    optional int32 android_statistics_info_maxFaceCount = 1245185;
148    repeated bool android_statistics_info_availableHotPixelMapModes = 1245186;
149    repeated int32 android_statistics_info_availableLensShadingMapModes = 1245187;
150    repeated int32 android_statistics_info_availableOisDataModes = 1245188;
151    optional int32 android_tonemap_maxCurvePoints = 1310720;
152    repeated int32 android_tonemap_availableToneMapModes = 1310721;
153    optional int32 android_info_supportedHardwareLevel = 1441792;
154    optional string android_info_version = 1441793;
155    optional int32 android_sync_maxLatency = 1572864;
156    optional int32 android_reprocess_maxCaptureStall = 1638400;
157    optional bool android_depth_depthIsExclusive = 1703936;
158    optional int32 android_logicalMultiCamera_sensorSyncType = 1769472;
159    repeated int32 android_distortionCorrection_availableModes = 1835008;
160    // End of codegen fields
161  }
162
163  // Per camera (front/back) informations
164  repeated PerCameraInfo per_camera_info = 8;
165} // CameraDeviceInfo
166
167