コード例 #1
0
 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);
 }
コード例 #2
0
 static {
   try {
     System.loadLibrary(Ola_JniLabrary.OLA_JNI_LIB);
   } catch (SecurityException se) {
     CamLog.i(TAG, "SecurityException", se);
   } catch (UnsatisfiedLinkError ule) {
     CamLog.i(TAG, "UnsatisfiedLinkError", ule);
   } finally {
     CamLog.i(TAG, "OlaBitmapGraphicsJNI-end");
   }
 }