Lines Matching refs:params

323     android::CameraParameters params;  in setParameters()  local
326 params.unflatten(str_params); in setParameters()
330 return setParameters(params); in setParameters()
341 int CameraHal::setParameters(const android::CameraParameters& params) in setParameters() argument
369 if ((valstr = params.getPreviewFormat()) != NULL) { in setParameters()
380 if ((valstr = params.get(TICameraParameters::KEY_VNF)) != NULL) { in setParameters()
394 if ((valstr = params.get(android::CameraParameters::KEY_VIDEO_STABILIZATION)) != NULL) { in setParameters()
410 if( (valstr = params.get(TICameraParameters::KEY_CAP_MODE)) != NULL) { in setParameters()
436 if ((valstr = params.get(TICameraParameters::KEY_VTC_HINT)) != NULL ) { in setParameters()
447 if ((valstr = params.get(TICameraParameters::KEY_VIDEO_ENCODER_HANDLE)) != NULL ) { in setParameters()
451 … if ((valstr = params.get(TICameraParameters::KEY_VIDEO_ENCODER_SLICE_HEIGHT)) != NULL ) { in setParameters()
458 if ((valstr = params.get(TICameraParameters::KEY_IPP)) != NULL) { in setParameters()
462 CAMHAL_LOGDB("IPP mode set %s", params.get(TICameraParameters::KEY_IPP)); in setParameters()
472 if ( (valstr = params.get(TICameraParameters::KEY_S3D_PRV_FRAME_LAYOUT)) != NULL ) in setParameters()
484 if((valstr = params.get(TICameraParameters::KEY_SENSOR_ORIENTATION)) != NULL) in setParameters()
490 orientation = params.getInt(TICameraParameters::KEY_SENSOR_ORIENTATION); in setParameters()
501 params.getPreviewSize(&w, &h); in setParameters()
511 valstr = params.get(android::CameraParameters::KEY_RECORDING_HINT); in setParameters()
524 params.getPreviewFpsRange(&minFPS, &maxFPS); in setParameters()
531 restartPreviewRequired |= setVideoModeParameters(params); in setParameters()
573 if ((valstr = params.get(android::CameraParameters::KEY_FOCUS_MODE)) != NULL) { in setParameters()
582 restartPreviewRequired |= setVideoModeParameters(params); in setParameters()
595 valstr = params.get(TICameraParameters::KEY_CAP_MODE); in setParameters()
602 if ( (valstr = params.get(TICameraParameters::KEY_S3D_CAP_FRAME_LAYOUT)) != NULL ) in setParameters()
608 params.getPictureSize(&w, &h); in setParameters()
621 if ( (valstr = params.getPictureFormat()) != NULL ) { in setParameters()
640 if ((valstr = params.get(TICameraParameters::KEY_BURST)) != NULL) { in setParameters()
641 if (params.getInt(TICameraParameters::KEY_BURST) >=0) { in setParameters()
656 valstr = params.get(android::CameraParameters::KEY_PREVIEW_FPS_RANGE); in setParameters()
668 params.getPreviewFpsRange(&minFPS, &maxFPS); in setParameters()
671 …if (!isFpsRangeValid(minFPS, maxFPS, params.get(android::CameraParameters::KEY_SUPPORTED_PREVIEW_F… in setParameters()
672 …!isFpsRangeValid(minFPS, maxFPS, params.get(TICameraParameters::KEY_FRAMERATE_RANGES_EXT_SUPPORTED… in setParameters()
687 framerate = params.getPreviewFrameRate(); in setParameters()
688 …if (!isParameterValid(framerate, params.get(android::CameraParameters::KEY_SUPPORTED_PREVIEW_FRAME… in setParameters()
689 … !isParameterValid(framerate, params.get(TICameraParameters::KEY_FRAMERATES_EXT_SUPPORTED))) { in setParameters()
702 if ((valstr = params.get(TICameraParameters::KEY_GBCE)) != NULL) { in setParameters()
717 if ((valstr = params.get(TICameraParameters::KEY_GLBCE)) != NULL) { in setParameters()
734 if ( (valstr = params.get(TICameraParameters::KEY_AUTOCONVERGENCE_MODE)) != NULL ) { in setParameters()
739 if ( (valstr = params.get(TICameraParameters::KEY_MANUAL_CONVERGENCE)) != NULL ) { in setParameters()
752 … if((valstr = params.get(TICameraParameters::KEY_MECHANICAL_MISALIGNMENT_CORRECTION)) != NULL) { in setParameters()
762 if ((valstr = params.get(TICameraParameters::KEY_EXPOSURE_MODE)) != NULL) { in setParameters()
768 if ((valstr = params.get(TICameraParameters::KEY_MANUAL_EXPOSURE)) != NULL) { in setParameters()
769 manualVal = params.getInt(TICameraParameters::KEY_MANUAL_EXPOSURE); in setParameters()
779 … if ((valstr = params.get(TICameraParameters::KEY_MANUAL_EXPOSURE_RIGHT)) != NULL) { in setParameters()
780 manualVal = params.getInt(TICameraParameters::KEY_MANUAL_EXPOSURE_RIGHT); in setParameters()
790 if ((valstr = params.get(TICameraParameters::KEY_MANUAL_GAIN_ISO)) != NULL) { in setParameters()
791 manualVal = params.getInt(TICameraParameters::KEY_MANUAL_GAIN_ISO); in setParameters()
801 … if ((valstr = params.get(TICameraParameters::KEY_MANUAL_GAIN_ISO_RIGHT)) != NULL) { in setParameters()
802 manualVal = params.getInt(TICameraParameters::KEY_MANUAL_GAIN_ISO_RIGHT); in setParameters()
820 if ((valstr = params.get(android::CameraParameters::KEY_WHITE_BALANCE)) != NULL) { in setParameters()
831 if ((valstr = params.get(TICameraParameters::KEY_CONTRAST)) != NULL) { in setParameters()
832 if (params.getInt(TICameraParameters::KEY_CONTRAST) >= 0 ) { in setParameters()
841 if ((valstr =params.get(TICameraParameters::KEY_SHARPNESS)) != NULL) { in setParameters()
842 if (params.getInt(TICameraParameters::KEY_SHARPNESS) >= 0 ) { in setParameters()
851 if ((valstr = params.get(TICameraParameters::KEY_SATURATION)) != NULL) { in setParameters()
852 if (params.getInt(TICameraParameters::KEY_SATURATION) >= 0 ) { in setParameters()
861 if ((valstr = params.get(TICameraParameters::KEY_BRIGHTNESS)) != NULL) { in setParameters()
862 if (params.getInt(TICameraParameters::KEY_BRIGHTNESS) >= 0 ) { in setParameters()
872 if ((valstr = params.get(android::CameraParameters::KEY_ANTIBANDING)) != NULL) { in setParameters()
883 if ((valstr = params.get(TICameraParameters::KEY_ISO)) != NULL) { in setParameters()
894 if( (valstr = params.get(android::CameraParameters::KEY_FOCUS_AREAS)) != NULL ) in setParameters()
896 …CAMHAL_LOGDB("Focus areas position set %s", params.get(android::CameraParameters::KEY_FOCUS_AREAS)… in setParameters()
901 if( (valstr = params.get(TICameraParameters::KEY_MEASUREMENT_ENABLE)) != NULL ) in setParameters()
922 if( (valstr = params.get(android::CameraParameters::KEY_EXPOSURE_COMPENSATION)) != NULL) in setParameters()
924 …CAMHAL_LOGDB("Exposure compensation set %s", params.get(android::CameraParameters::KEY_EXPOSURE_CO… in setParameters()
928 if ((valstr = params.get(android::CameraParameters::KEY_SCENE_MODE)) != NULL) { in setParameters()
941 if ((valstr = params.get(android::CameraParameters::KEY_FLASH_MODE)) != NULL) { in setParameters()
951 if ((valstr = params.get(android::CameraParameters::KEY_EFFECT)) != NULL) { in setParameters()
961 varint = params.getInt(android::CameraParameters::KEY_ROTATION); in setParameters()
967 varint = params.getInt(android::CameraParameters::KEY_JPEG_QUALITY); in setParameters()
973 varint = params.getInt(android::CameraParameters::KEY_JPEG_THUMBNAIL_WIDTH); in setParameters()
979 varint = params.getInt(android::CameraParameters::KEY_JPEG_THUMBNAIL_HEIGHT); in setParameters()
985 varint = params.getInt(android::CameraParameters::KEY_JPEG_THUMBNAIL_QUALITY); in setParameters()
991 if( (valstr = params.get(android::CameraParameters::KEY_GPS_LATITUDE)) != NULL ) in setParameters()
993 … CAMHAL_LOGDB("GPS latitude set %s", params.get(android::CameraParameters::KEY_GPS_LATITUDE)); in setParameters()
999 if( (valstr = params.get(android::CameraParameters::KEY_GPS_LONGITUDE)) != NULL ) in setParameters()
1001 … CAMHAL_LOGDB("GPS longitude set %s", params.get(android::CameraParameters::KEY_GPS_LONGITUDE)); in setParameters()
1007 if( (valstr = params.get(android::CameraParameters::KEY_GPS_ALTITUDE)) != NULL ) in setParameters()
1009 … CAMHAL_LOGDB("GPS altitude set %s", params.get(android::CameraParameters::KEY_GPS_ALTITUDE)); in setParameters()
1015 if( (valstr = params.get(android::CameraParameters::KEY_GPS_TIMESTAMP)) != NULL ) in setParameters()
1017 … CAMHAL_LOGDB("GPS timestamp set %s", params.get(android::CameraParameters::KEY_GPS_TIMESTAMP)); in setParameters()
1023 if( (valstr = params.get(TICameraParameters::KEY_GPS_DATESTAMP)) != NULL ) in setParameters()
1031 if( (valstr = params.get(android::CameraParameters::KEY_GPS_PROCESSING_METHOD)) != NULL ) in setParameters()
1033 …CAMHAL_LOGDB("GPS processing method set %s", params.get(android::CameraParameters::KEY_GPS_PROCESS… in setParameters()
1039 if( (valstr = params.get(TICameraParameters::KEY_GPS_MAPDATUM )) != NULL ) in setParameters()
1047 if( (valstr = params.get(TICameraParameters::KEY_GPS_VERSION)) != NULL ) in setParameters()
1055 if( (valstr = params.get(TICameraParameters::KEY_EXIF_MODEL)) != NULL ) in setParameters()
1061 if( (valstr = params.get(TICameraParameters::KEY_EXIF_MAKE)) != NULL ) in setParameters()
1068 if( (valstr = params.get(TICameraParameters::KEY_EXP_BRACKETING_RANGE)) != NULL ) in setParameters()
1070 …CAMHAL_LOGDB("Exposure Bracketing set %s", params.get(TICameraParameters::KEY_EXP_BRACKETING_RANGE… in setParameters()
1074 else if ((valstr = params.get(TICameraParameters::KEY_EXP_GAIN_BRACKETING_RANGE)) != NULL) { in setParameters()
1075 …CAMHAL_LOGDB("ABS Exposure+Gain Bracketing set %s", params.get(TICameraParameters::KEY_EXP_GAIN_BR… in setParameters()
1083 if( (valstr = params.get(TICameraParameters::KEY_ZOOM_BRACKETING_RANGE)) != NULL ) { in setParameters()
1091 if ((valstr = params.get(android::CameraParameters::KEY_ZOOM)) != NULL ) { in setParameters()
1105 if( (valstr = params.get(android::CameraParameters::KEY_AUTO_EXPOSURE_LOCK)) != NULL ) in setParameters()
1114 if( (valstr = params.get(android::CameraParameters::KEY_AUTO_WHITEBALANCE_LOCK)) != NULL ) in setParameters()
1122 if( (valstr = params.get(android::CameraParameters::KEY_METERING_AREAS)) != NULL ) in setParameters()
1124 …CAMHAL_LOGDB("Metering areas position set %s", params.get(android::CameraParameters::KEY_METERING_… in setParameters()
1128 if( (valstr = params.get(TICameraParameters::RAW_WIDTH)) != NULL ) { in setParameters()
1129 CAMHAL_LOGDB("Raw image width set %s", params.get(TICameraParameters::RAW_WIDTH)); in setParameters()
1133 if( (valstr = params.get(TICameraParameters::RAW_HEIGHT)) != NULL ) { in setParameters()
1134 CAMHAL_LOGDB("Raw image height set %s", params.get(TICameraParameters::RAW_HEIGHT)); in setParameters()
1139 if( (valstr = params.get(TICameraParameters::KEY_ALGO_EXTERNAL_GAMMA)) != NULL ) in setParameters()
1145 if( (valstr = params.get(TICameraParameters::KEY_ALGO_NSF1)) != NULL ) in setParameters()
1151 if( (valstr = params.get(TICameraParameters::KEY_ALGO_NSF2)) != NULL ) in setParameters()
1157 if( (valstr = params.get(TICameraParameters::KEY_ALGO_SHARPENING)) != NULL ) in setParameters()
1163 if( (valstr = params.get(TICameraParameters::KEY_ALGO_THREELINCOLORMAP)) != NULL ) in setParameters()
1169 if( (valstr = params.get(TICameraParameters::KEY_ALGO_GIC)) != NULL ) in setParameters()
1175 if( (valstr = params.get(TICameraParameters::KEY_GAMMA_TABLE)) != NULL ) in setParameters()
1184 if( NULL != params.get(TICameraParameters::KEY_TEMP_BRACKETING_RANGE_POS) ) in setParameters()
1186 int posBracketRange = params.getInt(TICameraParameters::KEY_TEMP_BRACKETING_RANGE_POS); in setParameters()
1195 if( NULL != params.get(TICameraParameters::KEY_TEMP_BRACKETING_RANGE_NEG) ) in setParameters()
1197 int negBracketRange = params.getInt(TICameraParameters::KEY_TEMP_BRACKETING_RANGE_NEG); in setParameters()
1205 if( ( (valstr = params.get(TICameraParameters::KEY_TEMP_BRACKETING)) != NULL) && in setParameters()
1215 } else if ( ( (valstr = params.get(TICameraParameters::KEY_TEMP_BRACKETING)) != NULL ) && in setParameters()
1258 if( ( (valstr = params.get(TICameraParameters::KEY_SHUTTER_ENABLE)) != NULL ) && in setParameters()
1267 else if ( ( (valstr = params.get(TICameraParameters::KEY_SHUTTER_ENABLE)) != NULL ) && in setParameters()
2663 bool CameraHal::setVideoModeParameters(const android::CameraParameters& params) in setVideoModeParameters() argument
2682 if ( (valstrRemote = params.get(android::CameraParameters::KEY_VIDEO_STABILIZATION)) != NULL ) { in setVideoModeParameters()
2702 if ((valstrRemote = params.get(TICameraParameters::KEY_VNF)) == NULL) { in setVideoModeParameters()
2719 params.getPreviewSize(&w, &h); in setVideoModeParameters()
3166 status_t CameraHal::takePicture(const char *params) in takePicture() argument
3169 return __takePicture(params); in takePicture()
3180 status_t CameraHal::__takePicture(const char *params, struct timeval *captureStart) in __takePicture() argument
3248 if (strlen(params) > 0) { in __takePicture()
3254 android::String8 shotParams8(params); in __takePicture()
3626 status_t CameraHal::reprocess(const char *params) in reprocess() argument
3647 if (strlen(params) > 0) { in reprocess()
3648 android::String8 shotParams8(params); in reprocess()
4682 void CameraHal::resetPreviewRes(android::CameraParameters *params) in resetPreviewRes() argument
4687 params->setPreviewSize(mVideoWidth, mVideoHeight); in resetPreviewRes()