Пример #1
0
 @Override
 public void onFocusModeChanged(int id) {
   focusMode = FocusMode.getFocusModeById(id);
   cameraPreview.setFocusMode(focusMode);
   if (paramsChangedListener != null) {
     paramsChangedListener.onFocusModeChanged(id);
   }
 }
Пример #2
0
 @Override
 public void onHDRChanged(int id) {
   hdrMode = HDRMode.getHDRModeById(id);
   setHDRMode(parameters, hdrMode);
   camera.setParameters(parameters);
   if (paramsChangedListener != null) {
     paramsChangedListener.onHDRChanged(id);
   }
 }
Пример #3
0
 @Override
 public void onQualityChanged(int id) {
   quality = Quality.getQualityById(id);
   setPictureSize(parameters, quality, ratio);
   camera.setParameters(parameters);
   if (paramsChangedListener != null) {
     paramsChangedListener.onQualityChanged(id);
   }
 }
Пример #4
0
 @Override
 public void onRatioChanged(int id) {
   ratio = Ratio.getRatioById(id);
   setPreviewSize(parameters, ratio);
   setPictureSize(parameters, quality, ratio);
   camera.setParameters(parameters);
   setPreviewContainerSize(mScreenWidth, mScreenHeight, ratio);
   if (paramsChangedListener != null) {
     paramsChangedListener.onRatioChanged(id);
   }
 }
Пример #5
0
 @Override
 public void onFlashModeChanged(int id) {
   if (paramsChangedListener != null) {
     paramsChangedListener.onFlashModeChanged(id);
   }
 }