1 /* 2 ** Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. 3 ** Not a Contribution. Apache license notifications and license are 4 ** retained for attribution purposes only. 5 ** 6 ** Copyright 2008, The Android Open Source Project 7 ** Licensed under the Apache License, Version 2.0 (the "License"); 8 ** you may not use this file except in compliance with the License. 9 ** You may obtain a copy of the License at 10 ** 11 ** http://www.apache.org/licenses/LICENSE-2.0 12 ** 13 ** Unless required by applicable law or agreed to in writing, software 14 ** distributed under the License is distributed on an "AS IS" BASIS, 15 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 ** See the License for the specific language governing permissions and 17 ** limitations under the License. 18 */ 19 20 #ifndef ANDROID_HARDWARE_QCAMERA_PARAMETERS_H 21 #define ANDROID_HARDWARE_QCAMERA_PARAMETERS_H 22 23 // To remove 24 #include <cutils/properties.h> 25 26 // System dependencies 27 #include <CameraParameters.h> 28 #include <utils/Errors.h> 29 30 // Camera dependencies 31 #include "camera.h" 32 #include "QCameraMem.h" 33 #include "QCameraParametersIntf.h" 34 #include "QCameraThermalAdapter.h" 35 #include "QCameraCommon.h" 36 37 extern "C" { 38 #include "mm_jpeg_interface.h" 39 } 40 41 using ::android::hardware::camera::common::V1_0::helper::CameraParameters; 42 using ::android::hardware::camera::common::V1_0::helper::Size; 43 using namespace android; 44 45 namespace qcamera { 46 47 //EXIF globals 48 static const char ExifAsciiPrefix[] = { 0x41, 0x53, 0x43, 0x49, 0x49, 0x0, 0x0, 0x0 }; // "ASCII\0\0\0" 49 static const char ExifUndefinedPrefix[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // "\0\0\0\0\0\0\0\0" 50 51 #define FOCAL_LENGTH_DECIMAL_PRECISION 100 52 53 #define CAMERA_MIN_BATCH_COUNT 4 54 55 #define QCAMERA_MAX_EXP_TIME_LEVEL1 100 56 #define QCAMERA_MAX_EXP_TIME_LEVEL2 500 57 #define QCAMERA_MAX_EXP_TIME_LEVEL3 1000 58 #define QCAMERA_MAX_EXP_TIME_LEVEL4 10000 59 60 class QCameraParameters: private CameraParameters 61 { 62 63 private: 64 65 class QCameraReprocScaleParam{ 66 public: 67 68 QCameraReprocScaleParam(); 69 ~QCameraReprocScaleParam(); 70 71 void setScaleEnable(bool enabled); 72 int32_t setScaleSizeTbl(size_t scale_cnt, 73 cam_dimension_t *scale_tbl, size_t org_cnt, 74 cam_dimension_t *org_tbl); 75 int32_t setValidatePicSize(int &width, int &height); 76 77 bool isScaleEnabled(); 78 bool isUnderScaling(); 79 80 size_t getScaleSizeTblCnt(); 81 cam_dimension_t *getScaledSizeTbl(); 82 size_t getTotalSizeTblCnt(); 83 cam_dimension_t *getTotalSizeTbl(); 84 int32_t getPicSizeFromAPK(int &width, int &height); 85 int32_t getPicSizeSetted(int &width, int &height); 86 87 private: 88 bool isScalePicSize(int width, int height); 89 bool isValidatePicSize(int width, int height); 90 int32_t setSensorSupportedPicSize(); 91 size_t checkScaleSizeTable(size_t scale_cnt, cam_dimension_t *scale_tbl, 92 size_t org_cnt, cam_dimension_t *org_tbl); 93 94 bool mScaleEnabled; 95 bool mIsUnderScaling; //if in scale status 96 97 // picture size cnt that need scale operation 98 size_t mNeedScaleCnt; 99 cam_dimension_t mNeedScaledSizeTbl[MAX_SCALE_SIZES_CNT]; 100 101 // sensor supported size cnt and table 102 size_t mSensorSizeTblCnt; 103 cam_dimension_t *mSensorSizeTbl; 104 105 // Total size cnt (sensor supported + need scale cnt) 106 size_t mTotalSizeTblCnt; 107 cam_dimension_t mTotalSizeTbl[MAX_SIZES_CNT]; 108 109 cam_dimension_t mPicSizeFromAPK; // dimension that APK is expected 110 cam_dimension_t mPicSizeSetted; // dimension that config vfe 111 }; 112 113 // Supported PREVIEW/RECORDING SIZES IN HIGH FRAME RATE recording, sizes in pixels. 114 // Example value: "800x480,432x320". Read only. 115 static const char KEY_QC_SUPPORTED_HFR_SIZES[]; 116 // The mode of preview frame rate. 117 // Example value: "frame-rate-auto, frame-rate-fixed". 118 static const char KEY_QC_PREVIEW_FRAME_RATE_MODE[]; 119 static const char KEY_QC_SUPPORTED_PREVIEW_FRAME_RATE_MODES[]; 120 static const char KEY_QC_PREVIEW_FRAME_RATE_AUTO_MODE[]; 121 static const char KEY_QC_PREVIEW_FRAME_RATE_FIXED_MODE[]; 122 static const char KEY_QC_SUPPORTED_SKIN_TONE_ENHANCEMENT_MODES[] ; 123 124 // Supported live snapshot sizes 125 static const char KEY_QC_SUPPORTED_LIVESNAPSHOT_SIZES[]; 126 127 // Supported Raw formats 128 static const char KEY_QC_SUPPORTED_RAW_FORMATS[]; 129 static const char KEY_QC_RAW_FORMAT[]; 130 131 //Touch Af/AEC settings. 132 static const char KEY_QC_TOUCH_AF_AEC[]; 133 static const char KEY_QC_SUPPORTED_TOUCH_AF_AEC[]; 134 //Touch Index for AEC. 135 static const char KEY_QC_TOUCH_INDEX_AEC[]; 136 //Touch Index for AF. 137 static const char KEY_QC_TOUCH_INDEX_AF[]; 138 // Current auto scene detection mode. 139 // Example value: "off" or "on" constants. Read/write. 140 static const char KEY_QC_SCENE_DETECT[]; 141 // Supported auto scene detection settings. 142 // Example value: "off,on". Read only. 143 static const char KEY_QC_SUPPORTED_SCENE_DETECT[]; 144 static const char KEY_QC_SELECTABLE_ZONE_AF[]; 145 146 static const char KEY_QC_ISO_MODE[]; 147 static const char KEY_QC_CONTINUOUS_ISO[]; 148 static const char KEY_QC_MIN_ISO[]; 149 static const char KEY_QC_MAX_ISO[]; 150 static const char KEY_QC_SUPPORTED_ISO_MODES[]; 151 static const char KEY_QC_EXPOSURE_TIME[]; 152 static const char KEY_QC_MIN_EXPOSURE_TIME[]; 153 static const char KEY_QC_MAX_EXPOSURE_TIME[]; 154 static const char KEY_QC_LENSSHADE[] ; 155 static const char KEY_QC_SUPPORTED_LENSSHADE_MODES[] ; 156 static const char KEY_QC_AUTO_EXPOSURE[]; 157 static const char KEY_QC_SUPPORTED_AUTO_EXPOSURE[]; 158 159 static const char KEY_QC_GPS_LATITUDE_REF[]; 160 static const char KEY_QC_GPS_LONGITUDE_REF[]; 161 static const char KEY_QC_GPS_ALTITUDE_REF[]; 162 static const char KEY_QC_GPS_STATUS[]; 163 static const char KEY_QC_MEMORY_COLOR_ENHANCEMENT[]; 164 static const char KEY_QC_SUPPORTED_MEM_COLOR_ENHANCE_MODES[]; 165 static const char KEY_QC_DIS[]; 166 static const char KEY_QC_OIS[]; 167 static const char KEY_QC_SUPPORTED_DIS_MODES[]; 168 static const char KEY_QC_SUPPORTED_OIS_MODES[]; 169 170 static const char KEY_QC_ZSL[]; 171 static const char KEY_QC_SUPPORTED_ZSL_MODES[]; 172 static const char KEY_QC_ZSL_BURST_INTERVAL[]; 173 static const char KEY_QC_ZSL_BURST_LOOKBACK[]; 174 static const char KEY_QC_ZSL_QUEUE_DEPTH[]; 175 176 static const char KEY_QC_CAMERA_MODE[]; 177 static const char KEY_QC_ORIENTATION[]; 178 179 static const char KEY_QC_VIDEO_HIGH_FRAME_RATE[]; 180 static const char KEY_QC_VIDEO_HIGH_SPEED_RECORDING[]; 181 static const char KEY_QC_SUPPORTED_VIDEO_HIGH_FRAME_RATE_MODES[]; 182 static const char KEY_QC_HIGH_DYNAMIC_RANGE_IMAGING[]; 183 static const char KEY_QC_SUPPORTED_HDR_IMAGING_MODES[]; 184 static const char KEY_QC_AE_BRACKET_HDR[]; 185 static const char KEY_QC_SUPPORTED_AE_BRACKET_MODES[]; 186 static const char KEY_QC_CAPTURE_BURST_EXPOSURE[]; 187 static const char KEY_QC_NUM_SNAPSHOT_PER_SHUTTER[]; 188 static const char KEY_QC_NUM_RETRO_BURST_PER_SHUTTER[]; 189 static const char KEY_QC_SNAPSHOT_BURST_LED_ON_PERIOD[]; 190 static const char KEY_QC_SNAPSHOT_BURST_NUM[]; 191 static const char KEY_QC_NO_DISPLAY_MODE[]; 192 static const char KEY_QC_RAW_PICUTRE_SIZE[]; 193 static const char KEY_QC_TINTLESS_ENABLE[]; 194 static const char KEY_QC_SCENE_SELECTION[]; 195 static const char KEY_QC_CDS_MODE[]; 196 static const char KEY_QC_VIDEO_CDS_MODE[]; 197 static const char KEY_QC_SUPPORTED_CDS_MODES[]; 198 static const char KEY_QC_SUPPORTED_VIDEO_CDS_MODES[]; 199 static const char KEY_QC_TNR_MODE[]; 200 static const char KEY_QC_VIDEO_TNR_MODE[]; 201 static const char KEY_QC_SUPPORTED_TNR_MODES[]; 202 static const char KEY_QC_SUPPORTED_VIDEO_TNR_MODES[]; 203 204 static const char KEY_INTERNAL_PERVIEW_RESTART[]; 205 static const char KEY_QC_WB_MANUAL_CCT[]; 206 static const char KEY_QC_MIN_WB_CCT[]; 207 static const char KEY_QC_MAX_WB_CCT[]; 208 static const char KEY_QC_MANUAL_WB_GAINS[]; 209 static const char KEY_QC_MIN_WB_GAIN[]; 210 static const char KEY_QC_MAX_WB_GAIN[]; 211 static const char WHITE_BALANCE_MANUAL[]; 212 static const char FOCUS_MODE_MANUAL_POSITION[]; 213 static const char KEY_QC_LONG_SHOT[]; 214 static const char KEY_QC_INITIAL_EXPOSURE_INDEX[]; 215 static const char KEY_QC_INSTANT_AEC[]; 216 static const char KEY_QC_INSTANT_CAPTURE[]; 217 static const char KEY_QC_INSTANT_AEC_SUPPORTED_MODES[]; 218 static const char KEY_QC_INSTANT_CAPTURE_SUPPORTED_MODES[]; 219 220 static const char KEY_QC_MANUAL_FOCUS_POSITION[]; 221 static const char KEY_QC_MANUAL_FOCUS_POS_TYPE[]; 222 static const char KEY_QC_MIN_FOCUS_POS_INDEX[]; 223 static const char KEY_QC_MAX_FOCUS_POS_INDEX[]; 224 static const char KEY_QC_MIN_FOCUS_POS_DAC[]; 225 static const char KEY_QC_MAX_FOCUS_POS_DAC[]; 226 static const char KEY_QC_MIN_FOCUS_POS_RATIO[]; 227 static const char KEY_QC_MAX_FOCUS_POS_RATIO[]; 228 static const char KEY_QC_MIN_FOCUS_POS_DIOPTER[]; 229 static const char KEY_QC_MAX_FOCUS_POS_DIOPTER[]; 230 static const char KEY_QC_FOCUS_POSITION_SCALE[]; 231 static const char KEY_QC_FOCUS_POSITION_DIOPTER[]; 232 233 static const char KEY_QC_SUPPORTED_MANUAL_FOCUS_MODES[]; 234 static const char KEY_QC_SUPPORTED_MANUAL_EXPOSURE_MODES[]; 235 static const char KEY_QC_SUPPORTED_MANUAL_WB_MODES[]; 236 static const char KEY_QC_FOCUS_SCALE_MODE[]; 237 static const char KEY_QC_FOCUS_DIOPTER_MODE[]; 238 static const char KEY_QC_ISO_PRIORITY[]; 239 static const char KEY_QC_EXP_TIME_PRIORITY[]; 240 static const char KEY_QC_USER_SETTING[]; 241 static const char KEY_QC_WB_CCT_MODE[]; 242 static const char KEY_QC_WB_GAIN_MODE[]; 243 static const char KEY_QC_MANUAL_WB_TYPE[]; 244 static const char KEY_QC_MANUAL_WB_VALUE[]; 245 static const char KEY_QC_CURRENT_EXPOSURE_TIME[]; 246 static const char KEY_QC_CURRENT_ISO[]; 247 static const char KEY_QC_CACHE_VIDEO_BUFFERS[]; 248 249 // DENOISE 250 static const char KEY_QC_DENOISE[]; 251 static const char KEY_QC_SUPPORTED_DENOISE[]; 252 253 //Selectable zone AF. 254 static const char KEY_QC_FOCUS_ALGO[]; 255 static const char KEY_QC_SUPPORTED_FOCUS_ALGOS[]; 256 257 //Face Detection 258 static const char KEY_QC_FACE_DETECTION[]; 259 static const char KEY_QC_SUPPORTED_FACE_DETECTION[]; 260 261 //Face Recognition 262 static const char KEY_QC_FACE_RECOGNITION[]; 263 static const char KEY_QC_SUPPORTED_FACE_RECOGNITION[]; 264 265 //Indicates number of faces requested by the application. 266 //This value will be rejected if the requested faces 267 //greater than supported by hardware. 268 //Write only. 269 static const char KEY_QC_MAX_NUM_REQUESTED_FACES[]; 270 271 //preview flip 272 static const char KEY_QC_PREVIEW_FLIP[]; 273 //video flip 274 static const char KEY_QC_VIDEO_FLIP[]; 275 //snapshot picture flip 276 static const char KEY_QC_SNAPSHOT_PICTURE_FLIP[]; 277 278 static const char KEY_QC_SUPPORTED_FLIP_MODES[]; 279 280 //Face Detection, Facial processing requirement 281 static const char KEY_QC_SNAPSHOT_FD_DATA[]; 282 283 //Auto HDR enable 284 static const char KEY_QC_AUTO_HDR_ENABLE[]; 285 // video rotation 286 static const char KEY_QC_VIDEO_ROTATION[]; 287 static const char KEY_QC_SUPPORTED_VIDEO_ROTATION_VALUES[]; 288 289 //Redeye Reduction 290 static const char KEY_QC_REDEYE_REDUCTION[]; 291 static const char KEY_QC_SUPPORTED_REDEYE_REDUCTION[]; 292 static const char EFFECT_EMBOSS[]; 293 static const char EFFECT_SKETCH[]; 294 static const char EFFECT_NEON[]; 295 static const char EFFECT_BEAUTY[]; 296 297 //AF Bracketing 298 static const char KEY_QC_AF_BRACKET[]; 299 static const char KEY_QC_SUPPORTED_AF_BRACKET_MODES[]; 300 301 //Refocus 302 static const char KEY_QC_RE_FOCUS[]; 303 static const char KEY_QC_SUPPORTED_RE_FOCUS_MODES[]; 304 305 //Chroma Flash 306 static const char KEY_QC_CHROMA_FLASH[]; 307 static const char KEY_QC_SUPPORTED_CHROMA_FLASH_MODES[]; 308 309 //Opti Zoom 310 static const char KEY_QC_OPTI_ZOOM[]; 311 static const char KEY_QC_SUPPORTED_OPTI_ZOOM_MODES[]; 312 313 // Auto HDR supported 314 static const char KEY_QC_AUTO_HDR_SUPPORTED[]; 315 316 // HDR modes 317 static const char KEY_QC_HDR_MODE[]; 318 static const char KEY_QC_SUPPORTED_KEY_QC_HDR_MODES[]; 319 320 //True Portrait 321 static const char KEY_QC_TRUE_PORTRAIT[]; 322 static const char KEY_QC_SUPPORTED_TRUE_PORTRAIT_MODES[]; 323 324 //See more 325 static const char KEY_QC_SEE_MORE[]; 326 static const char KEY_QC_SUPPORTED_SEE_MORE_MODES[]; 327 328 //Still more 329 static const char KEY_QC_STILL_MORE[]; 330 static const char KEY_QC_SUPPORTED_STILL_MORE_MODES[]; 331 332 //Noise reduction mode 333 static const char KEY_QC_NOISE_REDUCTION_MODE[]; 334 static const char KEY_QC_NOISE_REDUCTION_MODE_VALUES[]; 335 336 //Longshot 337 static const char KEY_QC_LONGSHOT_SUPPORTED[]; 338 339 //ZSL+HDR 340 static const char KEY_QC_ZSL_HDR_SUPPORTED[]; 341 342 // Values for Touch AF/AEC 343 static const char TOUCH_AF_AEC_OFF[]; 344 static const char TOUCH_AF_AEC_ON[]; 345 346 // Values for Scene mode 347 static const char SCENE_MODE_ASD[]; 348 static const char SCENE_MODE_BACKLIGHT[]; 349 static const char SCENE_MODE_FLOWERS[]; 350 static const char SCENE_MODE_AR[]; 351 static const char SCENE_MODE_HDR[]; 352 static const char PIXEL_FORMAT_YUV420SP_ADRENO[]; // ADRENO 353 static const char PIXEL_FORMAT_YV12[]; // NV12 354 static const char PIXEL_FORMAT_NV12[]; //NV12 355 static const char QC_PIXEL_FORMAT_NV12_VENUS[]; //NV12 VENUS 356 357 // Values for raw picture format 358 static const char QC_PIXEL_FORMAT_YUV_RAW_8BIT_YUYV[]; 359 static const char QC_PIXEL_FORMAT_YUV_RAW_8BIT_YVYU[]; 360 static const char QC_PIXEL_FORMAT_YUV_RAW_8BIT_UYVY[]; 361 static const char QC_PIXEL_FORMAT_YUV_RAW_8BIT_VYUY[]; 362 static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_8GBRG[]; 363 static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_8GRBG[]; 364 static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_8RGGB[]; 365 static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_8BGGR[]; 366 static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_10GBRG[]; 367 static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_10GRBG[]; 368 static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_10RGGB[]; 369 static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_10BGGR[]; 370 static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_12GBRG[]; 371 static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_12GRBG[]; 372 static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_12RGGB[]; 373 static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_12BGGR[]; 374 static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_14GBRG[]; 375 static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_14GRBG[]; 376 static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_14RGGB[]; 377 static const char QC_PIXEL_FORMAT_BAYER_QCOM_RAW_14BGGR[]; 378 static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_8GBRG[]; 379 static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_8GRBG[]; 380 static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_8RGGB[]; 381 static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_8BGGR[]; 382 static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_10GBRG[]; 383 static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_10GRBG[]; 384 static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_10RGGB[]; 385 static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_10BGGR[]; 386 static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_12GBRG[]; 387 static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_12GRBG[]; 388 static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_12RGGB[]; 389 static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_12BGGR[]; 390 static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_14GBRG[]; 391 static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_14GRBG[]; 392 static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_14RGGB[]; 393 static const char QC_PIXEL_FORMAT_BAYER_MIPI_RAW_14BGGR[]; 394 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_8GBRG[]; 395 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_8GRBG[]; 396 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_8RGGB[]; 397 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_8BGGR[]; 398 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_10GBRG[]; 399 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_10GRBG[]; 400 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_10RGGB[]; 401 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_10BGGR[]; 402 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_12GBRG[]; 403 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_12GRBG[]; 404 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_12RGGB[]; 405 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_12BGGR[]; 406 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_14GBRG[]; 407 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_14GRBG[]; 408 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_14RGGB[]; 409 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_QCOM_14BGGR[]; 410 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_8GBRG[]; 411 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_8GRBG[]; 412 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_8RGGB[]; 413 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_8BGGR[]; 414 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_10GBRG[]; 415 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_10GRBG[]; 416 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_10RGGB[]; 417 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_10BGGR[]; 418 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_12GBRG[]; 419 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_12GRBG[]; 420 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_12RGGB[]; 421 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_12BGGR[]; 422 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_14GBRG[]; 423 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_14GRBG[]; 424 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_14RGGB[]; 425 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_MIPI_14BGGR[]; 426 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN8_8GBRG[]; 427 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN8_8GRBG[]; 428 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN8_8RGGB[]; 429 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN8_8BGGR[]; 430 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_8GBRG[]; 431 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_8GRBG[]; 432 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_8RGGB[]; 433 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_8BGGR[]; 434 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_10GBRG[]; 435 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_10GRBG[]; 436 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_10RGGB[]; 437 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_10BGGR[]; 438 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_12GBRG[]; 439 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_12GRBG[]; 440 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_12RGGB[]; 441 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_12BGGR[]; 442 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_14GBRG[]; 443 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_14GRBG[]; 444 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_14RGGB[]; 445 static const char QC_PIXEL_FORMAT_BAYER_IDEAL_PLAIN16_14BGGR[]; 446 447 // ISO values 448 static const char ISO_AUTO[]; 449 static const char ISO_HJR[]; 450 static const char ISO_100[]; 451 static const char ISO_200[]; 452 static const char ISO_400[]; 453 static const char ISO_800[]; 454 static const char ISO_1600[]; 455 static const char ISO_3200[]; 456 static const char ISO_MANUAL[]; 457 458 // Values for auto exposure settings. 459 static const char AUTO_EXPOSURE_FRAME_AVG[]; 460 static const char AUTO_EXPOSURE_CENTER_WEIGHTED[]; 461 static const char AUTO_EXPOSURE_SPOT_METERING[]; 462 static const char AUTO_EXPOSURE_SMART_METERING[]; 463 static const char AUTO_EXPOSURE_USER_METERING[]; 464 static const char AUTO_EXPOSURE_SPOT_METERING_ADV[]; 465 static const char AUTO_EXPOSURE_CENTER_WEIGHTED_ADV[]; 466 467 // Values for instant AEC modes 468 static const char KEY_QC_INSTANT_AEC_DISABLE[]; 469 static const char KEY_QC_INSTANT_AEC_AGGRESSIVE_AEC[]; 470 static const char KEY_QC_INSTANT_AEC_FAST_AEC[]; 471 472 // Values for instant capture modes 473 static const char KEY_QC_INSTANT_CAPTURE_DISABLE[]; 474 static const char KEY_QC_INSTANT_CAPTURE_AGGRESSIVE_AEC[]; 475 static const char KEY_QC_INSTANT_CAPTURE_FAST_AEC[]; 476 477 static const char KEY_QC_SHARPNESS[]; 478 static const char KEY_QC_MIN_SHARPNESS[]; 479 static const char KEY_QC_MAX_SHARPNESS[]; 480 static const char KEY_QC_SHARPNESS_STEP[]; 481 static const char KEY_QC_CONTRAST[]; 482 static const char KEY_QC_MIN_CONTRAST[]; 483 static const char KEY_QC_MAX_CONTRAST[]; 484 static const char KEY_QC_CONTRAST_STEP[]; 485 static const char KEY_QC_SATURATION[]; 486 static const char KEY_QC_MIN_SATURATION[]; 487 static const char KEY_QC_MAX_SATURATION[]; 488 static const char KEY_QC_SATURATION_STEP[]; 489 static const char KEY_QC_BRIGHTNESS[]; 490 static const char KEY_QC_MIN_BRIGHTNESS[]; 491 static const char KEY_QC_MAX_BRIGHTNESS[]; 492 static const char KEY_QC_BRIGHTNESS_STEP[]; 493 static const char KEY_QC_SCE_FACTOR[]; 494 static const char KEY_QC_MIN_SCE_FACTOR[]; 495 static const char KEY_QC_MAX_SCE_FACTOR[]; 496 static const char KEY_QC_SCE_FACTOR_STEP[]; 497 498 static const char KEY_QC_HISTOGRAM[] ; 499 static const char KEY_QC_SUPPORTED_HISTOGRAM_MODES[] ; 500 static const char KEY_QC_SUPPORTED_HDR_NEED_1X[]; 501 static const char KEY_QC_HDR_NEED_1X[]; 502 static const char KEY_QC_VIDEO_HDR[]; 503 static const char KEY_QC_VT_ENABLE[]; 504 static const char KEY_QC_SUPPORTED_VIDEO_HDR_MODES[]; 505 static const char KEY_QC_SENSOR_HDR[]; 506 static const char KEY_QC_SUPPORTED_SENSOR_HDR_MODES[]; 507 static const char KEY_QC_RDI_MODE[]; 508 static const char KEY_QC_SUPPORTED_RDI_MODES[]; 509 static const char KEY_QC_SECURE_MODE[]; 510 static const char KEY_QC_SUPPORTED_SECURE_MODES[]; 511 512 // Values for SKIN TONE ENHANCEMENT 513 static const char SKIN_TONE_ENHANCEMENT_ENABLE[] ; 514 static const char SKIN_TONE_ENHANCEMENT_DISABLE[] ; 515 516 // Values for Denoise 517 static const char DENOISE_OFF[] ; 518 static const char DENOISE_ON[] ; 519 520 // Values for auto exposure settings. 521 static const char FOCUS_ALGO_AUTO[]; 522 static const char FOCUS_ALGO_SPOT_METERING[]; 523 static const char FOCUS_ALGO_CENTER_WEIGHTED[]; 524 static const char FOCUS_ALGO_FRAME_AVERAGE[]; 525 526 // Values for AE Bracketing settings. 527 static const char AE_BRACKET_OFF[]; 528 static const char AE_BRACKET[]; 529 530 // Values for AF Bracketing settings. 531 static const char AF_BRACKET_OFF[]; 532 static const char AF_BRACKET_ON[]; 533 534 // Values for Refocus settings. 535 static const char RE_FOCUS_OFF[]; 536 static const char RE_FOCUS_ON[]; 537 538 // Values for Chroma Flash settings. 539 static const char CHROMA_FLASH_OFF[]; 540 static const char CHROMA_FLASH_ON[]; 541 542 // Values for Opti Zoom settings. 543 static const char OPTI_ZOOM_OFF[]; 544 static const char OPTI_ZOOM_ON[]; 545 546 // Values for Still More settings. 547 static const char STILL_MORE_OFF[]; 548 static const char STILL_MORE_ON[]; 549 550 // Values for HDR mode settings. 551 static const char HDR_MODE_SENSOR[]; 552 static const char HDR_MODE_MULTI_FRAME[]; 553 554 // Values for True Portrait settings. 555 static const char TRUE_PORTRAIT_OFF[]; 556 static const char TRUE_PORTRAIT_ON[]; 557 558 // Values for HFR settings. 559 static const char VIDEO_HFR_OFF[]; 560 static const char VIDEO_HFR_2X[]; 561 static const char VIDEO_HFR_3X[]; 562 static const char VIDEO_HFR_4X[]; 563 static const char VIDEO_HFR_5X[]; 564 static const char VIDEO_HFR_6X[]; 565 static const char VIDEO_HFR_7X[]; 566 static const char VIDEO_HFR_8X[]; 567 static const char VIDEO_HFR_9X[]; 568 569 // Values for feature on/off settings. 570 static const char VALUE_OFF[]; 571 static const char VALUE_ON[]; 572 573 // Values for feature enable/disable settings. 574 static const char VALUE_ENABLE[]; 575 static const char VALUE_DISABLE[]; 576 577 // Values for feature true/false settings. 578 static const char VALUE_FALSE[]; 579 static const char VALUE_TRUE[]; 580 581 //Values for flip settings 582 static const char FLIP_MODE_OFF[]; 583 static const char FLIP_MODE_V[]; 584 static const char FLIP_MODE_H[]; 585 static const char FLIP_MODE_VH[]; 586 587 //Values for CDS Mode 588 static const char CDS_MODE_OFF[]; 589 static const char CDS_MODE_ON[]; 590 static const char CDS_MODE_AUTO[]; 591 592 static const char VALUE_FAST[]; 593 static const char VALUE_HIGH_QUALITY[]; 594 595 static const char KEY_SELECTED_AUTO_SCENE[]; 596 597 // Values for Video rotation 598 static const char VIDEO_ROTATION_0[]; 599 static const char VIDEO_ROTATION_90[]; 600 static const char VIDEO_ROTATION_180[]; 601 static const char VIDEO_ROTATION_270[]; 602 603 #ifdef TARGET_TS_MAKEUP 604 static const char KEY_TS_MAKEUP[]; 605 static const char KEY_TS_MAKEUP_WHITEN[]; 606 static const char KEY_TS_MAKEUP_CLEAN[]; 607 #endif 608 //param key for HFR batch size 609 static const char KEY_QC_VIDEO_BATCH_SIZE[]; 610 enum { 611 CAMERA_ORIENTATION_UNKNOWN = 0, 612 CAMERA_ORIENTATION_PORTRAIT = 1, 613 CAMERA_ORIENTATION_LANDSCAPE = 2, 614 }; 615 616 template <typename valueType> struct QCameraMap { 617 const char *const desc; 618 valueType val; 619 }; 620 621 public: 622 QCameraParameters(); 623 QCameraParameters(const String8 ¶ms); 624 ~QCameraParameters(); 625 626 int32_t allocate(); 627 int32_t init(cam_capability_t *, 628 mm_camera_vtbl_t *, 629 QCameraAdjustFPS *); 630 void deinit(); 631 int32_t initDefaultParameters(); 632 int32_t updateParameters(const String8& params, bool &needRestart); 633 int32_t commitParameters(); 634 635 char* getParameters(); getPreviewFpsRange(int * min_fps,int * max_fps)636 void getPreviewFpsRange(int *min_fps, int *max_fps) const { 637 CameraParameters::getPreviewFpsRange(min_fps, max_fps); 638 } 639 #ifdef TARGET_TS_MAKEUP 640 bool getTsMakeupInfo(int &whiteLevel, int &cleanLevel) const; 641 #endif 642 643 int getPreviewHalPixelFormat(); 644 int32_t getStreamRotation(cam_stream_type_t streamType, 645 cam_pp_feature_config_t &featureConfig, 646 cam_dimension_t &dim); 647 int32_t getStreamFormat(cam_stream_type_t streamType, 648 cam_format_t &format); 649 int32_t getStreamDimension(cam_stream_type_t streamType, 650 cam_dimension_t &dim); 651 void getThumbnailSize(int *width, int *height) const; 652 653 654 uint8_t getZSLBurstInterval(); 655 uint8_t getZSLQueueDepth(); 656 uint8_t getZSLBackLookCount(); 657 uint8_t getMaxUnmatchedFramesInQueue(); isZSLMode()658 bool isZSLMode() {return m_bZslMode;}; isRdiMode()659 bool isRdiMode() {return m_bRdiMode;}; isSecureMode()660 bool isSecureMode() {return m_bSecureMode;}; isNoDisplayMode()661 bool isNoDisplayMode() {return m_bNoDisplayMode;}; isWNREnabled()662 bool isWNREnabled() {return m_bWNROn;}; isTNRSnapshotEnabled()663 bool isTNRSnapshotEnabled() {return m_bTNRSnapshotOn;}; getCDSMode()664 int32_t getCDSMode() {return mCds_mode;}; isLTMForSeeMoreEnabled()665 bool isLTMForSeeMoreEnabled() {return m_bLtmForSeeMoreEnabled;}; isHfrMode()666 bool isHfrMode() {return m_bHfrMode;}; getHfrFps(cam_fps_range_t & pFpsRange)667 void getHfrFps(cam_fps_range_t &pFpsRange) { pFpsRange = m_hfrFpsRange;}; 668 uint8_t getNumOfSnapshots(); 669 uint8_t getNumOfRetroSnapshots(); 670 uint8_t getNumOfExtraHDRInBufsIfNeeded(); 671 uint8_t getNumOfExtraHDROutBufsIfNeeded(); 672 getRecordingHintValue()673 bool getRecordingHintValue() {return m_bRecordingHint;}; // return local copy of video hint 674 uint32_t getJpegQuality(); 675 uint32_t getRotation(); 676 uint32_t getDeviceRotation(); 677 uint32_t getJpegExifRotation(); 678 bool useJpegExifRotation(); 679 int32_t getEffectValue(); isInstantAECEnabled()680 bool isInstantAECEnabled() {return m_bInstantAEC;}; isInstantCaptureEnabled()681 bool isInstantCaptureEnabled() {return m_bInstantCapture;}; getAecFrameBoundValue()682 uint8_t getAecFrameBoundValue() {return mAecFrameBound;}; getAecSkipDisplayFrameBound()683 uint8_t getAecSkipDisplayFrameBound() {return mAecSkipDisplayFrameBound;}; 684 685 int32_t getExifDateTime(String8 &dateTime, String8 &subsecTime); 686 int32_t getExifFocalLength(rat_t *focalLenght); 687 uint16_t getExifIsoSpeed(); 688 int32_t getExifGpsProcessingMethod(char *gpsProcessingMethod, uint32_t &count); 689 int32_t getExifLatitude(rat_t *latitude, char *latRef); 690 int32_t getExifLongitude(rat_t *longitude, char *lonRef); 691 int32_t getExifAltitude(rat_t *altitude, char *altRef); 692 int32_t getExifGpsDateTimeStamp(char *gpsDateStamp, uint32_t bufLen, rat_t *gpsTimeStamp); 693 bool isVideoBuffersCached(); 694 int32_t updateFocusDistances(cam_focus_distances_info_t *focusDistances); 695 696 bool isAEBracketEnabled(); 697 int32_t setAEBracketing(); isFpsDebugEnabled()698 bool isFpsDebugEnabled() {return m_bDebugFps;}; isHistogramEnabled()699 bool isHistogramEnabled() {return m_bHistogramEnabled;}; isSceneSelectionEnabled()700 bool isSceneSelectionEnabled() {return m_bSceneSelection;}; 701 int32_t setSelectedScene(cam_scene_mode_type scene); 702 cam_scene_mode_type getSelectedScene(); isFaceDetectionEnabled()703 bool isFaceDetectionEnabled() {return ((m_nFaceProcMask & 704 (CAM_FACE_PROCESS_MASK_DETECTION | CAM_FACE_PROCESS_MASK_FOCUS)) != 0);}; 705 int32_t setFaceDetectionOption(bool enabled); 706 int32_t setHistogram(bool enabled); 707 int32_t setFaceDetection(bool enabled, bool initCommit); 708 int32_t setFrameSkip(enum msm_vfe_frame_skip_pattern pattern); getThermalMode()709 qcamera_thermal_mode getThermalMode() {return m_ThermalMode;}; 710 int32_t updateRecordingHintValue(int32_t value); 711 int32_t setHDRAEBracket(cam_exp_bracketing_t hdrBracket); 712 bool isHDREnabled(); 713 bool isAutoHDREnabled(); 714 int32_t stopAEBracket(); 715 int32_t updateRAW(cam_dimension_t max_dim); 716 bool isDISEnabled(); 717 cam_is_type_t getISType(); 718 uint8_t getMobicatMask(); 719 getFocusMode()720 cam_focus_mode_type getFocusMode() const {return mFocusMode;}; 721 int32_t setNumOfSnapshot(); 722 int32_t adjustPreviewFpsRange(cam_fps_range_t *fpsRange); isJpegPictureFormat()723 bool isJpegPictureFormat() {return (mPictureFormat == CAM_FORMAT_JPEG);}; isNV16PictureFormat()724 bool isNV16PictureFormat() {return (mPictureFormat == CAM_FORMAT_YUV_422_NV16);}; isNV21PictureFormat()725 bool isNV21PictureFormat() {return (mPictureFormat == CAM_FORMAT_YUV_420_NV21);}; 726 cam_denoise_process_type_t getDenoiseProcessPlate(cam_intf_parm_type_t type); getMaxPicSize(cam_dimension_t & dim)727 int32_t getMaxPicSize(cam_dimension_t &dim) { dim = m_maxPicSize; return NO_ERROR; }; 728 int getFlipMode(cam_stream_type_t streamType); 729 bool isSnapshotFDNeeded(); 730 isHDR1xFrameEnabled()731 bool isHDR1xFrameEnabled() {return m_bHDR1xFrameEnabled;} 732 bool isSupportedSensorHdrSize(const QCameraParameters& params); 733 bool isYUVFrameInfoNeeded(); 734 const char*getFrameFmtString(cam_format_t fmt); isHDR1xExtraBufferNeeded()735 bool isHDR1xExtraBufferNeeded() {return m_bHDR1xExtraBufferNeeded;} isHDROutputCropEnabled()736 bool isHDROutputCropEnabled() {return m_bHDROutputCropEnabled;} 737 isPreviewFlipChanged()738 bool isPreviewFlipChanged() { return m_bPreviewFlipChanged; }; isVideoFlipChanged()739 bool isVideoFlipChanged() { return m_bVideoFlipChanged; }; isSnapshotFlipChanged()740 bool isSnapshotFlipChanged() { return m_bSnapshotFlipChanged; }; 741 void setHDRSceneEnable(bool bflag); 742 int32_t updateAWBParams(cam_awb_params_t &awb_params); 743 744 const char *getASDStateString(cam_auto_scene_t scene); isHDRThumbnailProcessNeeded()745 bool isHDRThumbnailProcessNeeded() { return m_bHDRThumbnailProcessNeeded; }; setMinPpMask(cam_feature_mask_t min_pp_mask)746 void setMinPpMask(cam_feature_mask_t min_pp_mask) { m_nMinRequiredPpMask = min_pp_mask; }; 747 bool setStreamConfigure(bool isCapture, bool previewAsPostview, bool resetConfig); 748 int32_t addOnlineRotation(uint32_t rotation, uint32_t streamId, int32_t device_rotation); 749 uint8_t getNumOfExtraBuffersForImageProc(); 750 uint8_t getNumOfExtraBuffersForVideo(); 751 uint8_t getNumOfExtraBuffersForPreview(); 752 uint32_t getExifBufIndex(uint32_t captureIndex); 753 bool needThumbnailReprocess(cam_feature_mask_t *pFeatureMask); isUbiFocusEnabled()754 inline bool isUbiFocusEnabled() {return m_bAFBracketingOn && !m_bReFocusOn;}; isChromaFlashEnabled()755 inline bool isChromaFlashEnabled() {return m_bChromaFlashOn;}; isHighQualityNoiseReductionMode()756 inline bool isHighQualityNoiseReductionMode() {return m_bHighQualityNoiseReductionMode;}; isTruePortraitEnabled()757 inline bool isTruePortraitEnabled() {return m_bTruePortraitOn;}; getTPMaxMetaSize()758 inline size_t getTPMaxMetaSize() { 759 return m_pCapability->true_portrait_settings_need.meta_max_size;}; isSeeMoreEnabled()760 inline bool isSeeMoreEnabled() {return m_bSeeMoreOn;}; isStillMoreEnabled()761 inline bool isStillMoreEnabled() {return m_bStillMoreOn;}; 762 bool isOptiZoomEnabled(); 763 764 int32_t commitAFBracket(cam_af_bracketing_t afBracket); 765 int32_t set3ALock(bool lock3A); 766 int32_t setAndCommitZoom(int zoom_level); 767 uint8_t getBurstCountForAdvancedCapture(); 768 uint32_t getNumberInBufsForSingleShot(); 769 uint32_t getNumberOutBufsForSingleShot(); 770 int32_t setLongshotEnable(bool enable); 771 String8 dump(); isUbiRefocus()772 inline bool isUbiRefocus() {return m_bReFocusOn && 773 (m_pCapability->refocus_af_bracketing_need.output_count > 1);}; getRefocusMaxMetaSize()774 inline uint32_t getRefocusMaxMetaSize() { 775 return m_pCapability->refocus_af_bracketing_need.meta_max_size;}; getRefocusOutputCount()776 inline uint8_t getRefocusOutputCount() { 777 return m_pCapability->refocus_af_bracketing_need.output_count;}; generateThumbFromMain()778 inline bool generateThumbFromMain() {return isUbiFocusEnabled() || 779 isChromaFlashEnabled() || isOptiZoomEnabled() || isUbiRefocus() 780 || isHDREnabled() || isStillMoreEnabled() || isTruePortraitEnabled(); } 781 void updateCurrentFocusPosition(cam_focus_pos_info_t &cur_pos_info); 782 void updateAEInfo(cam_3a_params_t &ae_params); isAdvCamFeaturesEnabled()783 bool isAdvCamFeaturesEnabled() {return isUbiFocusEnabled() || 784 isChromaFlashEnabled() || m_bOptiZoomOn || isHDREnabled() || 785 isAEBracketEnabled() || isStillMoreEnabled() || isUbiRefocus();} 786 int32_t setAecLock(const char *aecStr); 787 int32_t updateDebugLevel(); 788 bool is4k2kVideoResolution(); 789 bool isUBWCEnabled(); 790 791 int getBrightness(); 792 int32_t updateOisValue(bool oisValue); 793 int32_t setIntEvent(cam_int_evt_params_t params); getofflineRAW()794 bool getofflineRAW() {return mOfflineRAW;} 795 int32_t updatePpFeatureMask(cam_stream_type_t stream_type); 796 int32_t getStreamPpMask(cam_stream_type_t stream_type, cam_feature_mask_t &pp_mask); getSharpness()797 int32_t getSharpness() {return m_nSharpness;}; getEffect()798 int32_t getEffect() {return mParmEffect;}; 799 int32_t updateFlashMode(cam_flash_mode_t flash_mode); 800 int32_t configureAEBracketing(cam_capture_frame_config_t &frame_config); 801 int32_t configureHDRBracketing(cam_capture_frame_config_t &frame_config); 802 int32_t configFrameCapture(bool commitSettings); 803 int32_t resetFrameCapture(bool commitSettings); getStillMoreSettings()804 cam_still_more_t getStillMoreSettings() {return m_stillmore_config;}; setStillMoreSettings(cam_still_more_t stillmore_config)805 void setStillMoreSettings(cam_still_more_t stillmore_config) 806 {m_stillmore_config = stillmore_config;}; getStillMoreCapability()807 cam_still_more_t getStillMoreCapability() 808 {return m_pCapability->stillmore_settings_need;}; getDynamicImgData()809 cam_dyn_img_data_t getDynamicImgData() { return m_DynamicImgData; } setDynamicImgData(cam_dyn_img_data_t d)810 void setDynamicImgData(cam_dyn_img_data_t d) { m_DynamicImgData = d; } 811 getParmZoomLevel()812 int32_t getParmZoomLevel(){return mParmZoomLevel;}; getReprocCount()813 int8_t getReprocCount(){return mTotalPPCount;}; 814 bool isMultiPassReprocessing(); getCurPPCount()815 int8_t getCurPPCount(){return mCurPPCount;}; 816 void setReprocCount(); 817 bool isPostProcScaling(); 818 bool isLLNoiseEnabled(); setCurPPCount(int8_t count)819 void setCurPPCount(int8_t count) {mCurPPCount = count;}; 820 int32_t setToneMapMode(uint32_t value, bool initCommit); 821 void setTintless(bool enable); 822 uint8_t getLongshotStages(); getBufBatchCount()823 int8_t getBufBatchCount() {return mBufBatchCnt;}; getVideoBatchSize()824 int8_t getVideoBatchSize() {return mVideoBatchSize;}; 825 826 int32_t setManualCaptureMode( 827 QCameraManualCaptureModes value = CAM_MANUAL_CAPTURE_TYPE_OFF); getManualCaptureMode()828 QCameraManualCaptureModes getManualCaptureMode() 829 {return m_ManualCaptureMode;}; getExposureTime()830 int64_t getExposureTime() {return m_expTime;}; 831 getCaptureFrameConfig()832 cam_capture_frame_config_t getCaptureFrameConfig() 833 { return m_captureFrameConfig; }; 834 void setJpegRotation(int rotation); getJpegRotation()835 uint32_t getJpegRotation() { return mJpegRotation;}; 836 setLowLightLevel(cam_low_light_mode_t value)837 void setLowLightLevel(cam_low_light_mode_t value) 838 { m_LowLightLevel = value; }; getLowLightLevel()839 cam_low_light_mode_t getLowLightLevel() {return m_LowLightLevel;}; getLowLightCapture()840 bool getLowLightCapture() { return m_LLCaptureEnabled; }; 841 842 /* Dual camera specific */ getDcrf()843 bool getDcrf() { return m_bDcrfEnabled; } 844 int32_t setRelatedCamSyncInfo( 845 cam_sync_related_sensors_event_info_t* info); 846 const cam_sync_related_sensors_event_info_t* 847 getRelatedCamSyncInfo(void); 848 int32_t setFrameSyncEnabled(bool enable); 849 bool isFrameSyncEnabled(void); 850 int32_t getRelatedCamCalibration( 851 cam_related_system_calibration_data_t* calib); 852 int32_t bundleRelatedCameras(bool sync, uint32_t sessionid); 853 uint8_t fdModeInVideo(); isOEMFeatEnabled()854 bool isOEMFeatEnabled() { return m_bOEMFeatEnabled; } 855 856 int32_t setZslMode(bool value); 857 int32_t updateZSLModeValue(bool value); 858 859 bool isReprocScaleEnabled(); 860 bool isUnderReprocScaling(); 861 int32_t getPicSizeFromAPK(int &width, int &height); 862 863 int32_t checkFeatureConcurrency(); 864 int32_t setInstantAEC(uint8_t enable, bool initCommit); 865 866 int32_t getAnalysisInfo( 867 bool fdVideoEnabled, 868 bool hal3, 869 uint32_t featureMask, 870 cam_analysis_info_t *pAnalysisInfo); 871 private: 872 int32_t setPreviewSize(const QCameraParameters& ); 873 int32_t setVideoSize(const QCameraParameters& ); 874 int32_t setPictureSize(const QCameraParameters& ); 875 int32_t setLiveSnapshotSize(const QCameraParameters& ); 876 int32_t setPreviewFormat(const QCameraParameters& ); 877 int32_t setPictureFormat(const QCameraParameters& ); 878 int32_t setOrientation(const QCameraParameters& ); 879 int32_t setJpegThumbnailSize(const QCameraParameters& ); 880 int32_t setJpegQuality(const QCameraParameters& ); 881 int32_t setPreviewFpsRange(const QCameraParameters& ); 882 int32_t setPreviewFrameRate(const QCameraParameters& ); 883 int32_t setAutoExposure(const QCameraParameters& ); 884 int32_t setEffect(const QCameraParameters& ); 885 int32_t setBrightness(const QCameraParameters& ); 886 int32_t setFocusMode(const QCameraParameters& ); 887 int32_t setFocusPosition(const QCameraParameters& ); 888 int32_t setSharpness(const QCameraParameters& ); 889 int32_t setSaturation(const QCameraParameters& ); 890 int32_t setContrast(const QCameraParameters& ); 891 int32_t setSkinToneEnhancement(const QCameraParameters& ); 892 int32_t setSceneDetect(const QCameraParameters& ); 893 int32_t setVideoHDR(const QCameraParameters& ); 894 int32_t setVtEnable(const QCameraParameters& ); 895 int32_t setZoom(const QCameraParameters& ); 896 int32_t setISOValue(const QCameraParameters& ); 897 int32_t setContinuousISO(const QCameraParameters& ); 898 int32_t setExposureTime(const QCameraParameters& ); 899 int32_t setRotation(const QCameraParameters& ); 900 int32_t setVideoRotation(const QCameraParameters& ); 901 int32_t setFlash(const QCameraParameters& ); 902 int32_t setAecLock(const QCameraParameters& ); 903 int32_t setAwbLock(const QCameraParameters& ); 904 int32_t setMCEValue(const QCameraParameters& ); 905 int32_t setDISValue(const QCameraParameters& params); 906 int32_t setLensShadeValue(const QCameraParameters& ); 907 int32_t setExposureCompensation(const QCameraParameters& ); 908 int32_t setWhiteBalance(const QCameraParameters& ); 909 int32_t setManualWhiteBalance(const QCameraParameters& ); 910 int32_t setAntibanding(const QCameraParameters& ); 911 int32_t setFocusAreas(const QCameraParameters& ); 912 int32_t setMeteringAreas(const QCameraParameters& ); 913 int32_t setSceneMode(const QCameraParameters& ); 914 int32_t setSelectableZoneAf(const QCameraParameters& ); 915 int32_t setAEBracket(const QCameraParameters& ); 916 int32_t setAFBracket(const QCameraParameters& ); 917 int32_t setReFocus(const QCameraParameters& ); 918 int32_t setChromaFlash(const QCameraParameters& ); 919 int32_t setOptiZoom(const QCameraParameters& ); 920 int32_t setHDRMode(const QCameraParameters& ); 921 int32_t setHDRNeed1x(const QCameraParameters& ); 922 int32_t setTruePortrait(const QCameraParameters& ); 923 int32_t setSeeMore(const QCameraParameters& ); 924 int32_t setStillMore(const QCameraParameters& ); 925 int32_t setNoiseReductionMode(const QCameraParameters& ); 926 int32_t setRedeyeReduction(const QCameraParameters& ); 927 int32_t setGpsLocation(const QCameraParameters& ); 928 int32_t setRecordingHint(const QCameraParameters& ); 929 int32_t setNoDisplayMode(const QCameraParameters& ); 930 int32_t setWaveletDenoise(const QCameraParameters& ); 931 int32_t setTemporalDenoise(const QCameraParameters&); 932 int32_t setZslMode(const QCameraParameters& ); 933 int32_t setZslAttributes(const QCameraParameters& ); 934 int32_t setAutoHDR(const QCameraParameters& params); 935 int32_t setCameraMode(const QCameraParameters& ); 936 int32_t setSceneSelectionMode(const QCameraParameters& params); 937 int32_t setFaceRecognition(const QCameraParameters& ); 938 int32_t setFlip(const QCameraParameters& ); 939 int32_t setRetroActiveBurstNum(const QCameraParameters& params); 940 int32_t setBurstLEDOnPeriod(const QCameraParameters& params); 941 int32_t setSnapshotFDReq(const QCameraParameters& ); 942 int32_t setStatsDebugMask(); 943 int32_t setPAAF(); 944 int32_t setTintlessValue(const QCameraParameters& params); 945 int32_t setCDSMode(const QCameraParameters& params); 946 int32_t setInitialExposureIndex(const QCameraParameters& params); 947 int32_t setInstantCapture(const QCameraParameters& params); 948 int32_t setInstantAEC(const QCameraParameters& params); 949 int32_t setMobicat(const QCameraParameters& params); 950 int32_t setRdiMode(const QCameraParameters& ); 951 int32_t setSecureMode(const QCameraParameters& ); 952 int32_t setCacheVideoBuffers(const QCameraParameters& params); 953 int32_t setCustomParams(const QCameraParameters& params); 954 int32_t setAutoExposure(const char *autoExp); 955 int32_t setPreviewFpsRange(int min_fps,int max_fps, 956 int vid_min_fps,int vid_max_fps); 957 int32_t setEffect(const char *effect); 958 int32_t setBrightness(int brightness); 959 int32_t setFocusMode(const char *focusMode); 960 int32_t setFocusPosition(const char *typeStr, const char *posStr); 961 int32_t setSharpness(int sharpness); 962 int32_t setSaturation(int saturation); 963 int32_t setContrast(int contrast); 964 int32_t setSkinToneEnhancement(int sceFactor); 965 int32_t setSceneDetect(const char *scendDetect); 966 int32_t setVideoHDR(const char *videoHDR); 967 int32_t setSensorSnapshotHDR(const char *snapshotHDR); 968 int32_t setVtEnable(const char *vtEnable); 969 int32_t setZoom(int zoom_level); 970 int32_t setISOValue(const char *isoValue); 971 int32_t setContinuousISO(const char *isoValue); 972 int32_t setExposureTime(const char *expTimeStr); 973 int32_t setFlash(const char *flashStr); 974 int32_t setAwbLock(const char *awbStr); 975 int32_t setMCEValue(const char *mceStr); 976 int32_t setDISValue(const char *disStr); 977 int32_t setHighFrameRate(const int32_t hfrMode); 978 int32_t setLensShadeValue(const char *lensShadeStr); 979 int32_t setExposureCompensation(int expComp); 980 int32_t setWhiteBalance(const char *wbStr); 981 int32_t setWBManualCCT(const char *cctStr); 982 int32_t setManualWBGains(const char *gainStr); 983 int32_t setAntibanding(const char *antiBandingStr); 984 int32_t setFocusAreas(const char *focusAreasStr); 985 int32_t setMeteringAreas(const char *meteringAreasStr); 986 int32_t setSceneMode(const char *sceneModeStr); 987 int32_t setSelectableZoneAf(const char *selZoneAFStr); 988 int32_t setAEBracket(const char *aecBracketStr); 989 int32_t setAFBracket(const char *afBracketStr); 990 int32_t setReFocus(const char *reFocusStr); 991 int32_t setChromaFlash(const char *chromaFlashStr); 992 int32_t setOptiZoom(const char *optiZoomStr); 993 int32_t setHDRMode(const char *optiZoomStr); 994 int32_t setHDRNeed1x(const char *optiZoomStr); 995 int32_t setTruePortrait(const char *truePortraitStr); 996 int32_t setSeeMore(const char *SeeMoreStr); 997 int32_t setStillMore(const char *StillMoreStr); 998 int32_t setNoiseReductionMode(const char *noiseReductionModeStr); 999 int32_t setRedeyeReduction(const char *redeyeStr); 1000 int32_t setWaveletDenoise(const char *wnrStr); 1001 int32_t setFaceRecognition(const char *faceRecog, uint32_t maxFaces); 1002 int32_t setTintlessValue(const char *tintStr); 1003 bool UpdateHFRFrameRate(const QCameraParameters& params); 1004 int32_t setRdiMode(const char *str); 1005 int32_t setSecureMode(const char *str); 1006 int32_t setLongshotParam(const QCameraParameters& params); 1007 int32_t parseGains(const char *gainStr, double &r_gain, 1008 double &g_gain, double &b_gain); 1009 int32_t setCacheVideoBuffers(const char *cacheVideoBufStr); 1010 int32_t setCDSMode(int32_t cds_mode, bool initCommit); 1011 int32_t setEztune(); 1012 void setLowLightCapture(); 1013 int setRecordingHintValue(int32_t value); // set local copy of video hint and send to server 1014 // no change in parameters value 1015 int32_t updateFlash(bool commitSettings); 1016 int32_t setRawSize(cam_dimension_t &dim); setMaxPicSize(cam_dimension_t & dim)1017 int32_t setMaxPicSize(cam_dimension_t &dim) { m_maxPicSize = dim; return NO_ERROR; }; 1018 void setBufBatchCount(int8_t buf_cnt); 1019 void setVideoBatchSize(); 1020 void setDcrf(); 1021 int32_t setStreamPpMask(cam_stream_type_t stream_type, cam_feature_mask_t pp_mask); 1022 void setOfflineRAW(bool value = 0); 1023 int32_t configureFlash(cam_capture_frame_config_t &frame_config); 1024 int32_t configureLowLight(cam_capture_frame_config_t &frame_config); 1025 int32_t configureManualCapture(cam_capture_frame_config_t &frame_config); 1026 isTNRPreviewEnabled()1027 bool isTNRPreviewEnabled() {return m_bTNRPreviewOn;}; isTNRVideoEnabled()1028 bool isTNRVideoEnabled() {return m_bTNRVideoOn;}; getFaceDetectionOption()1029 bool getFaceDetectionOption() { return m_bFaceDetectionOn;} 1030 bool isAVTimerEnabled(); 1031 void getLiveSnapshotSize(cam_dimension_t &dim); getRawSize(cam_dimension_t & dim)1032 int32_t getRawSize(cam_dimension_t &dim) {dim = m_rawSize; return NO_ERROR;}; 1033 int getAutoFlickerMode(); 1034 bool sendStreamConfigInfo(cam_stream_size_info_t &stream_config_info); isLowMemoryDevice()1035 inline bool isLowMemoryDevice() {return m_bIsLowMemoryDevice;}; 1036 bool isPreviewSeeMoreRequired(); isEztuneEnabled()1037 bool isEztuneEnabled() { return m_bEztuneEnabled; }; getZoomLevel()1038 int32_t getZoomLevel(){return mZoomLevel;}; 1039 int32_t parse_pair(const char *str, int *first, int *second, 1040 char delim, char **endptr); 1041 void parseSizesList(const char *sizesStr, Vector<Size> &sizes); 1042 int32_t parseNDimVector(const char *str, int *num, int N, char delim); 1043 int32_t parseCameraAreaString(const char *str, int max_num_areas, 1044 cam_area_t *pAreas, int& num_areas_found); 1045 bool validateCameraAreas(cam_area_t *areas, int num_areas); 1046 int parseGPSCoordinate(const char *coord_str, rat_t *coord); 1047 int32_t getRational(rat_t *rat, int num, int denom); 1048 String8 createSizesString(const cam_dimension_t *sizes, size_t len); 1049 String8 createHfrValuesString(const cam_hfr_info_t *values, size_t len, 1050 const QCameraMap<cam_hfr_mode_t> *map, size_t map_len); 1051 String8 createHfrSizesString(const cam_hfr_info_t *values, size_t len); 1052 String8 createFpsRangeString(const cam_fps_range_t *fps, 1053 size_t len, int &default_fps_index); 1054 String8 createFpsString(cam_fps_range_t &fps); 1055 String8 createZoomRatioValuesString(uint32_t *zoomRatios, size_t length); 1056 int32_t setDualLedCalibration(const QCameraParameters& params); 1057 int32_t setAdvancedCaptureMode(); 1058 1059 // ops for batch set/get params with server 1060 int32_t initBatchUpdate(parm_buffer_t *p_table); 1061 int32_t commitSetBatch(); 1062 int32_t commitGetBatch(); 1063 1064 // ops to tempororily update parameter entries and commit 1065 int32_t updateParamEntry(const char *key, const char *value); 1066 int32_t commitParamChanges(); 1067 void updateViewAngles(); 1068 1069 // Map from strings to values 1070 static const cam_dimension_t THUMBNAIL_SIZES_MAP[]; 1071 static const QCameraMap<cam_auto_exposure_mode_type> AUTO_EXPOSURE_MAP[]; 1072 static const QCameraMap<cam_aec_convergence_type> INSTANT_CAPTURE_MODES_MAP[]; 1073 static const QCameraMap<cam_aec_convergence_type> INSTANT_AEC_MODES_MAP[]; 1074 static const QCameraMap<cam_format_t> PREVIEW_FORMATS_MAP[]; 1075 static const QCameraMap<cam_format_t> PICTURE_TYPES_MAP[]; 1076 static const QCameraMap<cam_focus_mode_type> FOCUS_MODES_MAP[]; 1077 static const QCameraMap<cam_effect_mode_type> EFFECT_MODES_MAP[]; 1078 static const QCameraMap<cam_scene_mode_type> SCENE_MODES_MAP[]; 1079 static const QCameraMap<cam_flash_mode_t> FLASH_MODES_MAP[]; 1080 static const QCameraMap<cam_focus_algorithm_type> FOCUS_ALGO_MAP[]; 1081 static const QCameraMap<cam_wb_mode_type> WHITE_BALANCE_MODES_MAP[]; 1082 static const QCameraMap<cam_antibanding_mode_type> ANTIBANDING_MODES_MAP[]; 1083 static const QCameraMap<cam_iso_mode_type> ISO_MODES_MAP[]; 1084 static const QCameraMap<cam_hfr_mode_t> HFR_MODES_MAP[]; 1085 static const QCameraMap<cam_bracket_mode> BRACKETING_MODES_MAP[]; 1086 static const QCameraMap<int> ON_OFF_MODES_MAP[]; 1087 static const QCameraMap<int> ENABLE_DISABLE_MODES_MAP[]; 1088 static const QCameraMap<int> DENOISE_ON_OFF_MODES_MAP[]; 1089 static const QCameraMap<int> TRUE_FALSE_MODES_MAP[]; 1090 static const QCameraMap<int> TOUCH_AF_AEC_MODES_MAP[]; 1091 static const QCameraMap<cam_flip_t> FLIP_MODES_MAP[]; 1092 static const QCameraMap<int> AF_BRACKETING_MODES_MAP[]; 1093 static const QCameraMap<int> RE_FOCUS_MODES_MAP[]; 1094 static const QCameraMap<int> CHROMA_FLASH_MODES_MAP[]; 1095 static const QCameraMap<int> OPTI_ZOOM_MODES_MAP[]; 1096 static const QCameraMap<int> TRUE_PORTRAIT_MODES_MAP[]; 1097 static const QCameraMap<cam_cds_mode_type_t> CDS_MODES_MAP[]; 1098 static const QCameraMap<int> HDR_MODES_MAP[]; 1099 static const QCameraMap<int> VIDEO_ROTATION_MODES_MAP[]; 1100 static const QCameraMap<int> SEE_MORE_MODES_MAP[]; 1101 static const QCameraMap<int> STILL_MORE_MODES_MAP[]; 1102 static const QCameraMap<int> NOISE_REDUCTION_MODES_MAP[]; 1103 1104 QCameraReprocScaleParam m_reprocScaleParam; 1105 QCameraCommon mCommon; 1106 1107 cam_capability_t *m_pCapability; 1108 mm_camera_vtbl_t *m_pCamOpsTbl; 1109 QCameraHeapMemory *m_pParamHeap; 1110 parm_buffer_t *m_pParamBuf; // ptr to param buf in m_pParamHeap 1111 /* heap for mapping dual cam event info */ 1112 QCameraHeapMemory *m_pRelCamSyncHeap; 1113 /* ptr to sync buffer in m_pRelCamSyncHeap */ 1114 cam_sync_related_sensors_event_info_t *m_pRelCamSyncBuf; 1115 cam_sync_related_sensors_event_info_t m_relCamSyncInfo; 1116 bool m_bFrameSyncEnabled; 1117 cam_is_type_t mIsType; 1118 1119 bool m_bZslMode; // if ZSL is enabled 1120 bool m_bZslMode_new; 1121 bool m_bForceZslMode; 1122 bool m_bRecordingHint; // local copy of recording hint 1123 bool m_bRecordingHint_new; 1124 bool m_bHistogramEnabled; // if histogram is enabled 1125 bool m_bLongshotEnabled; // if longshot is enabled 1126 uint32_t m_nFaceProcMask; // face process mask 1127 bool m_bFaceDetectionOn; // if face Detection turned on by user 1128 bool m_bDebugFps; // if FPS need to be logged 1129 cam_focus_mode_type mFocusMode; 1130 cam_format_t mPreviewFormat; 1131 cam_format_t mAppPreviewFormat; 1132 int32_t mPictureFormat; // could be CAMERA_PICTURE_TYPE_JPEG or cam_format_t 1133 bool m_bNeedRestart; // if preview needs restart after parameters updated 1134 bool m_bNoDisplayMode; 1135 bool m_bWNROn; 1136 bool m_bTNRPreviewOn; 1137 bool m_bTNRVideoOn; 1138 bool m_bTNRSnapshotOn; 1139 bool m_bInited; 1140 int m_nRetroBurstNum; 1141 int m_nBurstLEDOnPeriod; 1142 cam_exp_bracketing_t m_AEBracketingClient; 1143 bool m_bUpdateEffects; // Cause reapplying of effects 1144 bool m_bSceneTransitionAuto; // Indicate that scene has changed to Auto 1145 bool m_bPreviewFlipChanged; // if flip setting for preview changed 1146 bool m_bVideoFlipChanged; // if flip setting for video changed 1147 bool m_bSnapshotFlipChanged; // if flip setting for snapshot changed 1148 bool m_bFixedFrameRateSet; // Indicates that a fixed frame rate is set 1149 qcamera_thermal_mode m_ThermalMode; // adjust fps vs adjust frameskip 1150 cam_dimension_t m_LiveSnapshotSize; // live snapshot size 1151 cam_dimension_t m_rawSize; // live snapshot size 1152 cam_dimension_t m_maxPicSize; 1153 bool m_bHDREnabled; // if HDR is enabled 1154 bool m_bLocalHDREnabled; // This flag tells whether HDR enabled or not regarless of APP mode 1155 bool m_bAVTimerEnabled; //if AVTimer is enabled 1156 bool m_bDISEnabled; 1157 bool m_bOISEnabled; 1158 cam_still_more_t m_stillmore_config; 1159 1160 uint8_t m_MobiMask; 1161 QCameraAdjustFPS *m_AdjustFPS; 1162 bool m_bHDR1xFrameEnabled; // if frame with exposure compensation 0 during HDR is enabled 1163 bool m_HDRSceneEnabled; // Auto HDR indication 1164 bool m_bHDRThumbnailProcessNeeded; // if thumbnail need to be processed for HDR 1165 bool m_bHDR1xExtraBufferNeeded; // if extra frame with exposure compensation 0 during HDR is needed 1166 bool m_bHDROutputCropEnabled; // if HDR output frame need to be scaled to user resolution 1167 DefaultKeyedVector<String8,String8> m_tempMap; // map for temororily store parameters to be set 1168 cam_fps_range_t m_default_fps_range; 1169 bool m_bAFBracketingOn; 1170 bool m_bReFocusOn; 1171 bool m_bChromaFlashOn; 1172 bool m_bOptiZoomOn; 1173 bool m_bSceneSelection; 1174 Mutex m_SceneSelectLock; 1175 cam_scene_mode_type m_SelectedScene; 1176 bool m_bSeeMoreOn; 1177 bool m_bStillMoreOn; 1178 bool m_bHighQualityNoiseReductionMode; 1179 cam_fps_range_t m_hfrFpsRange; 1180 bool m_bHfrMode; 1181 bool m_bSensorHDREnabled; // if HDR is enabled 1182 bool m_bRdiMode; // if RDI mode 1183 bool m_bSecureMode; 1184 bool m_bAeBracketingEnabled; 1185 int32_t mFlashValue; 1186 int32_t mFlashDaemonValue; 1187 int32_t mHfrMode; 1188 bool m_bHDRModeSensor; 1189 bool mOfflineRAW; 1190 bool m_bTruePortraitOn; 1191 cam_feature_mask_t m_nMinRequiredPpMask; 1192 cam_feature_mask_t mStreamPpMask[CAM_STREAM_TYPE_MAX]; 1193 int32_t m_nSharpness; 1194 int8_t mTotalPPCount; 1195 int8_t mCurPPCount; 1196 int32_t mZoomLevel; 1197 int32_t mParmZoomLevel; 1198 bool m_bIsLowMemoryDevice; 1199 int32_t mCds_mode; 1200 int32_t mParmEffect; 1201 cam_capture_frame_config_t m_captureFrameConfig; 1202 int8_t mBufBatchCnt; 1203 bool m_bEztuneEnabled; 1204 bool m_bDcrfEnabled; 1205 uint32_t mRotation; 1206 uint32_t mJpegRotation; 1207 int8_t mVideoBatchSize; 1208 bool m_LLCaptureEnabled; 1209 cam_low_light_mode_t m_LowLightLevel; 1210 bool m_bLtmForSeeMoreEnabled; 1211 int64_t m_expTime; 1212 bool m_bOEMFeatEnabled; 1213 int32_t m_isoValue; 1214 QCameraManualCaptureModes m_ManualCaptureMode; 1215 cam_dyn_img_data_t m_DynamicImgData; 1216 int32_t m_dualLedCalibration; 1217 // Param to trigger instant AEC. 1218 bool m_bInstantAEC; 1219 // Param to trigger instant capture. 1220 bool m_bInstantCapture; 1221 // Number of frames, camera interface will wait for getting the instant capture frame. 1222 uint8_t mAecFrameBound; 1223 // Number of preview frames, that HAL will hold without displaying, for instant AEC mode. 1224 uint8_t mAecSkipDisplayFrameBound; 1225 }; 1226 1227 }; // namespace qcamera 1228 1229 #endif 1230