summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/util
diff options
context:
space:
mode:
authorJack Yoo <jyoo@codeaurora.org>2017-05-23 10:09:33 -0700
committerJay Wang <jaywang@codeaurora.org>2017-06-13 15:34:00 -0700
commitf245124ed851a0888dbced9b887d0db2f0135177 (patch)
treea2f4313996985f9bf627c607839f52bc46a098fa /src/com/android/camera/util
parent88560f174d803902bd9bda2f0cf5f744f0a78aa5 (diff)
downloadandroid_packages_apps_Snap-f245124ed851a0888dbced9b887d0db2f0135177.tar.gz
android_packages_apps_Snap-f245124ed851a0888dbced9b887d0db2f0135177.tar.bz2
android_packages_apps_Snap-f245124ed851a0888dbced9b887d0db2f0135177.zip
SnapdragonCamera: Changes for SDM bringup
Changes to accomodate the SDM bringup 0. Image flow change to be compatible to early version of CAMX 1. Pseudo ZSL mode to capture as configuring requires to be done all at the same time. 2. Video recording starts from the beginning as well for same reason. 3. Adding Cameracharacteristc availability check as meta is not all available yet. 4. Adding persist to selectively enable 4K Video recording in which case snapshot is disabled. The default is 1080P. Change-Id: Ib808dd2fe25398c444b220d40693a0436e4f6db5
Diffstat (limited to 'src/com/android/camera/util')
-rw-r--r--src/com/android/camera/util/PersistUtil.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/camera/util/PersistUtil.java b/src/com/android/camera/util/PersistUtil.java
index c22df6263..6c95f0be5 100644
--- a/src/com/android/camera/util/PersistUtil.java
+++ b/src/com/android/camera/util/PersistUtil.java
@@ -41,7 +41,7 @@ public class PersistUtil {
private static final int PERSIST_CAMERA_PREVIEW_SIZE =
SystemProperties.getInt("persist.camera.preview.size", 0);
private static final boolean PERSIST_CAMERA_CAMERA2 =
- SystemProperties.getBoolean("persist.camera.camera2", false);
+ SystemProperties.getBoolean("persist.camera.camera2", true);
private static final boolean PERSIST_CAMERA_ZSL =
SystemProperties.getBoolean("persist.camera.zsl.disabled", false);
private static final int PERSIST_CAMERA_CANCEL_TOUCHFOCUS_DELAY =
@@ -56,6 +56,8 @@ public class PersistUtil {
SystemProperties.get("persist.camera.stm_smooth", "0");
private static final int PERSIST_CAMERA_STILLMORE_NUM_REQUIRED_IMAGE =
SystemProperties.getInt("persist.camera.stm_img_nums", 5);
+ private static final boolean PERSIST_CAMERA_BRINGUP_4KVIDEO =
+ SystemProperties.getBoolean("persist.camera2.bringup.4kvideo", false);
public static final int CAMERA2_DEBUG_DUMP_IMAGE = 1;
public static final int CAMERA2_DEBUG_DUMP_LOG = 2;
@@ -73,6 +75,10 @@ public class PersistUtil {
return PERSIST_LONGSHOT_SHOT_LIMIT;
}
+ public static boolean getCameraBringup4KVIDEO() {
+ return PERSIST_CAMERA_BRINGUP_4KVIDEO;
+ }
+
public static int getCameraPreviewSize() {
return PERSIST_CAMERA_PREVIEW_SIZE;
}