Lingua

MediaExtractorSampleFlags Enum

Definition

Enumerates values returned by several types.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum MediaExtractorSampleFlags
[<System.Flags>]
type MediaExtractorSampleFlags = 
Inheritance
MediaExtractorSampleFlags
Attributes

Fields

Name Value Description
None 0
Sync 1

The sample is a sync sample (or in MediaCodec 's terminology it is a key frame.)

Android reference for android.media.MediaExtractor.SAMPLE_FLAG_SYNC.

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.

Encrypted 2

The sample is (at least partially) encrypted, see also the documentation for MediaCodec.queueSecureInputBuffer(int, int, CryptoInfo, long, int)

Android reference for android.media.MediaExtractor.SAMPLE_FLAG_ENCRYPTED.

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.

PartialFrame 4

This indicates that the buffer only contains part of a frame, and the decoder should batch the data until a buffer without this flag appears before decoding the frame.

Android reference for android.media.MediaExtractor.SAMPLE_FLAG_PARTIAL_FRAME.

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.

Remarks

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