Condividi tramite


MediaFormat.KeyProfile Field

Definition

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

[Android.Runtime.Register("KEY_PROFILE")]
public const string KeyProfile;
[<Android.Runtime.Register("KEY_PROFILE")>]
val mutable KeyProfile : 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 hint, and is only supported for codecs that specify a profile. When configuring profile, encoder configuration may fail if other parameters are not compatible with the desired profile or if the desired profile is not supported, but it may also fail silently (where the encoder ends up using a different, compatible profile.) <p class="note"> <strong>Note:</strong> Codecs are free to use all the available coding tools at the specified profile, but may ultimately choose to not do so. <p class="note"> <strong>Note:</strong> When configuring video encoders, profile must be set together with #KEY_LEVEL level.

Java documentation for android.media.MediaFormat.KEY_PROFILE.

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