public void execute(LGParameters lgParameters, Object arg) { CamLog.d(FaceDetector.TAG, "SetCameraColorEffect"); if (CameraConstants.TYPE_PREFERENCE_NOT_FOUND.equals( this.mGet.getSettingValue(Setting.KEY_CAMERA_COLOREFFECT))) { CamLog.d(FaceDetector.TAG, "Color effect doesn't supported. Return."); return; } String olaValue = lgParameters.getParameters().getColorEffect(); String newValue = this.mGet.getSettingValue(Setting.KEY_CAMERA_COLOREFFECT); CamLog.i(FaceDetector.TAG, "oldValue : " + olaValue + ", newValue : " + newValue); if (!this.mGet.getSettingValue(Setting.KEY_CAMERA_COLOREFFECT).equals(Setting.HELP_OTHER)) { if (!this.mGet .getSettingValue(Setting.KEY_CAMERA_WHITEBALANCE) .equals(LGT_Limit.ISP_AUTOMODE_AUTO)) { this.mGet.setSetting(Setting.KEY_CAMERA_WHITEBALANCE, LGT_Limit.ISP_AUTOMODE_AUTO); lgParameters.getParameters().setWhiteBalance(LGT_Limit.ISP_AUTOMODE_AUTO); this.mGet.toast((int) R.string.note_white_balance_change); this.mGet.setQuickFunctionControllerAllMenuIcons(); } this.mGet.checkSceneMode( lgParameters, true, this.mGet.getString(R.string.note_shot_mode_change_normal)); checkFocusMode(lgParameters); } if (!(olaValue == null || olaValue.equals(newValue))) { CamLog.i(FaceDetector.TAG, "color effect set to " + newValue); this.mGet.setSetting(Setting.KEY_CAMERA_COLOREFFECT, newValue); lgParameters.getParameters().setColorEffect(newValue); } this.mGet.setMenuEnableForSceneMode(2); }
private void checkFocusMode(LGParameters lgParameters) { if (this.mGet.getApplicationMode() == 0 && this.mGet.getCameraId() == 0 && Setting.HELP_FACE_TRACKING_LED.equals(this.mGet.getSettingValue(Setting.KEY_FOCUS))) { ListPreference pref = this.mGet.findPreference(Setting.KEY_FOCUS); if (pref != null) { this.mGet.setSetting(Setting.KEY_FOCUS, pref.getDefaultValue()); } this.mGet.stopFaceDetection(); lgParameters.getParameters().set(CameraConstants.FOCUS_MODE_MANUAL, 0); if (this.mGet.isIndicatorControllerInitialized()) { this.mGet.runOnUiThread( new Runnable() { public void run() { SetCameraColorEffect.this.mGet.removePostRunnable(this); SetCameraColorEffect.this.mGet.showFocus(); SetCameraColorEffect.this.mGet.updateFocusIndicator(); SetCameraColorEffect.this.mGet.showManualFocusController(false); } }); } this.mGet.toast((int) R.string.note_focus_mode_set_to_auto); this.mGet.setQuickFunctionControllerAllMenuIcons(); } }
public void execute(LGParameters lgParameters, Object arg) { CamLog.d(FaceDetector.TAG, "SetOlaPanoramaShot"); if (!(this.mGet.getCurrentModule() instanceof PanoramaShot)) { lgParameters.getParameters().setZoom(0); this.mGet.resetZoomController(); lgParameters.getParameters().set(CameraConstants.PARAM_KEY_DUAL_RECORDER, 0); this.mGet.setModule(Module.PANORAMA_SHOT); this.mGet.setSetting(Setting.KEY_CAMERA_SHOT_MODE, CameraConstants.TYPE_SHOTMODE_PANORAMA); this.mGet.setTimerAndSceneSmartShutterEnable(lgParameters.getParameters(), true, true, false); this.mGet.runOnUiThread( new Runnable() { public void run() { SetOlaPanoramaShot.this.mGet.removePostRunnable(this); SetOlaPanoramaShot.this.mGet.setPanoramaEngine(); } }); if (!this.mGet.isReadyEngineProcessor() && !this.mGet.isPreviewOnGoing()) { this.mGet.setEngineProcessor(); } } else if (!this.mGet.isReadyEngineProcessor()) { this.mGet.setPanoramaEngine(); } }
public void execute(LGParameters lgParameters, Object arg) { if (!(this.mGet.getCurrentModule() instanceof MainBeautyShot) || !this.mGet.getEngineProcessor().checkEngineTag(FaceBeauty.ENGINE_TAG)) { lgParameters.getParameters().set(CameraConstants.PARAM_KEY_DUAL_RECORDER, 0); this.mGet.setModule(Module.MAIN_BEAUTY_SHOT); this.mGet.getEngineProcessor().setEngine(this.mGet.getFaceBeauty()); int value = 0; if (this.mGet.findPreference(Setting.KEY_BEAUTYSHOT) != null) { value = Integer.parseInt(this.mGet.getSettingValue(Setting.KEY_BEAUTYSHOT)); CamLog.e(FaceDetector.TAG, "beautyshot value : " + value); } if (value < 0) { value = 0; } this.mGet.setFaceBeutyShotParameter(value); } }