summaryrefslogtreecommitdiffstats
path: root/gallerycommon/src/com/android
diff options
context:
space:
mode:
authorztenghui <ztenghui@google.com>2013-04-08 14:37:53 -0700
committerztenghui <ztenghui@google.com>2013-04-10 11:09:48 -0700
commitdca875bd0bc713c809e319ddb0adc3bab2d080a6 (patch)
treeb6cbd43fe966802c4fec183a9a94e24695d8939b /gallerycommon/src/com/android
parent2f81a0fe104d8806308dc4c6056090206f13ba84 (diff)
downloadandroid_packages_apps_Snap-dca875bd0bc713c809e319ddb0adc3bab2d080a6.tar.gz
android_packages_apps_Snap-dca875bd0bc713c809e319ddb0adc3bab2d080a6.tar.bz2
android_packages_apps_Snap-dca875bd0bc713c809e319ddb0adc3bab2d080a6.zip
Use MediaMuxer for the video trim and mute.
bug:8548085 Change-Id: I55955285ee141ebab6437950a154280cc5fefcc0
Diffstat (limited to 'gallerycommon/src/com/android')
-rw-r--r--gallerycommon/src/com/android/gallery3d/common/ApiHelper.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
index b0b1fe070..864e1305f 100644
--- a/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
+++ b/gallerycommon/src/com/android/gallery3d/common/ApiHelper.java
@@ -37,6 +37,7 @@ public class ApiHelper {
public static final int ICE_CREAM_SANDWICH_MR1 = 15;
public static final int JELLY_BEAN = 16;
public static final int JELLY_BEAN_MR1 = 17;
+ public static final int JELLY_BEAN_MR2 = 18;
}
public static final boolean AT_LEAST_16 = Build.VERSION.SDK_INT >= 16;
@@ -188,6 +189,9 @@ public class ApiHelper {
public static final boolean HAS_CANCELLATION_SIGNAL =
Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN;
+ public static final boolean HAS_MEDIA_MUXER =
+ Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR2;
+
public static int getIntFieldIfExists(Class<?> klass, String fieldName,
Class<?> obj, int defaultVal) {
try {