Lines Matching refs:valstr
349 const char *valstr = NULL; in setParameters() local
369 if ((valstr = params.getPreviewFormat()) != NULL) { in setParameters()
370 …if ( isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_PREVIEW_FORMATS))… in setParameters()
371 mParameters.setPreviewFormat(valstr); in setParameters()
372 CAMHAL_LOGDB("PreviewFormat set %s", valstr); in setParameters()
374 CAMHAL_LOGEB("Invalid preview format: %s. Supported: %s", valstr, in setParameters()
380 if ((valstr = params.get(TICameraParameters::KEY_VNF)) != NULL) { in setParameters()
383 CAMHAL_LOGDB("VNF %s", valstr); in setParameters()
384 mParameters.set(TICameraParameters::KEY_VNF, valstr); in setParameters()
385 } else if (strcmp(valstr, android::CameraParameters::TRUE) == 0) { in setParameters()
386 CAMHAL_LOGEB("ERROR: Invalid VNF: %s", valstr); in setParameters()
394 if ((valstr = params.get(android::CameraParameters::KEY_VIDEO_STABILIZATION)) != NULL) { in setParameters()
399 CAMHAL_LOGDB("VSTAB %s", valstr); in setParameters()
400 mParameters.set(android::CameraParameters::KEY_VIDEO_STABILIZATION, valstr); in setParameters()
401 } else if (strcmp(valstr, android::CameraParameters::TRUE) == 0) { in setParameters()
402 CAMHAL_LOGEB("ERROR: Invalid VSTAB: %s", valstr); in setParameters()
410 if( (valstr = params.get(TICameraParameters::KEY_CAP_MODE)) != NULL) { in setParameters()
412 if (strcmp(TICameraParameters::VIDEO_MODE, valstr)) { in setParameters()
413 mCapModeBackup = valstr; in setParameters()
416 CAMHAL_LOGDB("Capture mode set %s", valstr); in setParameters()
420 if ( strcmp(currentMode, valstr) != 0 ) { in setParameters()
427 mParameters.set(TICameraParameters::KEY_CAP_MODE, valstr); in setParameters()
436 if ((valstr = params.get(TICameraParameters::KEY_VTC_HINT)) != NULL ) { in setParameters()
437 mParameters.set(TICameraParameters::KEY_VTC_HINT, valstr); in setParameters()
438 if (strcmp(valstr, android::CameraParameters::TRUE) == 0) { in setParameters()
447 if ((valstr = params.get(TICameraParameters::KEY_VIDEO_ENCODER_HANDLE)) != NULL ) { in setParameters()
448 mParameters.set(TICameraParameters::KEY_VIDEO_ENCODER_HANDLE, valstr); in setParameters()
451 … if ((valstr = params.get(TICameraParameters::KEY_VIDEO_ENCODER_SLICE_HEIGHT)) != NULL ) { in setParameters()
452 mParameters.set(TICameraParameters::KEY_VIDEO_ENCODER_SLICE_HEIGHT, valstr); in setParameters()
458 if ((valstr = params.get(TICameraParameters::KEY_IPP)) != NULL) { in setParameters()
459 … if (isParameterValid(valstr,mCameraProperties->get(CameraProperties::SUPPORTED_IPP_MODES))) { in setParameters()
461 (strcmp(valstr, mParameters.get(TICameraParameters::KEY_IPP)))) { in setParameters()
463 mParameters.set(TICameraParameters::KEY_IPP, valstr); in setParameters()
467 CAMHAL_LOGEB("ERROR: Invalid IPP mode: %s", valstr); in setParameters()
472 if ( (valstr = params.get(TICameraParameters::KEY_S3D_PRV_FRAME_LAYOUT)) != NULL ) in setParameters()
474 if (strcmp(valstr, mParameters.get(TICameraParameters::KEY_S3D_PRV_FRAME_LAYOUT))) in setParameters()
476 CAMHAL_LOGDB("Stereo 3D preview image layout is %s", valstr); in setParameters()
477 mParameters.set(TICameraParameters::KEY_S3D_PRV_FRAME_LAYOUT, valstr); in setParameters()
484 if((valstr = params.get(TICameraParameters::KEY_SENSOR_ORIENTATION)) != NULL) in setParameters()
486 doesSetParameterNeedUpdate(valstr, in setParameters()
492 … CAMHAL_LOGE("Invalid sensor orientation: %s. Value must be one of: [0, 90, 180, 270]", valstr); in setParameters()
497 mParameters.set(TICameraParameters::KEY_SENSOR_ORIENTATION, valstr); in setParameters()
511 valstr = params.get(android::CameraParameters::KEY_RECORDING_HINT); in setParameters()
512 if(valstr != NULL) in setParameters()
514 CAMHAL_LOGDB("Recording Hint is set to %s", valstr); in setParameters()
515 if(strcmp(valstr, android::CameraParameters::TRUE) == 0) in setParameters()
530 mParameters.set(android::CameraParameters::KEY_RECORDING_HINT, valstr); in setParameters()
533 else if(strcmp(valstr, android::CameraParameters::FALSE) == 0) in setParameters()
535 mParameters.set(android::CameraParameters::KEY_RECORDING_HINT, valstr); in setParameters()
573 if ((valstr = params.get(android::CameraParameters::KEY_FOCUS_MODE)) != NULL) { in setParameters()
574 … if (isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_FOCUS_MODES))) { in setParameters()
575 CAMHAL_LOGDB("Focus mode set %s", valstr); in setParameters()
579 if(strcmp(valstr, android::CameraParameters::FOCUS_MODE_CONTINUOUS_PICTURE) == 0){ in setParameters()
581 … } else if (strcmp(valstr, android::CameraParameters::FOCUS_MODE_CONTINUOUS_VIDEO) == 0){ in setParameters()
585 mParameters.set(android::CameraParameters::KEY_FOCUS_MODE, valstr); in setParameters()
587 CAMHAL_LOGEB("ERROR: Invalid FOCUS mode = %s", valstr); in setParameters()
595 valstr = params.get(TICameraParameters::KEY_CAP_MODE); in setParameters()
596 if ( (!valstr || strcmp(valstr, TICameraParameters::HIGH_QUALITY_MODE) == 0) && in setParameters()
602 if ( (valstr = params.get(TICameraParameters::KEY_S3D_CAP_FRAME_LAYOUT)) != NULL ) in setParameters()
604 CAMHAL_LOGDB("Stereo 3D capture image layout is %s", valstr); in setParameters()
605 mParameters.set(TICameraParameters::KEY_S3D_CAP_FRAME_LAYOUT, valstr); in setParameters()
621 if ( (valstr = params.getPictureFormat()) != NULL ) { in setParameters()
622 …if (isParameterValid(valstr,mCameraProperties->get(CameraProperties::SUPPORTED_PICTURE_FORMATS))) { in setParameters()
623 if ((strcmp(valstr, android::CameraParameters::PIXEL_FORMAT_BAYER_RGGB) == 0) && in setParameters()
632 mParameters.setPictureFormat(valstr); in setParameters()
634 CAMHAL_LOGEB("ERROR: Invalid picture format: %s",valstr); in setParameters()
640 if ((valstr = params.get(TICameraParameters::KEY_BURST)) != NULL) { in setParameters()
642 CAMHAL_LOGDB("Burst set %s", valstr); in setParameters()
643 mParameters.set(TICameraParameters::KEY_BURST, valstr); in setParameters()
645 CAMHAL_LOGEB("ERROR: Invalid Burst value: %s",valstr); in setParameters()
656 valstr = params.get(android::CameraParameters::KEY_PREVIEW_FPS_RANGE); in setParameters()
657 if (valstr != NULL && strlen(valstr)) { in setParameters()
679 mParameters.set(android::CameraParameters::KEY_PREVIEW_FPS_RANGE, valstr); in setParameters()
680 CAMHAL_LOGDB("FPS Range = %s", valstr); in setParameters()
702 if ((valstr = params.get(TICameraParameters::KEY_GBCE)) != NULL) { in setParameters()
705 CAMHAL_LOGDB("GBCE %s", valstr); in setParameters()
706 mParameters.set(TICameraParameters::KEY_GBCE, valstr); in setParameters()
707 } else if (strcmp(valstr, android::CameraParameters::TRUE) == 0) { in setParameters()
708 CAMHAL_LOGEB("ERROR: Invalid GBCE: %s", valstr); in setParameters()
717 if ((valstr = params.get(TICameraParameters::KEY_GLBCE)) != NULL) { in setParameters()
720 CAMHAL_LOGDB("GLBCE %s", valstr); in setParameters()
721 mParameters.set(TICameraParameters::KEY_GLBCE, valstr); in setParameters()
722 } else if (strcmp(valstr, android::CameraParameters::TRUE) == 0) { in setParameters()
723 CAMHAL_LOGEB("ERROR: Invalid GLBCE: %s", valstr); in setParameters()
734 if ( (valstr = params.get(TICameraParameters::KEY_AUTOCONVERGENCE_MODE)) != NULL ) { in setParameters()
735 CAMHAL_LOGDB("AutoConvergence mode set = %s", valstr); in setParameters()
736 mParameters.set(TICameraParameters::KEY_AUTOCONVERGENCE_MODE, valstr); in setParameters()
739 if ( (valstr = params.get(TICameraParameters::KEY_MANUAL_CONVERGENCE)) != NULL ) { in setParameters()
740 int manualConvergence = (int)strtol(valstr, 0, 0); in setParameters()
748 mParameters.set(TICameraParameters::KEY_MANUAL_CONVERGENCE, valstr); in setParameters()
752 … if((valstr = params.get(TICameraParameters::KEY_MECHANICAL_MISALIGNMENT_CORRECTION)) != NULL) { in setParameters()
755 CAMHAL_LOGDB("Mechanical Mialignment Correction is %s", valstr); in setParameters()
756 mParameters.set(TICameraParameters::KEY_MECHANICAL_MISALIGNMENT_CORRECTION, valstr); in setParameters()
762 if ((valstr = params.get(TICameraParameters::KEY_EXPOSURE_MODE)) != NULL) { in setParameters()
763 …if (isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_EXPOSURE_MODES))) { in setParameters()
764 CAMHAL_LOGDB("Exposure mode set = %s", valstr); in setParameters()
765 mParameters.set(TICameraParameters::KEY_EXPOSURE_MODE, valstr); in setParameters()
766 if (!strcmp(valstr, TICameraParameters::EXPOSURE_MODE_MANUAL)) { in setParameters()
768 if ((valstr = params.get(TICameraParameters::KEY_MANUAL_EXPOSURE)) != NULL) { in setParameters()
773 "setting minimum supported value", valstr); in setParameters()
774 … valstr = mParameters.get(TICameraParameters::KEY_SUPPORTED_MANUAL_EXPOSURE_MIN); in setParameters()
776 CAMHAL_LOGDB("Manual Exposure = %s", valstr); in setParameters()
777 mParameters.set(TICameraParameters::KEY_MANUAL_EXPOSURE, valstr); in setParameters()
779 … if ((valstr = params.get(TICameraParameters::KEY_MANUAL_EXPOSURE_RIGHT)) != NULL) { in setParameters()
784 "setting minimum supported value", valstr); in setParameters()
785 … valstr = mParameters.get(TICameraParameters::KEY_SUPPORTED_MANUAL_EXPOSURE_MIN); in setParameters()
787 CAMHAL_LOGDB("Manual Exposure right = %s", valstr); in setParameters()
788 mParameters.set(TICameraParameters::KEY_MANUAL_EXPOSURE_RIGHT, valstr); in setParameters()
790 if ((valstr = params.get(TICameraParameters::KEY_MANUAL_GAIN_ISO)) != NULL) { in setParameters()
795 "setting minimum supported value", valstr); in setParameters()
796 … valstr = mParameters.get(TICameraParameters::KEY_SUPPORTED_MANUAL_GAIN_ISO_MIN); in setParameters()
798 CAMHAL_LOGDB("Manual Gain = %s", valstr); in setParameters()
799 mParameters.set(TICameraParameters::KEY_MANUAL_GAIN_ISO, valstr); in setParameters()
801 … if ((valstr = params.get(TICameraParameters::KEY_MANUAL_GAIN_ISO_RIGHT)) != NULL) { in setParameters()
806 "setting minimum supported value", valstr); in setParameters()
807 … valstr = mParameters.get(TICameraParameters::KEY_SUPPORTED_MANUAL_GAIN_ISO_MIN); in setParameters()
809 CAMHAL_LOGDB("Manual Gain right = %s", valstr); in setParameters()
810 mParameters.set(TICameraParameters::KEY_MANUAL_GAIN_ISO_RIGHT, valstr); in setParameters()
814 CAMHAL_LOGEB("ERROR: Invalid Exposure mode = %s", valstr); in setParameters()
820 if ((valstr = params.get(android::CameraParameters::KEY_WHITE_BALANCE)) != NULL) { in setParameters()
821 …if ( isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_WHITE_BALANCE))) { in setParameters()
822 CAMHAL_LOGDB("White balance set %s", valstr); in setParameters()
823 mParameters.set(android::CameraParameters::KEY_WHITE_BALANCE, valstr); in setParameters()
825 CAMHAL_LOGEB("ERROR: Invalid white balance = %s", valstr); in setParameters()
831 if ((valstr = params.get(TICameraParameters::KEY_CONTRAST)) != NULL) { in setParameters()
833 CAMHAL_LOGDB("Contrast set %s", valstr); in setParameters()
834 mParameters.set(TICameraParameters::KEY_CONTRAST, valstr); in setParameters()
836 CAMHAL_LOGEB("ERROR: Invalid Contrast = %s", valstr); in setParameters()
841 if ((valstr =params.get(TICameraParameters::KEY_SHARPNESS)) != NULL) { in setParameters()
843 CAMHAL_LOGDB("Sharpness set %s", valstr); in setParameters()
844 mParameters.set(TICameraParameters::KEY_SHARPNESS, valstr); in setParameters()
846 CAMHAL_LOGEB("ERROR: Invalid Sharpness = %s", valstr); in setParameters()
851 if ((valstr = params.get(TICameraParameters::KEY_SATURATION)) != NULL) { in setParameters()
853 CAMHAL_LOGDB("Saturation set %s", valstr); in setParameters()
854 mParameters.set(TICameraParameters::KEY_SATURATION, valstr); in setParameters()
856 CAMHAL_LOGEB("ERROR: Invalid Saturation = %s", valstr); in setParameters()
861 if ((valstr = params.get(TICameraParameters::KEY_BRIGHTNESS)) != NULL) { in setParameters()
863 CAMHAL_LOGDB("Brightness set %s", valstr); in setParameters()
864 mParameters.set(TICameraParameters::KEY_BRIGHTNESS, valstr); in setParameters()
866 CAMHAL_LOGEB("ERROR: Invalid Brightness = %s", valstr); in setParameters()
872 if ((valstr = params.get(android::CameraParameters::KEY_ANTIBANDING)) != NULL) { in setParameters()
873 … if (isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_ANTIBANDING))) { in setParameters()
874 CAMHAL_LOGDB("Antibanding set %s", valstr); in setParameters()
875 mParameters.set(android::CameraParameters::KEY_ANTIBANDING, valstr); in setParameters()
877 CAMHAL_LOGEB("ERROR: Invalid Antibanding = %s", valstr); in setParameters()
883 if ((valstr = params.get(TICameraParameters::KEY_ISO)) != NULL) { in setParameters()
884 … if (isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_ISO_VALUES))) { in setParameters()
885 CAMHAL_LOGDB("ISO set %s", valstr); in setParameters()
886 mParameters.set(TICameraParameters::KEY_ISO, valstr); in setParameters()
888 CAMHAL_LOGEB("ERROR: Invalid ISO = %s", valstr); in setParameters()
894 if( (valstr = params.get(android::CameraParameters::KEY_FOCUS_AREAS)) != NULL ) in setParameters()
897 mParameters.set(android::CameraParameters::KEY_FOCUS_AREAS, valstr); in setParameters()
901 if( (valstr = params.get(TICameraParameters::KEY_MEASUREMENT_ENABLE)) != NULL ) in setParameters()
903 CAMHAL_LOGDB("Measurements set to %s", valstr); in setParameters()
904 mParameters.set(TICameraParameters::KEY_MEASUREMENT_ENABLE, valstr); in setParameters()
906 if (strcmp(valstr, android::CameraParameters::TRUE) == 0) in setParameters()
910 else if (strcmp(valstr, android::CameraParameters::FALSE) == 0) in setParameters()
922 if( (valstr = params.get(android::CameraParameters::KEY_EXPOSURE_COMPENSATION)) != NULL) in setParameters()
925 mParameters.set(android::CameraParameters::KEY_EXPOSURE_COMPENSATION, valstr); in setParameters()
928 if ((valstr = params.get(android::CameraParameters::KEY_SCENE_MODE)) != NULL) { in setParameters()
929 … if (isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_SCENE_MODES))) { in setParameters()
930 CAMHAL_LOGDB("Scene mode set %s", valstr); in setParameters()
931 doesSetParameterNeedUpdate(valstr, in setParameters()
934 mParameters.set(android::CameraParameters::KEY_SCENE_MODE, valstr); in setParameters()
936 CAMHAL_LOGEB("ERROR: Invalid Scene mode = %s", valstr); in setParameters()
941 if ((valstr = params.get(android::CameraParameters::KEY_FLASH_MODE)) != NULL) { in setParameters()
942 … if (isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_FLASH_MODES))) { in setParameters()
943 CAMHAL_LOGDB("Flash mode set %s", valstr); in setParameters()
944 mParameters.set(android::CameraParameters::KEY_FLASH_MODE, valstr); in setParameters()
946 CAMHAL_LOGEB("ERROR: Invalid Flash mode = %s", valstr); in setParameters()
951 if ((valstr = params.get(android::CameraParameters::KEY_EFFECT)) != NULL) { in setParameters()
952 … if (isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_EFFECTS))) { in setParameters()
953 CAMHAL_LOGDB("Effect set %s", valstr); in setParameters()
954 mParameters.set(android::CameraParameters::KEY_EFFECT, valstr); in setParameters()
956 CAMHAL_LOGEB("ERROR: Invalid Effect = %s", valstr); in setParameters()
991 if( (valstr = params.get(android::CameraParameters::KEY_GPS_LATITUDE)) != NULL ) in setParameters()
994 mParameters.set(android::CameraParameters::KEY_GPS_LATITUDE, valstr); in setParameters()
999 if( (valstr = params.get(android::CameraParameters::KEY_GPS_LONGITUDE)) != NULL ) in setParameters()
1002 mParameters.set(android::CameraParameters::KEY_GPS_LONGITUDE, valstr); in setParameters()
1007 if( (valstr = params.get(android::CameraParameters::KEY_GPS_ALTITUDE)) != NULL ) in setParameters()
1010 mParameters.set(android::CameraParameters::KEY_GPS_ALTITUDE, valstr); in setParameters()
1015 if( (valstr = params.get(android::CameraParameters::KEY_GPS_TIMESTAMP)) != NULL ) in setParameters()
1018 mParameters.set(android::CameraParameters::KEY_GPS_TIMESTAMP, valstr); in setParameters()
1023 if( (valstr = params.get(TICameraParameters::KEY_GPS_DATESTAMP)) != NULL ) in setParameters()
1025 CAMHAL_LOGDB("GPS datestamp set %s", valstr); in setParameters()
1026 mParameters.set(TICameraParameters::KEY_GPS_DATESTAMP, valstr); in setParameters()
1031 if( (valstr = params.get(android::CameraParameters::KEY_GPS_PROCESSING_METHOD)) != NULL ) in setParameters()
1034 mParameters.set(android::CameraParameters::KEY_GPS_PROCESSING_METHOD, valstr); in setParameters()
1039 if( (valstr = params.get(TICameraParameters::KEY_GPS_MAPDATUM )) != NULL ) in setParameters()
1041 CAMHAL_LOGDB("GPS MAPDATUM set %s", valstr); in setParameters()
1042 mParameters.set(TICameraParameters::KEY_GPS_MAPDATUM, valstr); in setParameters()
1047 if( (valstr = params.get(TICameraParameters::KEY_GPS_VERSION)) != NULL ) in setParameters()
1049 CAMHAL_LOGDB("GPS MAPDATUM set %s", valstr); in setParameters()
1050 mParameters.set(TICameraParameters::KEY_GPS_VERSION, valstr); in setParameters()
1055 if( (valstr = params.get(TICameraParameters::KEY_EXIF_MODEL)) != NULL ) in setParameters()
1057 CAMHAL_LOGDB("EXIF Model set %s", valstr); in setParameters()
1058 mParameters.set(TICameraParameters::KEY_EXIF_MODEL, valstr); in setParameters()
1061 if( (valstr = params.get(TICameraParameters::KEY_EXIF_MAKE)) != NULL ) in setParameters()
1063 CAMHAL_LOGDB("EXIF Make set %s", valstr); in setParameters()
1064 mParameters.set(TICameraParameters::KEY_EXIF_MAKE, valstr); in setParameters()
1068 if( (valstr = params.get(TICameraParameters::KEY_EXP_BRACKETING_RANGE)) != NULL ) in setParameters()
1071 mParameters.set(TICameraParameters::KEY_EXP_BRACKETING_RANGE, valstr); in setParameters()
1074 else if ((valstr = params.get(TICameraParameters::KEY_EXP_GAIN_BRACKETING_RANGE)) != NULL) { in setParameters()
1076 mParameters.set(TICameraParameters::KEY_EXP_GAIN_BRACKETING_RANGE, valstr); in setParameters()
1083 if( (valstr = params.get(TICameraParameters::KEY_ZOOM_BRACKETING_RANGE)) != NULL ) { in setParameters()
1084 CAMHAL_LOGDB("Zoom Bracketing range %s", valstr); in setParameters()
1085 mParameters.set(TICameraParameters::KEY_ZOOM_BRACKETING_RANGE, valstr); in setParameters()
1091 if ((valstr = params.get(android::CameraParameters::KEY_ZOOM)) != NULL ) { in setParameters()
1092 varint = atoi(valstr); in setParameters()
1095 doesSetParameterNeedUpdate(valstr, in setParameters()
1098 mParameters.set(android::CameraParameters::KEY_ZOOM, valstr); in setParameters()
1100 CAMHAL_LOGEB("ERROR: Invalid Zoom: %s", valstr); in setParameters()
1105 if( (valstr = params.get(android::CameraParameters::KEY_AUTO_EXPOSURE_LOCK)) != NULL ) in setParameters()
1107 CAMHAL_LOGDB("Auto Exposure Lock set %s", valstr); in setParameters()
1108 doesSetParameterNeedUpdate(valstr, in setParameters()
1111 mParameters.set(android::CameraParameters::KEY_AUTO_EXPOSURE_LOCK, valstr); in setParameters()
1114 if( (valstr = params.get(android::CameraParameters::KEY_AUTO_WHITEBALANCE_LOCK)) != NULL ) in setParameters()
1116 CAMHAL_LOGDB("Auto WhiteBalance Lock set %s", valstr); in setParameters()
1117 doesSetParameterNeedUpdate(valstr, in setParameters()
1120 mParameters.set(android::CameraParameters::KEY_AUTO_WHITEBALANCE_LOCK, valstr); in setParameters()
1122 if( (valstr = params.get(android::CameraParameters::KEY_METERING_AREAS)) != NULL ) in setParameters()
1125 mParameters.set(android::CameraParameters::KEY_METERING_AREAS, valstr); in setParameters()
1128 if( (valstr = params.get(TICameraParameters::RAW_WIDTH)) != NULL ) { in setParameters()
1130 mParameters.set(TICameraParameters::RAW_WIDTH, valstr); in setParameters()
1133 if( (valstr = params.get(TICameraParameters::RAW_HEIGHT)) != NULL ) { in setParameters()
1135 mParameters.set(TICameraParameters::RAW_HEIGHT, valstr); in setParameters()
1139 if( (valstr = params.get(TICameraParameters::KEY_ALGO_EXTERNAL_GAMMA)) != NULL ) in setParameters()
1141 CAMHAL_LOGDB("External Gamma set %s", valstr); in setParameters()
1142 mParameters.set(TICameraParameters::KEY_ALGO_EXTERNAL_GAMMA, valstr); in setParameters()
1145 if( (valstr = params.get(TICameraParameters::KEY_ALGO_NSF1)) != NULL ) in setParameters()
1147 CAMHAL_LOGDB("NSF1 set %s", valstr); in setParameters()
1148 mParameters.set(TICameraParameters::KEY_ALGO_NSF1, valstr); in setParameters()
1151 if( (valstr = params.get(TICameraParameters::KEY_ALGO_NSF2)) != NULL ) in setParameters()
1153 CAMHAL_LOGDB("NSF2 set %s", valstr); in setParameters()
1154 mParameters.set(TICameraParameters::KEY_ALGO_NSF2, valstr); in setParameters()
1157 if( (valstr = params.get(TICameraParameters::KEY_ALGO_SHARPENING)) != NULL ) in setParameters()
1159 CAMHAL_LOGDB("Sharpening set %s", valstr); in setParameters()
1160 mParameters.set(TICameraParameters::KEY_ALGO_SHARPENING, valstr); in setParameters()
1163 if( (valstr = params.get(TICameraParameters::KEY_ALGO_THREELINCOLORMAP)) != NULL ) in setParameters()
1165 CAMHAL_LOGDB("Color Conversion set %s", valstr); in setParameters()
1166 mParameters.set(TICameraParameters::KEY_ALGO_THREELINCOLORMAP, valstr); in setParameters()
1169 if( (valstr = params.get(TICameraParameters::KEY_ALGO_GIC)) != NULL ) in setParameters()
1171 CAMHAL_LOGDB("Green Inballance Correction set %s", valstr); in setParameters()
1172 mParameters.set(TICameraParameters::KEY_ALGO_GIC, valstr); in setParameters()
1175 if( (valstr = params.get(TICameraParameters::KEY_GAMMA_TABLE)) != NULL ) in setParameters()
1177 CAMHAL_LOGDB("Manual gamma table set %s", valstr); in setParameters()
1178 mParameters.set(TICameraParameters::KEY_GAMMA_TABLE, valstr); in setParameters()
1205 if( ( (valstr = params.get(TICameraParameters::KEY_TEMP_BRACKETING)) != NULL) && in setParameters()
1206 ( strcmp(valstr, android::CameraParameters::TRUE) == 0 )) { in setParameters()
1213 adapterParams.set(TICameraParameters::KEY_TEMP_BRACKETING, valstr); in setParameters()
1214 mParameters.set(TICameraParameters::KEY_TEMP_BRACKETING, valstr); in setParameters()
1215 } else if ( ( (valstr = params.get(TICameraParameters::KEY_TEMP_BRACKETING)) != NULL ) && in setParameters()
1216 ( strcmp(valstr, android::CameraParameters::FALSE) == 0 )) { in setParameters()
1219 adapterParams.set(TICameraParameters::KEY_TEMP_BRACKETING, valstr); in setParameters()
1220 mParameters.set(TICameraParameters::KEY_TEMP_BRACKETING, valstr); in setParameters()
1258 if( ( (valstr = params.get(TICameraParameters::KEY_SHUTTER_ENABLE)) != NULL ) && in setParameters()
1259 ( strcmp(valstr, android::CameraParameters::TRUE) == 0 )) in setParameters()
1265 mParameters.set(TICameraParameters::KEY_SHUTTER_ENABLE, valstr); in setParameters()
1267 else if ( ( (valstr = params.get(TICameraParameters::KEY_SHUTTER_ENABLE)) != NULL ) && in setParameters()
1268 ( strcmp(valstr, android::CameraParameters::FALSE) == 0 )) in setParameters()
1274 mParameters.set(TICameraParameters::KEY_SHUTTER_ENABLE, valstr); in setParameters()
2558 const char *valstr = NULL; in startRecording() local
2582 if ( ((valstr = mParameters.get(android::CameraParameters::KEY_FOCUS_MODE)) != NULL) && in startRecording()
2583 (strcmp(valstr, android::CameraParameters::FOCUS_MODE_CONTINUOUS_PICTURE) == 0) ){ in startRecording()
2588 valstr = mParameters.get(android::CameraParameters::KEY_RECORDING_HINT); in startRecording()
2590 (!valstr || (valstr && (strcmp(valstr, android::CameraParameters::TRUE) != 0))) ) { in startRecording()
2665 const char *valstr = NULL; in setVideoModeParameters() local
2672 valstr = mParameters.get(TICameraParameters::KEY_CAP_MODE); in setVideoModeParameters()
2673 if ( (valstr == NULL) || in setVideoModeParameters()
2674 … ( (valstr != NULL) && ( (strcmp(valstr, (const char *) TICameraParameters::VIDEO_MODE) != 0) && in setVideoModeParameters()
2675 … (strcmp(valstr, (const char *) TICameraParameters::VIDEO_MODE_HQ ) != 0) ) ) ) { in setVideoModeParameters()
2686 valstr = mParameters.get(android::CameraParameters::KEY_VIDEO_STABILIZATION); in setVideoModeParameters()
2688 if ((valstr != NULL) && in setVideoModeParameters()
2689 strcmp(valstr, valstrRemote) != 0) { in setVideoModeParameters()
2707 valstr = mParameters.get(TICameraParameters::KEY_VNF); in setVideoModeParameters()
2708 if (valstr && strcmp(valstr, valstrRemote) != 0) { in setVideoModeParameters()
2720 valstr = mParameters.get(android::CameraParameters::KEY_VIDEO_STABILIZATION); in setVideoModeParameters()
2721 if (valstr && (strcmp(valstr, android::CameraParameters::TRUE) == 0) && (w == 1920)) { in setVideoModeParameters()
2747 const char *valstr = NULL; in resetVideoModeParameters() local
2759 valstr = mParameters.get(TICameraParameters::KEY_CAP_MODE); in resetVideoModeParameters()
2760 if ((valstr != NULL) && (strcmp(valstr, TICameraParameters::VIDEO_MODE) == 0)) { in resetVideoModeParameters()
3191 const char *valstr = NULL; in __takePicture() local
3218 valstr = mParameters.get(TICameraParameters::KEY_CAP_MODE); in __takePicture()
3220 isCPCamMode = valstr && !strcmp(valstr, TICameraParameters::CP_CAM_MODE); in __takePicture()
3235 (valstr && ( strcmp(valstr, TICameraParameters::VIDEO_MODE) && in __takePicture()
3236 strcmp(valstr, TICameraParameters::VIDEO_MODE_HQ ) ) ) ) { in __takePicture()
3560 const char * valstr = NULL; in getParameters() local
3569 if ( (valstr = mParameters.get(TICameraParameters::KEY_S3D_CAP_FRAME_LAYOUT)) != NULL ) { in getParameters()
3570 if (!strcmp(TICameraParameters::S3D_TB_FULL, valstr)) { in getParameters()
3572 } else if (!strcmp(TICameraParameters::S3D_SS_FULL, valstr)) { in getParameters()
3574 } else if ((!strcmp(TICameraParameters::S3D_TB_SUBSAMPLED, valstr)) in getParameters()
3575 || (!strcmp(TICameraParameters::S3D_SS_SUBSAMPLED, valstr))) { in getParameters()
3580 if ( (valstr = mParameters.get(TICameraParameters::KEY_S3D_PRV_FRAME_LAYOUT)) != NULL ) { in getParameters()
3581 if (!strcmp(TICameraParameters::S3D_TB_FULL, valstr)) { in getParameters()
3583 } else if (!strcmp(TICameraParameters::S3D_SS_FULL, valstr)) { in getParameters()
3585 } else if ((!strcmp(TICameraParameters::S3D_TB_SUBSAMPLED, valstr)) in getParameters()
3586 || (!strcmp(TICameraParameters::S3D_SS_SUBSAMPLED, valstr))) { in getParameters()
3594 valstr = mParameters.get(android::CameraParameters::KEY_RECORDING_HINT); in getParameters()
3595 if(valstr != NULL) in getParameters()
3597 if(strcmp(valstr, android::CameraParameters::TRUE) == 0) in getParameters()
4461 const char *valstr; in initDefaultParameters() local