summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/VideoModule.java
diff options
context:
space:
mode:
authorWeijie Wang <weijiew@codeaurora.org>2017-07-28 20:17:48 +0800
committerWeijie Wang <weijiew@codeaurora.org>2017-07-28 20:17:48 +0800
commit1f29324d0fb0faa995513144132f39c465ebf444 (patch)
treee4fd5d6ed31465cfb26fba50cb3e123b74489a63 /src/com/android/camera/VideoModule.java
parent5fdec19365d6c947b567c5ec72585e2d30f1f2fb (diff)
downloadandroid_packages_apps_Snap-1f29324d0fb0faa995513144132f39c465ebf444.tar.gz
android_packages_apps_Snap-1f29324d0fb0faa995513144132f39c465ebf444.tar.bz2
android_packages_apps_Snap-1f29324d0fb0faa995513144132f39c465ebf444.zip
SnapdragonCamera: Rename property
Rename proprerty Change-Id: I1f1da2d46bde3221e265934e31897ad358c631f2
Diffstat (limited to 'src/com/android/camera/VideoModule.java')
-rw-r--r--src/com/android/camera/VideoModule.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index f0e7e1c25..ed9bdaed6 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -69,6 +69,7 @@ import com.android.camera.ui.RotateTextToast;
import com.android.camera.util.AccessibilityUtils;
import com.android.camera.util.ApiHelper;
import com.android.camera.util.CameraUtil;
+import com.android.camera.util.PersistUtil;
import com.android.camera.util.UsageStatistics;
import com.android.camera.PhotoModule;
@@ -2249,9 +2250,9 @@ public class VideoModule implements CameraModule,
//value: 1 - FLIP_MODE_H
//value: 2 - FLIP_MODE_V
//value: 3 - FLIP_MODE_VH
- int preview_flip_value = SystemProperties.getInt("debug.camera.preview.flip", 0);
- int video_flip_value = SystemProperties.getInt("debug.camera.video.flip", 0);
- int picture_flip_value = SystemProperties.getInt("debug.camera.picture.flip", 0);
+ int preview_flip_value = PersistUtil.getPreviewFlip();
+ int video_flip_value = PersistUtil.getVideoFlip();
+ int picture_flip_value = PersistUtil.getPictureFlip();
int rotation = CameraUtil.getJpegRotation(mCameraId, mOrientation);
mParameters.setRotation(rotation);
if (rotation == 90 || rotation == 270) {
@@ -2411,9 +2412,8 @@ public class VideoModule implements CameraModule,
mUnsupportedHFRVideoCodec = false;
mUnsupportedHSRVideoSize = false;
// To set preview format as YV12 , run command
- // "adb shell setprop "debug.camera.yv12" true"
- String yv12formatset = SystemProperties.get("debug.camera.yv12");
- if(yv12formatset.equals("true")) {
+ // "adb shell setprop "debug.camera.yv12 true
+ if( PersistUtil.isYv12FormatEnable() ) {
Log.v(TAG, "preview format set to YV12");
mParameters.setPreviewFormat (ImageFormat.YV12);
}