Merge "MediaFormat: add a key for B frames"

This commit is contained in:
Wonsik Kim
2019-03-20 17:38:28 +00:00
committed by Android (Google) Code Review
2 changed files with 10 additions and 0 deletions

View File

@@ -25082,6 +25082,7 @@ package android.media {
field public static final String KEY_LANGUAGE = "language";
field public static final String KEY_LATENCY = "latency";
field public static final String KEY_LEVEL = "level";
field public static final String KEY_MAX_BFRAMES = "max-bframes";
field public static final String KEY_MAX_FPS_TO_ENCODER = "max-fps-to-encoder";
field public static final String KEY_MAX_HEIGHT = "max-height";
field public static final String KEY_MAX_INPUT_SIZE = "max-input-size";

View File

@@ -1036,6 +1036,15 @@ public final class MediaFormat {
*/
public static final String KEY_CA_PRIVATE_DATA = "ca-private-data";
/**
* A key describing the maximum number of B frames between I or P frames,
* to be used by a video encoder.
* The associated value is an integer. The default value is 0, which means
* that no B frames are allowed. Note that non-zero value does not guarantee
* B frames; it's up to the encoder to decide.
*/
public static final String KEY_MAX_BFRAMES = "max-bframes";
/* package private */ MediaFormat(@NonNull Map<String, Object> map) {
mMap = map;
}