diff --git a/api/current.txt b/api/current.txt index 19274831cccb0..cb9212dbdc84d 100644 --- a/api/current.txt +++ b/api/current.txt @@ -14993,6 +14993,7 @@ package android.media { field public static final java.lang.String KEY_AAC_SBR_MODE = "aac-sbr-mode"; field public static final java.lang.String KEY_BITRATE_MODE = "bitrate-mode"; field public static final java.lang.String KEY_BIT_RATE = "bitrate"; + field public static final java.lang.String KEY_CAPTURE_RATE = "capture-rate"; field public static final java.lang.String KEY_CHANNEL_COUNT = "channel-count"; field public static final java.lang.String KEY_CHANNEL_MASK = "channel-mask"; field public static final java.lang.String KEY_COLOR_FORMAT = "color-format"; diff --git a/media/java/android/media/MediaFormat.java b/media/java/android/media/MediaFormat.java index a95348f691407..a1ccf6011043e 100644 --- a/media/java/android/media/MediaFormat.java +++ b/media/java/android/media/MediaFormat.java @@ -43,7 +43,8 @@ import java.util.Map; *
+ * When capture rate is different than the frame rate, it means that the + * video is acquired at a different rate than the playback, which produces + * slow motion or timelapse effect during playback. Application can use the + * value of this key to tell the relative speed ratio between capture and + * playback rates when the video was recorded. + *
+ *+ * The associated value is an integer or a float. + *
+ */ + public static final String KEY_CAPTURE_RATE = "capture-rate"; + /** * A key describing the frequency of I frames expressed in secs * between I frames.