Condividi tramite


MediaFormat.KeyLevel Field

Definition

A key describing the desired profile to be used by an encoder.

[Android.Runtime.Register("KEY_LEVEL", ApiSince=23)]
public const string KeyLevel;
[<Android.Runtime.Register("KEY_LEVEL", ApiSince=23)>]
val mutable KeyLevel : string

Field Value

Attributes

Remarks

A key describing the desired profile to be used by an encoder.

The associated value is an integer. Constants are declared in MediaCodecInfo.CodecProfileLevel. This key is used as a further hint when specifying a desired profile, and is only supported for codecs that specify a level.

This key is ignored if the #KEY_PROFILE profile is not specified. Otherwise, the value should be a level compatible with the configured encoding parameters. <p class="note"> <strong>Note:</strong> This key cannot be used to constrain the encoder's output to a maximum encoding level. Encoders are free to target a different level if the configured encoding parameters dictate it. Nevertheless, encoders shall use (and encode) a level sufficient to decode the generated bitstream, though they may exceed the (Video) Buffering Verifier limits for that encoded level.

Java documentation for android.media.MediaFormat.KEY_LEVEL.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to