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 Value | DXVA2_SampleFormat Value |
|---|---|
| MFVideoInterlace_Unknown | DXVA2_SampleUnknown. |
| MFVideoInterlace_Progressive | DXVA2_SampleProgressiveFrame. |
| MFVideoInterlace_FieldInterleavedUpperFirst | DXVA2_SampleFieldInterleavedEvenFirst |
| MFVideoInterlace_FieldInterleavedLowerFirst | DXVA2_SampleFieldInterleavedOddFirst. |
| MFVideoInterlace_FieldSingleUpper | DXVA2_SampleFieldSingleEven. |
| MFVideoInterlace_FieldSingleLower | DXVA2_SampleFieldSingleOdd. |
| MFVideoInterlace_MixedInterlaceOrProgressive | No 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 |
|
See also