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 repeated float android_lens_info_availableApertures = 655360; 102 repeated float android_lens_info_availableFilterDensities = 655361; 103 repeated float android_lens_info_availableFocalLengths = 655362; 104 repeated int32 android_lens_info_availableOpticalStabilization = 655363; 105 optional float android_lens_info_hyperfocalDistance = 655364; 106 optional float android_lens_info_minimumFocusDistance = 655365; 107 optional int32 android_lens_info_focusDistanceCalibration = 655366; 108 repeated int32 android_noiseReduction_availableNoiseReductionModes = 720896; 109 optional int32 android_request_maxNumOutputRaw = 851968; 110 optional int32 android_request_maxNumOutputProc = 851969; 111 optional int32 android_request_maxNumOutputProcStalling = 851970; 112 optional int32 android_request_maxNumInputStreams = 851971; 113 optional int32 android_request_pipelineMaxDepth = 851972; 114 optional int32 android_request_partialResultCount = 851973; 115 repeated int32 android_request_availableCapabilities = 851974; 116 optional float android_scaler_availableMaxDigitalZoom = 917504; 117 optional StreamConfigurations android_scaler_streamConfigurationMap = 917505; 118 optional int32 android_scaler_croppingType = 917506; 119 optional int32 android_sensor_referenceIlluminant1 = 983040; 120 optional int32 android_sensor_referenceIlluminant2 = 983041; 121 optional ColorSpaceTransform android_sensor_calibrationTransform1 = 983042; 122 optional ColorSpaceTransform android_sensor_calibrationTransform2 = 983043; 123 optional ColorSpaceTransform android_sensor_colorTransform1 = 983044; 124 optional ColorSpaceTransform android_sensor_colorTransform2 = 983045; 125 optional ColorSpaceTransform android_sensor_forwardMatrix1 = 983046; 126 optional ColorSpaceTransform android_sensor_forwardMatrix2 = 983047; 127 optional BlackLevelPattern android_sensor_blackLevelPattern = 983048; 128 optional int32 android_sensor_maxAnalogSensitivity = 983049; 129 optional int32 android_sensor_orientation = 983050; 130 repeated int32 android_sensor_availableTestPatternModes = 983051; 131 repeated Rect android_sensor_opticalBlackRegions = 983052; 132 optional Rect android_sensor_info_activeArraySize = 1048576; 133 optional RangeInt android_sensor_info_sensitivityRange = 1048577; 134 optional int32 android_sensor_info_colorFilterArrangement = 1048578; 135 optional RangeLong android_sensor_info_exposureTimeRange = 1048579; 136 optional int64 android_sensor_info_maxFrameDuration = 1048580; 137 optional SizeF android_sensor_info_physicalSize = 1048581; 138 optional Size android_sensor_info_pixelArraySize = 1048582; 139 optional int32 android_sensor_info_whiteLevel = 1048583; 140 optional int32 android_sensor_info_timestampSource = 1048584; 141 optional bool android_sensor_info_lensShadingApplied = 1048585; 142 optional Rect android_sensor_info_preCorrectionActiveArraySize = 1048586; 143 repeated int32 android_shading_availableModes = 1114112; 144 repeated int32 android_statistics_info_availableFaceDetectModes = 1245184; 145 optional int32 android_statistics_info_maxFaceCount = 1245185; 146 repeated bool android_statistics_info_availableHotPixelMapModes = 1245186; 147 repeated int32 android_statistics_info_availableLensShadingMapModes = 1245187; 148 optional int32 android_tonemap_maxCurvePoints = 1310720; 149 repeated int32 android_tonemap_availableToneMapModes = 1310721; 150 optional int32 android_info_supportedHardwareLevel = 1441792; 151 optional int32 android_sync_maxLatency = 1572864; 152 optional int32 android_reprocess_maxCaptureStall = 1638400; 153 optional bool android_depth_depthIsExclusive = 1703936; 154 // End of codegen fields 155 } 156 157 // Per camera (front/back) informations 158 repeated PerCameraInfo per_camera_info = 8; 159} // CameraDeviceInfo 160 161