• Home
  • Raw
  • Download

Lines Matching refs:valstr

250     const char *valstr = NULL;  in setParameters()  local
268 if ((valstr = params.getPreviewFormat()) != NULL) { in setParameters()
269 …if ( isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_PREVIEW_FORMATS))… in setParameters()
270 mParameters.setPreviewFormat(valstr); in setParameters()
278 valstr = params.get(TICameraParameters::KEY_VNF); in setParameters()
279 if ( valstr != NULL ) { in setParameters()
281 CAMHAL_LOGDB("VNF set %s", valstr); in setParameters()
284 CAMHAL_LOGEB("ERROR: Invalid VNF: %s", valstr); in setParameters()
289 if ((valstr = params.get(CameraParameters::KEY_VIDEO_STABILIZATION)) != NULL) { in setParameters()
294 CAMHAL_LOGDB("VSTAB %s",valstr); in setParameters()
295 mParameters.set(CameraParameters::KEY_VIDEO_STABILIZATION, valstr); in setParameters()
296 } else if (strcmp(valstr, CameraParameters::TRUE) == 0) { in setParameters()
297 CAMHAL_LOGEB("ERROR: Invalid VSTAB: %s", valstr); in setParameters()
307 if( (valstr = params.get(TICameraParameters::KEY_CAP_MODE)) != NULL) in setParameters()
309 CAMHAL_LOGDB("Capture mode set %s", valstr); in setParameters()
310 mParameters.set(TICameraParameters::KEY_CAP_MODE, valstr); in setParameters()
313 if ((valstr = params.get(TICameraParameters::KEY_IPP)) != NULL) { in setParameters()
314 … if (isParameterValid(valstr,mCameraProperties->get(CameraProperties::SUPPORTED_IPP_MODES))) { in setParameters()
315 CAMHAL_LOGDB("IPP mode set %s", valstr); in setParameters()
316 mParameters.set(TICameraParameters::KEY_IPP, valstr); in setParameters()
318 CAMHAL_LOGEB("ERROR: Invalid IPP mode: %s", valstr); in setParameters()
325 if((valstr = params.get(TICameraParameters::KEY_S3D2D_PREVIEW)) != NULL) in setParameters()
328 mParameters.set(TICameraParameters::KEY_S3D2D_PREVIEW, valstr); in setParameters()
331 if((valstr = params.get(TICameraParameters::KEY_AUTOCONVERGENCE)) != NULL) in setParameters()
334 mParameters.set(TICameraParameters::KEY_AUTOCONVERGENCE, valstr); in setParameters()
352 if((valstr = params.get(TICameraParameters::KEY_SENSOR_ORIENTATION)) != NULL) in setParameters()
355 mParameters.set(TICameraParameters::KEY_SENSOR_ORIENTATION, valstr); in setParameters()
405 valstr = params.get(CameraParameters::KEY_RECORDING_HINT); in setParameters()
406 if(valstr != NULL) in setParameters()
408 if(strcmp(valstr, CameraParameters::TRUE) == 0) in setParameters()
410 CAMHAL_LOGDB("Recording Hint is set to %s", valstr); in setParameters()
411 mParameters.set(CameraParameters::KEY_RECORDING_HINT, valstr); in setParameters()
433 else if(strcmp(valstr, CameraParameters::FALSE) == 0) in setParameters()
435 CAMHAL_LOGDB("Recording Hint is set to %s", valstr); in setParameters()
436 mParameters.set(CameraParameters::KEY_RECORDING_HINT, valstr); in setParameters()
458 if ((valstr = params.get(CameraParameters::KEY_FOCUS_MODE)) != NULL) { in setParameters()
459 … if (isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_FOCUS_MODES))) { in setParameters()
460 CAMHAL_LOGDB("Focus mode set %s", valstr); in setParameters()
464 if(strcmp(valstr, CameraParameters::FOCUS_MODE_CONTINUOUS_PICTURE) == 0){ in setParameters()
466 } else if (strcmp(valstr, CameraParameters::FOCUS_MODE_CONTINUOUS_VIDEO) == 0){ in setParameters()
470 mParameters.set(CameraParameters::KEY_FOCUS_MODE, valstr); in setParameters()
472 CAMHAL_LOGEB("ERROR: Invalid FOCUS mode = %s", valstr); in setParameters()
478 if ( (valstr = params.getPictureFormat()) != NULL ) { in setParameters()
479 …if (isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_PICTURE_FORMATS)))… in setParameters()
480 mParameters.setPictureFormat(valstr); in setParameters()
482 CAMHAL_LOGEB("ERROR: Invalid picture format: %s",valstr); in setParameters()
499 if ((valstr = params.get(TICameraParameters::KEY_BURST)) != NULL) { in setParameters()
501 CAMHAL_LOGDB("Burst set %s", valstr); in setParameters()
502 mParameters.set(TICameraParameters::KEY_BURST, valstr); in setParameters()
504 CAMHAL_LOGEB("ERROR: Invalid Burst value: %s",valstr); in setParameters()
512 valstr = params.get(CameraParameters::KEY_PREVIEW_FPS_RANGE); in setParameters()
515 CAMHAL_LOGVB("Passed FRR: %s, Supported FRR %s", valstr in setParameters()
522 if(!isParameterValid(valstr in setParameters()
535 if ( strcmp(valstr, mCameraProperties->get(CameraProperties::FRAMERATE_RANGE)) != 0) in setParameters()
562 valstr = mCameraProperties->get(CameraProperties::FRAMERATE_RANGE_VIDEO); in setParameters()
564 temp.set(CameraParameters::KEY_PREVIEW_FPS_RANGE, valstr); in setParameters()
568 valstr = mCameraProperties->get(CameraProperties::FRAMERATE_RANGE_IMAGE); in setParameters()
570 temp.set(CameraParameters::KEY_PREVIEW_FPS_RANGE, valstr); in setParameters()
579 CAMHAL_LOGDB("FPS Range = %s", valstr); in setParameters()
604 if( ( valstr = params.get(TICameraParameters::KEY_GBCE) ) != NULL ) in setParameters()
606 CAMHAL_LOGDB("GBCE Value = %s", valstr); in setParameters()
607 mParameters.set(TICameraParameters::KEY_GBCE, valstr); in setParameters()
610 if( ( valstr = params.get(TICameraParameters::KEY_GLBCE) ) != NULL ) in setParameters()
612 CAMHAL_LOGDB("GLBCE Value = %s", valstr); in setParameters()
613 mParameters.set(TICameraParameters::KEY_GLBCE, valstr); in setParameters()
619 if( (valstr = params.get(TICameraParameters::KEY_AUTOCONVERGENCE)) != NULL) in setParameters()
622 mParameters.set(TICameraParameters::KEY_AUTOCONVERGENCE, valstr); in setParameters()
625 if( (valstr = params.get(TICameraParameters::KEY_MANUALCONVERGENCE_VALUES)) !=NULL ) in setParameters()
628 mParameters.set(TICameraParameters::KEY_MANUALCONVERGENCE_VALUES, valstr); in setParameters()
631 if ((valstr = params.get(TICameraParameters::KEY_EXPOSURE_MODE)) != NULL) { in setParameters()
632 …if (isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_EXPOSURE_MODES))) { in setParameters()
633 CAMHAL_LOGDB("Exposure set = %s", valstr); in setParameters()
634 mParameters.set(TICameraParameters::KEY_EXPOSURE_MODE, valstr); in setParameters()
636 CAMHAL_LOGEB("ERROR: Invalid Exposure = %s", valstr); in setParameters()
643 if ((valstr = params.get(CameraParameters::KEY_WHITE_BALANCE)) != NULL) { in setParameters()
644 …if ( isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_WHITE_BALANCE))) { in setParameters()
645 CAMHAL_LOGDB("White balance set %s", valstr); in setParameters()
646 mParameters.set(CameraParameters::KEY_WHITE_BALANCE, valstr); in setParameters()
648 CAMHAL_LOGEB("ERROR: Invalid white balance = %s", valstr); in setParameters()
655 if ((valstr = params.get(TICameraParameters::KEY_CONTRAST)) != NULL) { in setParameters()
657 CAMHAL_LOGDB("Contrast set %s", valstr); in setParameters()
658 mParameters.set(TICameraParameters::KEY_CONTRAST, valstr); in setParameters()
660 CAMHAL_LOGEB("ERROR: Invalid Contrast = %s", valstr); in setParameters()
665 if ((valstr =params.get(TICameraParameters::KEY_SHARPNESS)) != NULL) { in setParameters()
667 CAMHAL_LOGDB("Sharpness set %s", valstr); in setParameters()
668 mParameters.set(TICameraParameters::KEY_SHARPNESS, valstr); in setParameters()
670 CAMHAL_LOGEB("ERROR: Invalid Sharpness = %s", valstr); in setParameters()
675 if ((valstr = params.get(TICameraParameters::KEY_SATURATION)) != NULL) { in setParameters()
677 CAMHAL_LOGDB("Saturation set %s", valstr); in setParameters()
678 mParameters.set(TICameraParameters::KEY_SATURATION, valstr); in setParameters()
680 CAMHAL_LOGEB("ERROR: Invalid Saturation = %s", valstr); in setParameters()
685 if ((valstr = params.get(TICameraParameters::KEY_BRIGHTNESS)) != NULL) { in setParameters()
687 CAMHAL_LOGDB("Brightness set %s", valstr); in setParameters()
688 mParameters.set(TICameraParameters::KEY_BRIGHTNESS, valstr); in setParameters()
690 CAMHAL_LOGEB("ERROR: Invalid Brightness = %s", valstr); in setParameters()
697 if ((valstr = params.get(CameraParameters::KEY_ANTIBANDING)) != NULL) { in setParameters()
698 … if (isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_ANTIBANDING))) { in setParameters()
699 CAMHAL_LOGDB("Antibanding set %s", valstr); in setParameters()
700 mParameters.set(CameraParameters::KEY_ANTIBANDING, valstr); in setParameters()
702 CAMHAL_LOGEB("ERROR: Invalid Antibanding = %s", valstr); in setParameters()
709 if ((valstr = params.get(TICameraParameters::KEY_ISO)) != NULL) { in setParameters()
710 … if (isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_ISO_VALUES))) { in setParameters()
711 CAMHAL_LOGDB("ISO set %s", valstr); in setParameters()
712 mParameters.set(TICameraParameters::KEY_ISO, valstr); in setParameters()
714 CAMHAL_LOGEB("ERROR: Invalid ISO = %s", valstr); in setParameters()
721 if( (valstr = params.get(CameraParameters::KEY_FOCUS_AREAS)) != NULL ) in setParameters()
723 CAMHAL_LOGDB("Focus areas position set %s",valstr); in setParameters()
724 mParameters.set(CameraParameters::KEY_FOCUS_AREAS, valstr); in setParameters()
729 if( (valstr = params.get(TICameraParameters::KEY_MEASUREMENT_ENABLE)) != NULL ) in setParameters()
732 mParameters.set(TICameraParameters::KEY_MEASUREMENT_ENABLE, valstr); in setParameters()
734 if (strcmp(valstr, (const char *) TICameraParameters::MEASUREMENT_ENABLE) == 0) in setParameters()
738 else if (strcmp(valstr, (const char *) TICameraParameters::MEASUREMENT_DISABLE) == 0) in setParameters()
751 if( (valstr = params.get(CameraParameters::KEY_EXPOSURE_COMPENSATION)) != NULL) in setParameters()
753 CAMHAL_LOGDB("Exposure compensation set %s", valstr); in setParameters()
754 mParameters.set(CameraParameters::KEY_EXPOSURE_COMPENSATION, valstr); in setParameters()
757 if ((valstr = params.get(CameraParameters::KEY_SCENE_MODE)) != NULL) { in setParameters()
758 … if (isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_SCENE_MODES))) { in setParameters()
759 CAMHAL_LOGDB("Scene mode set %s", valstr); in setParameters()
760 doesSetParameterNeedUpdate(valstr, in setParameters()
763 mParameters.set(CameraParameters::KEY_SCENE_MODE, valstr); in setParameters()
765 CAMHAL_LOGEB("ERROR: Invalid Scene mode = %s", valstr); in setParameters()
770 if ((valstr = params.get(CameraParameters::KEY_FLASH_MODE)) != NULL) { in setParameters()
771 … if (isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_FLASH_MODES))) { in setParameters()
772 CAMHAL_LOGDB("Flash mode set %s", valstr); in setParameters()
773 mParameters.set(CameraParameters::KEY_FLASH_MODE, valstr); in setParameters()
775 CAMHAL_LOGEB("ERROR: Invalid Flash mode = %s", valstr); in setParameters()
780 if ((valstr = params.get(CameraParameters::KEY_EFFECT)) != NULL) { in setParameters()
781 … if (isParameterValid(valstr, mCameraProperties->get(CameraProperties::SUPPORTED_EFFECTS))) { in setParameters()
782 CAMHAL_LOGDB("Effect set %s", valstr); in setParameters()
783 mParameters.set(CameraParameters::KEY_EFFECT, valstr); in setParameters()
785 CAMHAL_LOGEB("ERROR: Invalid Effect = %s", valstr); in setParameters()
825 if( (valstr = params.get(CameraParameters::KEY_GPS_LATITUDE)) != NULL ) in setParameters()
827 CAMHAL_LOGDB("GPS latitude set %s", valstr); in setParameters()
828 mParameters.set(CameraParameters::KEY_GPS_LATITUDE, valstr); in setParameters()
833 if( (valstr = params.get(CameraParameters::KEY_GPS_LONGITUDE)) != NULL ) in setParameters()
835 CAMHAL_LOGDB("GPS longitude set %s", valstr); in setParameters()
836 mParameters.set(CameraParameters::KEY_GPS_LONGITUDE, valstr); in setParameters()
841 if( (valstr = params.get(CameraParameters::KEY_GPS_ALTITUDE)) != NULL ) in setParameters()
843 CAMHAL_LOGDB("GPS altitude set %s", valstr); in setParameters()
844 mParameters.set(CameraParameters::KEY_GPS_ALTITUDE, valstr); in setParameters()
849 if( (valstr = params.get(CameraParameters::KEY_GPS_TIMESTAMP)) != NULL ) in setParameters()
851 CAMHAL_LOGDB("GPS timestamp set %s", valstr); in setParameters()
852 mParameters.set(CameraParameters::KEY_GPS_TIMESTAMP, valstr); in setParameters()
857 if( (valstr = params.get(TICameraParameters::KEY_GPS_DATESTAMP)) != NULL ) in setParameters()
859 CAMHAL_LOGDB("GPS datestamp set %s", valstr); in setParameters()
860 mParameters.set(TICameraParameters::KEY_GPS_DATESTAMP, valstr); in setParameters()
865 if( (valstr = params.get(CameraParameters::KEY_GPS_PROCESSING_METHOD)) != NULL ) in setParameters()
867 CAMHAL_LOGDB("GPS processing method set %s", valstr); in setParameters()
868 mParameters.set(CameraParameters::KEY_GPS_PROCESSING_METHOD, valstr); in setParameters()
873 if( (valstr = params.get(TICameraParameters::KEY_GPS_MAPDATUM )) != NULL ) in setParameters()
875 CAMHAL_LOGDB("GPS MAPDATUM set %s", valstr); in setParameters()
876 mParameters.set(TICameraParameters::KEY_GPS_MAPDATUM, valstr); in setParameters()
881 if( (valstr = params.get(TICameraParameters::KEY_GPS_VERSION)) != NULL ) in setParameters()
883 CAMHAL_LOGDB("GPS MAPDATUM set %s", valstr); in setParameters()
884 mParameters.set(TICameraParameters::KEY_GPS_VERSION, valstr); in setParameters()
889 if( (valstr = params.get(TICameraParameters::KEY_EXIF_MODEL)) != NULL ) in setParameters()
891 CAMHAL_LOGDB("EXIF Model set %s", valstr); in setParameters()
892 mParameters.set(TICameraParameters::KEY_EXIF_MODEL, valstr); in setParameters()
895 if( (valstr = params.get(TICameraParameters::KEY_EXIF_MAKE)) != NULL ) in setParameters()
897 CAMHAL_LOGDB("EXIF Make set %s", valstr); in setParameters()
898 mParameters.set(TICameraParameters::KEY_EXIF_MAKE, valstr); in setParameters()
903 if( (valstr = params.get(TICameraParameters::KEY_EXP_BRACKETING_RANGE)) != NULL ) in setParameters()
906 mParameters.set(TICameraParameters::KEY_EXP_BRACKETING_RANGE, valstr); in setParameters()
915 valstr = params.get(CameraParameters::KEY_ZOOM); in setParameters()
917 if ( valstr != NULL ) { in setParameters()
919 CAMHAL_LOGDB("Zoom set %s", valstr); in setParameters()
920 doesSetParameterNeedUpdate(valstr, in setParameters()
923 mParameters.set(CameraParameters::KEY_ZOOM, valstr); in setParameters()
925 CAMHAL_LOGEB("ERROR: Invalid Zoom: %s", valstr); in setParameters()
930 if( (valstr = params.get(CameraParameters::KEY_AUTO_EXPOSURE_LOCK)) != NULL ) in setParameters()
932 CAMHAL_LOGDB("Auto Exposure Lock set %s", valstr); in setParameters()
933 doesSetParameterNeedUpdate(valstr, in setParameters()
936 mParameters.set(CameraParameters::KEY_AUTO_EXPOSURE_LOCK, valstr); in setParameters()
939 if( (valstr = params.get(CameraParameters::KEY_AUTO_WHITEBALANCE_LOCK)) != NULL ) in setParameters()
941 CAMHAL_LOGDB("Auto WhiteBalance Lock set %s", valstr); in setParameters()
942 doesSetParameterNeedUpdate(valstr, in setParameters()
945 mParameters.set(CameraParameters::KEY_AUTO_WHITEBALANCE_LOCK, valstr); in setParameters()
947 if( (valstr = params.get(CameraParameters::KEY_METERING_AREAS)) != NULL ) in setParameters()
949 CAMHAL_LOGDB("Metering areas position set %s", valstr); in setParameters()
950 mParameters.set(CameraParameters::KEY_METERING_AREAS, valstr); in setParameters()
984 if( ( (valstr = params.get(TICameraParameters::KEY_TEMP_BRACKETING)) != NULL) && in setParameters()
985 ( strcmp(valstr, TICameraParameters::BRACKET_ENABLE) == 0 )) in setParameters()
1003 else if ( ( (valstr = params.get(TICameraParameters::KEY_TEMP_BRACKETING)) != NULL ) && in setParameters()
1004 ( strcmp(valstr, TICameraParameters::BRACKET_DISABLE) == 0 )) in setParameters()
1021 if( ( (valstr = params.get(TICameraParameters::KEY_SHUTTER_ENABLE)) != NULL ) && in setParameters()
1022 ( strcmp(valstr, TICameraParameters::SHUTTER_ENABLE) == 0 )) in setParameters()
1028 mParameters.set(TICameraParameters::KEY_SHUTTER_ENABLE, valstr); in setParameters()
1030 else if ( ( (valstr = params.get(TICameraParameters::KEY_SHUTTER_ENABLE)) != NULL ) && in setParameters()
1031 ( strcmp(valstr, TICameraParameters::SHUTTER_DISABLE) == 0 )) in setParameters()
1037 mParameters.set(TICameraParameters::KEY_SHUTTER_ENABLE, valstr); in setParameters()
1434 const char *valstr = NULL; in startPreview() local
1598 if ( (valstr = mParameters.get(TICameraParameters::KEY_S3D_SUPPORTED)) != NULL) { in startPreview()
1599 isS3d = (strcmp(valstr, "true") == 0); in startPreview()
1601 if ( (valstr = mParameters.get(TICameraParameters::KEY_S3D2D_PREVIEW)) != NULL) { in startPreview()
1602 if (strcmp(valstr, "off") == 0) in startPreview()
1840 const char *valstr = NULL; in startRecording() local
1864 if ( ((valstr = mParameters.get(CameraParameters::KEY_FOCUS_MODE)) != NULL) && in startRecording()
1865 (strcmp(valstr, CameraParameters::FOCUS_MODE_CONTINUOUS_PICTURE) == 0) ){ in startRecording()
1870 valstr = mParameters.get(CameraParameters::KEY_RECORDING_HINT); in startRecording()
1872 (!valstr || (valstr && (strcmp(valstr, CameraParameters::TRUE) != 0))) ) { in startRecording()
1943 const char *valstr = NULL; in setVideoModeParameters() local
1951 valstr = mParameters.get(TICameraParameters::KEY_CAP_MODE); in setVideoModeParameters()
1952 if ( (valstr == NULL) || in setVideoModeParameters()
1953 … ( (valstr != NULL) && (strcmp(valstr, (const char *) TICameraParameters::VIDEO_MODE) != 0) ) ) in setVideoModeParameters()
1961 valstr = mParameters.get(TICameraParameters::KEY_CAP_MODE); in setVideoModeParameters()
1962 if (strcmp(valstr, (const char *) TICameraParameters::VIDEO_MODE) == 0) { in setVideoModeParameters()
1969 valstr = mParameters.get(CameraParameters::KEY_VIDEO_STABILIZATION); in setVideoModeParameters()
1971 if ((valstr != NULL) && in setVideoModeParameters()
1972 strcmp(valstr, valstrRemote) != 0) { in setVideoModeParameters()
1990 valstr = mParameters.get(TICameraParameters::KEY_VNF); in setVideoModeParameters()
1991 if (valstr && strcmp(valstr, valstrRemote) != 0) { in setVideoModeParameters()
2000 valstr = mParameters.get(CameraParameters::KEY_VIDEO_STABILIZATION); in setVideoModeParameters()
2001 if (valstr && (strcmp(valstr, CameraParameters::TRUE) == 0) && (mPreviewWidth == 1920)) { in setVideoModeParameters()
2023 const char *valstr = NULL; in resetVideoModeParameters() local
2035 valstr = mParameters.get(TICameraParameters::KEY_CAP_MODE); in resetVideoModeParameters()
2036 if ((valstr != NULL) && (strcmp(valstr, TICameraParameters::VIDEO_MODE) == 0)) { in resetVideoModeParameters()
2058 const char *valstr = NULL; in restartPreview() local
2066 valstr = mParameters.get(TICameraParameters::KEY_CAP_MODE); in restartPreview()
2067 if(valstr != NULL) in restartPreview()
2069 if(sizeof(tmpvalstr) < (strlen(valstr)+1)) in restartPreview()
2074 strncpy(tmpvalstr, valstr, sizeof(tmpvalstr)); in restartPreview()
2474 const char *valstr = NULL; in takePicture() local
2504 valstr = mParameters.get(TICameraParameters::KEY_CAP_MODE); in takePicture()
2506 (valstr && strcmp(valstr, TICameraParameters::VIDEO_MODE)) ) { in takePicture()
2659 const char * valstr = NULL; in getParameters() local
2671 valstr = mParameters.get(CameraParameters::KEY_RECORDING_HINT); in getParameters()
2672 if(valstr != NULL) in getParameters()
2674 if(strcmp(valstr, CameraParameters::TRUE) == 0) in getParameters()