Aracılığıyla paylaş


MediaFormat.KeyPrependHeaderToSyncFrames Field

Definition

An optional key describing whether encoders prepend headers to sync frames (e.

[Android.Runtime.Register("KEY_PREPEND_HEADER_TO_SYNC_FRAMES", ApiSince=29)]
public const string KeyPrependHeaderToSyncFrames;
[<Android.Runtime.Register("KEY_PREPEND_HEADER_TO_SYNC_FRAMES", ApiSince=29)>]
val mutable KeyPrependHeaderToSyncFrames : string

Field Value

Attributes

Remarks

An optional key describing whether encoders prepend headers to sync frames (e.g. SPS and PPS to IDR frames for H.264). This is an optional parameter that applies only to video encoders. A video encoder may not support this feature; the component will fail to configure in that case. For other components, this key is ignored.

The value is an integer, with 1 indicating to prepend headers to every sync frames, or 0 otherwise. The default value is 0.

Java documentation for android.media.MediaFormat.KEY_PREPEND_HEADER_TO_SYNC_FRAMES.

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