diff options
| -rw-r--r-- | api/current.txt | 1 | ||||
| -rw-r--r-- | media/java/android/media/MediaFormat.java | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index 892584661084..94aa9b47c09f 100644 --- a/api/current.txt +++ b/api/current.txt @@ -23130,6 +23130,7 @@ package android.media { field public static final java.lang.String KEY_MAX_WIDTH = "max-width"; field public static final java.lang.String KEY_MIME = "mime"; field public static final java.lang.String KEY_OPERATING_RATE = "operating-rate"; + field public static final java.lang.String KEY_OUTPUT_REORDER_DEPTH = "output-reorder-depth"; field public static final java.lang.String KEY_PCM_ENCODING = "pcm-encoding"; field public static final java.lang.String KEY_PRIORITY = "priority"; field public static final java.lang.String KEY_PROFILE = "profile"; diff --git a/media/java/android/media/MediaFormat.java b/media/java/android/media/MediaFormat.java index 306ed83c426b..c6496ebba8bf 100644 --- a/media/java/android/media/MediaFormat.java +++ b/media/java/android/media/MediaFormat.java @@ -680,6 +680,21 @@ public final class MediaFormat { public static final String KEY_LATENCY = "latency"; /** + * An optional key describing the maximum number of non-display-order coded frames. + * This is an optional parameter that applies only to video encoders. Application should + * check the value for this key in the output format to see if codec will produce + * non-display-order coded frames. If encoder supports it, the output frames' order will be + * different from the display order and each frame's display order could be retrived from + * {@link MediaCodec.BufferInfo#presentationTimeUs}. Before API level 27, application may + * receive non-display-order coded frames even though the application did not request it. + * Note: Application should not rearrange the frames to display order before feeding them + * to {@link MediaMuxer#writeSampleData}. + * <p> + * The default value is 0. + */ + public static final String KEY_OUTPUT_REORDER_DEPTH = "output-reorder-depth"; + + /** * A key describing the desired clockwise rotation on an output surface. * This key is only used when the codec is configured using an output surface. * The associated value is an integer, representing degrees. Supported values |