1 /* 2 * Copyright (C) Texas Instruments - http://www.ti.com/ 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 18 19 20 #ifndef TI_CAMERA_PARAMETERS_H 21 #define TI_CAMERA_PARAMETERS_H 22 23 #include <utils/KeyedVector.h> 24 #include <utils/String8.h> 25 26 namespace android { 27 28 ///TI Specific Camera Parameters 29 class TICameraParameters 30 { 31 public: 32 33 // Supported Camera indexes 34 // Example value: "0,1,2,3", where 0-primary, 1-secondary1, 2-secondary2, 3-sterocamera 35 static const char KEY_SUPPORTED_CAMERAS[]; 36 // Select logical Camera index 37 static const char KEY_CAMERA[]; 38 static const char KEY_CAMERA_NAME[]; 39 static const char KEY_S3D_SUPPORTED[]; 40 static const char KEY_BURST[]; 41 static const char KEY_CAP_MODE[]; 42 static const char KEY_VNF[]; 43 static const char KEY_SATURATION[]; 44 static const char KEY_BRIGHTNESS[]; 45 static const char KEY_EXPOSURE_MODE[]; 46 static const char KEY_SUPPORTED_EXPOSURE[]; 47 static const char KEY_CONTRAST[]; 48 static const char KEY_SHARPNESS[]; 49 static const char KEY_ISO[]; 50 static const char KEY_SUPPORTED_ISO_VALUES[]; 51 static const char KEY_SUPPORTED_IPP[]; 52 static const char KEY_IPP[]; 53 static const char KEY_MAN_EXPOSURE[]; 54 static const char KEY_METERING_MODE[]; 55 static const char KEY_PADDED_WIDTH[]; 56 static const char KEY_PADDED_HEIGHT[]; 57 static const char KEY_EXP_BRACKETING_RANGE[]; 58 static const char KEY_TEMP_BRACKETING[]; 59 static const char KEY_TEMP_BRACKETING_RANGE_POS[]; 60 static const char KEY_TEMP_BRACKETING_RANGE_NEG[]; 61 static const char KEY_SHUTTER_ENABLE[]; 62 static const char KEY_MEASUREMENT_ENABLE[]; 63 static const char KEY_INITIAL_VALUES[]; 64 static const char KEY_GBCE[]; 65 static const char KEY_GLBCE[]; 66 static const char KEY_MINFRAMERATE[]; 67 static const char KEY_MAXFRAMERATE[]; 68 69 // TI recording hint to notify camera adapters of possible recording 70 static const char KEY_RECORDING_HINT[]; 71 static const char KEY_AUTO_FOCUS_LOCK[]; 72 static const char KEY_CURRENT_ISO[]; 73 74 static const char KEY_SENSOR_ORIENTATION[]; 75 static const char KEY_SENSOR_ORIENTATION_VALUES[]; 76 77 //TI extensions for zoom 78 static const char ZOOM_SUPPORTED[]; 79 static const char ZOOM_UNSUPPORTED[]; 80 81 //TI extensions for camera capabilies 82 static const char INITIAL_VALUES_TRUE[]; 83 static const char INITIAL_VALUES_FALSE[]; 84 85 //TI extensions for enabling/disabling measurements 86 static const char MEASUREMENT_ENABLE[]; 87 static const char MEASUREMENT_DISABLE[]; 88 89 // TI extensions to add values for ManualConvergence and AutoConvergence mode 90 static const char KEY_AUTOCONVERGENCE[]; 91 static const char KEY_AUTOCONVERGENCE_MODE[]; 92 static const char KEY_MANUALCONVERGENCE_VALUES[]; 93 94 //TI extensions for enabling/disabling GLBCE 95 static const char GLBCE_ENABLE[]; 96 static const char GLBCE_DISABLE[]; 97 98 //TI extensions for enabling/disabling GBCE 99 static const char GBCE_ENABLE[]; 100 static const char GBCE_DISABLE[]; 101 102 // TI extensions to add Min frame rate Values 103 static const char VIDEO_MINFRAMERATE_5[]; 104 static const char VIDEO_MINFRAMERATE_10[]; 105 static const char VIDEO_MINFRAMERATE_15[]; 106 static const char VIDEO_MINFRAMERATE_20[]; 107 static const char VIDEO_MINFRAMERATE_24[]; 108 static const char VIDEO_MINFRAMERATE_25[]; 109 static const char VIDEO_MINFRAMERATE_30[]; 110 static const char VIDEO_MINFRAMERATE_33[]; 111 112 // TI extensions for Manual Gain and Manual Exposure 113 static const char KEY_MANUAL_EXPOSURE_LEFT[]; 114 static const char KEY_MANUAL_EXPOSURE_RIGHT[]; 115 static const char KEY_MANUAL_EXPOSURE_MODES[]; 116 static const char KEY_MANUAL_GAIN_EV_RIGHT[]; 117 static const char KEY_MANUAL_GAIN_EV_LEFT[]; 118 static const char KEY_MANUAL_GAIN_ISO_RIGHT[]; 119 static const char KEY_MANUAL_GAIN_ISO_LEFT[]; 120 static const char KEY_MANUAL_GAIN_MODES[]; 121 122 //TI extensions for setting EXIF tags 123 static const char KEY_EXIF_MODEL[]; 124 static const char KEY_EXIF_MAKE[]; 125 126 //TI extensions for additional GPS data 127 static const char KEY_GPS_MAPDATUM[]; 128 static const char KEY_GPS_VERSION[]; 129 static const char KEY_GPS_DATESTAMP[]; 130 131 //TI extensions for enabling/disabling shutter sound 132 static const char SHUTTER_ENABLE[]; 133 static const char SHUTTER_DISABLE[]; 134 135 //TI extensions for Temporal bracketing 136 static const char BRACKET_ENABLE[]; 137 static const char BRACKET_DISABLE[]; 138 139 //TI extensions to Image post-processing 140 static const char IPP_LDCNSF[]; 141 static const char IPP_LDC[]; 142 static const char IPP_NSF[]; 143 static const char IPP_NONE[]; 144 145 //TI extensions to camera mode 146 static const char HIGH_PERFORMANCE_MODE[]; 147 static const char HIGH_QUALITY_MODE[]; 148 static const char HIGH_QUALITY_ZSL_MODE[]; 149 static const char VIDEO_MODE[]; 150 151 152 // TI extensions to standard android pixel formats 153 static const char PIXEL_FORMAT_RAW[]; 154 static const char PIXEL_FORMAT_JPS[]; 155 static const char PIXEL_FORMAT_MPO[]; 156 static const char PIXEL_FORMAT_RAW_JPEG[]; 157 static const char PIXEL_FORMAT_RAW_MPO[]; 158 159 // TI extensions to standard android scene mode settings 160 static const char SCENE_MODE_SPORT[]; 161 static const char SCENE_MODE_CLOSEUP[]; 162 static const char SCENE_MODE_AQUA[]; 163 static const char SCENE_MODE_SNOWBEACH[]; 164 static const char SCENE_MODE_MOOD[]; 165 static const char SCENE_MODE_NIGHT_INDOOR[]; 166 static const char SCENE_MODE_DOCUMENT[]; 167 static const char SCENE_MODE_BARCODE[]; 168 static const char SCENE_MODE_VIDEO_SUPER_NIGHT[]; 169 static const char SCENE_MODE_VIDEO_CINE[]; 170 static const char SCENE_MODE_VIDEO_OLD_FILM[]; 171 172 // TI extensions to standard android white balance settings. 173 static const char WHITE_BALANCE_TUNGSTEN[]; 174 static const char WHITE_BALANCE_HORIZON[]; 175 static const char WHITE_BALANCE_SUNSET[]; 176 static const char WHITE_BALANCE_FACE[]; 177 178 // TI extensions to add exposure preset modes to android api 179 static const char EXPOSURE_MODE_OFF[]; 180 static const char EXPOSURE_MODE_AUTO[]; 181 static const char EXPOSURE_MODE_NIGHT[]; 182 static const char EXPOSURE_MODE_BACKLIGHT[]; 183 static const char EXPOSURE_MODE_SPOTLIGHT[]; 184 static const char EXPOSURE_MODE_SPORTS[]; 185 static const char EXPOSURE_MODE_SNOW[]; 186 static const char EXPOSURE_MODE_BEACH[]; 187 static const char EXPOSURE_MODE_APERTURE[]; 188 static const char EXPOSURE_MODE_SMALL_APERTURE[]; 189 static const char EXPOSURE_MODE_FACE[]; 190 191 // TI extensions to standard android focus presets. 192 static const char FOCUS_MODE_PORTRAIT[]; 193 static const char FOCUS_MODE_EXTENDED[]; 194 static const char FOCUS_MODE_FACE[]; 195 196 // TI extensions to add iso values 197 static const char ISO_MODE_AUTO[]; 198 static const char ISO_MODE_100[]; 199 static const char ISO_MODE_200[]; 200 static const char ISO_MODE_400[]; 201 static const char ISO_MODE_800[]; 202 static const char ISO_MODE_1000[]; 203 static const char ISO_MODE_1200[]; 204 static const char ISO_MODE_1600[]; 205 206 // TI extensions to add values for effect settings. 207 static const char EFFECT_NATURAL[]; 208 static const char EFFECT_VIVID[]; 209 static const char EFFECT_COLOR_SWAP[]; 210 static const char EFFECT_BLACKWHITE[]; 211 212 static const char KEY_S3D2D_PREVIEW[]; 213 static const char KEY_S3D2D_PREVIEW_MODE[]; 214 215 // TI extensions to add values for AutoConvergence settings. 216 static const char AUTOCONVERGENCE_MODE_DISABLE[]; 217 static const char AUTOCONVERGENCE_MODE_FRAME[]; 218 static const char AUTOCONVERGENCE_MODE_CENTER[]; 219 static const char AUTOCONVERGENCE_MODE_FFT[]; 220 static const char AUTOCONVERGENCE_MODE_MANUAL[]; 221 222 223 //TI extensions for flash mode settings 224 static const char FLASH_MODE_FILL_IN[]; 225 226 //TI extensions to add sensor orientation parameters 227 static const char ORIENTATION_SENSOR_NONE[]; 228 static const char ORIENTATION_SENSOR_90[]; 229 static const char ORIENTATION_SENSOR_180[]; 230 static const char ORIENTATION_SENSOR_270[]; 231 232 233 //TI values for camera direction 234 static const char FACING_FRONT[]; 235 static const char FACING_BACK[]; 236 237 }; 238 239 }; 240 241 #endif 242 243