diff --git a/media/java/android/media/MediaFormat.java b/media/java/android/media/MediaFormat.java index d7a18d97874db..c1412661c6492 100644 --- a/media/java/android/media/MediaFormat.java +++ b/media/java/android/media/MediaFormat.java @@ -49,7 +49,9 @@ import java.util.Map; *
+ * This key is used by video encoders. + * A negative value means no key frames are requested after the first frame. + * A zero value means a stream containing all key frames is requested. + *
+ * Most video encoders will convert this value of the number of non-key-frames between + * key-frames, using the {@linkplain #KEY_FRAME_RATE frame rate} information; therefore, + * if the actual frame rate differs (e.g. input frames are dropped or the frame rate + * changes), the time interval between key frames will not be the + * configured value. + *
+ * The associated value is an integer (or float since + * {@link android.os.Build.VERSION_CODES#N_MR1}). */ public static final String KEY_I_FRAME_INTERVAL = "i-frame-interval";