Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 786828b6 authored by Hangyu Kuang's avatar Hangyu Kuang
Browse files

mediaformat: Expose frame reordering to application.

Bug: 68114820
Test: None
Change-Id: I7cf4a9843c705657215bec7b7acdd119f54503b4
parent dc4cb146
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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";
+15 −0
Original line number Diff line number Diff line
@@ -679,6 +679,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.