Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize

DXVA2_SampleFormat enumeration

Describes the content of a video sample. These flags are used in the DXVA2_ExtendedFormat structure.

Syntax


typedef enum _DXVA2_SampleFormat { 
  DXVA2_SampleFormatMask                 = 0x00FF,
  DXVA2_SampleUnknown                    = 0,
  DXVA2_SampleProgressiveFrame           = 2,
  DXVA2_SampleFieldInterleavedEvenFirst  = 3,
  DXVA2_SampleFieldInterleavedOddFirst   = 4,
  DXVA2_SampleFieldSingleEven            = 5,
  DXVA2_SampleFieldSingleOdd             = 6,
  DXVA2_SampleSubStream                  = 7
} DXVA2_SampleFormat;

Constants

DXVA2_SampleFormatMask

Bitmask to validate flag values. This value is not a valid flag.

DXVA2_SampleUnknown

Unknown format. Default to DXVA2_SampleProgressiveFrame.

DXVA2_SampleProgressiveFrame

The sample contains a progressive (non-interlaced) frame.

DXVA2_SampleFieldInterleavedEvenFirst

The sample contains two interleaved fields. The even field should be displayed first.

DXVA2_SampleFieldInterleavedOddFirst

The sample contains two interleaved fields. The odd field should be displayed first.

DXVA2_SampleFieldSingleEven

The sample contains a single even field.

DXVA2_SampleFieldSingleOdd

The sample contains a single odd field.

DXVA2_SampleSubStream

The sample contains a video substream frame. Use this value for substream mixing.

Remarks

This enumeration is equivalent to the DXVA_SampleFormat enumeration used in DXVA 1.0.

The following table shows the mapping from MFVideoInterlaceMode enumeration values, which are used in Media Foundation media types, to DXVA2_SampleFormat values.

MFVideoInterlaceMode ValueDXVA2_SampleFormat Value
MFVideoInterlace_UnknownDXVA2_SampleUnknown.
MFVideoInterlace_ProgressiveDXVA2_SampleProgressiveFrame.
MFVideoInterlace_FieldInterleavedUpperFirstDXVA2_SampleFieldInterleavedEvenFirst
MFVideoInterlace_FieldInterleavedLowerFirstDXVA2_SampleFieldInterleavedOddFirst.
MFVideoInterlace_FieldSingleUpperDXVA2_SampleFieldSingleEven.
MFVideoInterlace_FieldSingleLowerDXVA2_SampleFieldSingleOdd.
MFVideoInterlace_MixedInterlaceOrProgressiveNo exact match. Use DXVA2_SampleFieldInterleavedEvenFirst as an initial value, then use the interlace flags from the media samples. For more information, see Video Interlacing.

 

With the exception of MFVideoInterlace_MixedInterlaceOrProgressive, each pair of corresponding enumeration values has the same numeric value.

The value DXVA2_SampleSubStream has no equivalent in the MFVideoInterlaceMode enumeration.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Dxva2api.h

See also

Media Foundation Enumerations

 

 

Community Additions

ADD
Show:
© 2015 Microsoft