// dxva.h
typedef enum _DXVA_VideoChromaSubsampling {
DXVA_VideoChromaSubsamplingShift,
DXVA_VideoChromaSubsamplingMask,
DXVA_VideoChromaSubsampling_Unknown,
DXVA_VideoChromaSubsampling_ProgressiveChroma,
DXVA_VideoChromaSubsampling_Horizontally_Cosited,
DXVA_VideoChromaSubsampling_Vertically_Cosited,
DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes,
DXVA_VideoChromaSubsampling_MPEG2,
DXVA_VideoChromaSubsampling_MPEG1,
DXVA_VideoChromaSubsampling_DV_PAL,
DXVA_VideoChromaSubsampling_Cosited
} DXVA_VideoChromaSubsampling;
View the official Windows Driver Kit DDI referenceNo description available.
The DXVA_VideoChromaSubsampling enumeration type contains enumerators that identify the chroma encoding scheme for Y'Cb'Cr' data.
DXVA_VideoChromaSubsamplingShiftSpecifies to shift bits by 8 positions (DXVA_ExtColorData_ShiftBase + 0, or 8 + 0).
DXVA_VideoChromaSubsamplingMaskSpecifies the video chroma subsampling mask. 4 (0x00000F00) bits of a DWORD can be used to specify video chroma subsampling.
DXVA_VideoChromaSubsampling_UnknownSpecifies that the video chroma subsampling is not specified.
DXVA_VideoChromaSubsampling_ProgressiveChromaSpecifies that the video chroma subsampling is progressive chroma.
DXVA_VideoChromaSubsampling_Horizontally_CositedSpecifies that chroma samples are aligned on multiples of the luma samples horizontally.
DXVA_VideoChromaSubsampling_Vertically_CositedSpecifies that chroma samples are aligned on multiples of the luma samples vertically.
DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanesSpecifies that the Pb and Pr (or Cb and Cr) planes have the same phase alignment. This enumerator can only be set to 0 in the VideoChromaSubsampling member of the DXVA_ExtendedFormat structure if the data is vertically cosited.
DXVA_VideoChromaSubsampling_MPEG2A bitwise OR of the DXVA_VideoChromaSubsampling_Horizontally_Cosited and DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes values that are used with 4:2:0 data.
DXVA_VideoChromaSubsampling_MPEG1The DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes value that is used with 4:2:0 data.
DXVA_VideoChromaSubsampling_DV_PALA bitwise OR of the DXVA_VideoChromaSubsampling_Horizontally_Cosited and DXVA_VideoChromaSubsampling_Vertically_Cosited values that are used with 4:2:0 data.
DXVA_VideoChromaSubsampling_CositedA bitwise OR of the DXVA_VideoChromaSubsampling_Horizontally_Cosited, and DXVA_VideoChromaSubsampling_Vertically_Cosited, and DXVA_VideoChromaSubsampling_Vertically_AlignedChromaPlanes values that are used with 4:4:4, 4:2:2, and 4:1:1 data.
The enumerators of DXVA_VideoChromaSubsampling can be ORed together to create a value in the VideoChromaSubsampling member of the DXVA_ExtendedFormat structure.
Cosite variations indicate that the chroma samples are aligned with the luma samples. Typically, 4:2:0 data with chroma is aligned in one or more directions with the luma data. Note that 4:4:4, 4:2:2 and 4:1:1 data are always cosited in both directions.