summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/util
diff options
context:
space:
mode:
authormingwax <mingwax@codeaurora.org>2017-02-15 17:46:55 +0800
committermingwax <mingwax@codeaurora.org>2017-02-22 17:59:34 +0800
commit98a248287f74d32a5b702b2589957304512b261d (patch)
tree3d09cd2b47e698619ac3fad304ca443a9ce12982 /src/com/android/camera/util
parent3196565b3091f36a00428c0509c2bfd959c84b85 (diff)
downloadandroid_packages_apps_Snap-98a248287f74d32a5b702b2589957304512b261d.tar.gz
android_packages_apps_Snap-98a248287f74d32a5b702b2589957304512b261d.tar.bz2
android_packages_apps_Snap-98a248287f74d32a5b702b2589957304512b261d.zip
SnapdragonCamera: Fix a green line in BestPicture and Ubifocus
When mStride > mWidth, use the whole yuv bytebuffer to save JPG. Add properties to control whether to print log. CRs-Fixed: 1101620 Change-Id: I18cd27de8be542fc9440be6071ee55149b598ac5
Diffstat (limited to 'src/com/android/camera/util')
-rw-r--r--src/com/android/camera/util/PersistUtil.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/camera/util/PersistUtil.java b/src/com/android/camera/util/PersistUtil.java
index cce0e20d3..37bf6ce11 100644
--- a/src/com/android/camera/util/PersistUtil.java
+++ b/src/com/android/camera/util/PersistUtil.java
@@ -44,6 +44,12 @@ public class PersistUtil {
SystemProperties.getBoolean("persist.camera.camera2", false);
private static final boolean PERSIST_CAMERA_ZSL =
SystemProperties.getBoolean("persist.camera.zsl.disabled", false);
+ private static final int PERSIST_CAMERA2_DEBUG =
+ SystemProperties.getInt("persist.camera2.debug", 0);
+
+ public static final int CAMERA2_DEBUG_DUMP_IMAGE = 1;
+ public static final int CAMERA2_DEBUG_DUMP_LOG = 2;
+ public static final int CAMERA2_DEBUG_DUMP_ALL = 100;
public static int getMemoryLimit() {
return PERSIST_MEMORY_LIMIT;
@@ -68,4 +74,8 @@ public class PersistUtil {
public static boolean getCameraZSLDisabled() {
return PERSIST_CAMERA_ZSL;
}
+
+ public static int getCamera2Debug() {
+ return PERSIST_CAMERA2_DEBUG;
+ }
}