Udostępnij za pośrednictwem


MediaCodec.BufferInfo.Flags Property

Definition

Buffer flags associated with the buffer.

[Android.Runtime.Register("flags")]
public Android.Media.MediaCodecBufferFlags Flags { get; set; }
[<Android.Runtime.Register("flags")>]
member this.Flags : Android.Media.MediaCodecBufferFlags with get, set

Property Value

Attributes

Remarks

Buffer flags associated with the buffer. A combination of #BUFFER_FLAG_KEY_FRAME and #BUFFER_FLAG_END_OF_STREAM.

Encoded buffers that are key frames are marked with #BUFFER_FLAG_KEY_FRAME.

The last output buffer corresponding to the input buffer marked with #BUFFER_FLAG_END_OF_STREAM will also be marked with #BUFFER_FLAG_END_OF_STREAM. In some cases this could be an empty buffer, whose sole purpose is to carry the end-of-stream marker.

Java documentation for android.media.MediaCodec.BufferInfo.flags.

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