DXVA2_ExtendedFormat structure

Describes the format of a video stream.

Syntax

typedef struct _DXVA2_ExtendedFormat {
  union {
    struct {
      UINT SampleFormat : 8;
      UINT VideoChromaSubsampling : 4;
      UINT NominalRange : 3;
      UINT VideoTransferMatrix : 3;
      UINT VideoLighting : 4;
      UINT VideoPrimaries : 5;
      UINT VideoTransferFunction : 5;
    };
    UINT value;
  };
} DXVA2_ExtendedFormat;

Members

        `SampleFormat`

        Describes the interlacing of the video frames. Contains a value from the <a href="https://docs.microsoft.com/windows/desktop/api/dxva2api/ne-dxva2api-dxva2_sampleformat">DXVA2_SampleFormat</a> enumeration.
    
    
        `VideoChromaSubsampling`

        Describes the chroma siting. Contains a value from the <a href="https://docs.microsoft.com/windows/desktop/api/dxva2api/ne-dxva2api-dxva2_videochromasubsampling">DXVA2_VideoChromaSubSampling</a> enumeration.
    
    
        `NominalRange`

        Describes the nominal range of the Y'CbCr or RGB color data. Contains a value from the <a href="https://docs.microsoft.com/windows/desktop/api/dxva2api/ne-dxva2api-dxva2_nominalrange">DXVA2_NominalRange</a> enumeration.
    
    
        `VideoTransferMatrix`

        Describes the transform from Y'PbPr (component video) to studio R'G'B'. Contains a value from the <a href="https://docs.microsoft.com/windows/desktop/api/dxva2api/ne-dxva2api-dxva2_videotransfermatrix">DXVA2_VideoTransferMatrix</a> enumeration.
    
    
        `VideoLighting`

        Describes the intended viewing conditions. Contains a value from the <a href="https://docs.microsoft.com/windows/desktop/api/dxva2api/ne-dxva2api-dxva2_videolighting">DXVA2_VideoLighting</a> enumeration.
    
    
        `VideoPrimaries`

        Describes the color primaries. Contains a value from the <a href="https://docs.microsoft.com/windows/desktop/api/dxva2api/ne-dxva2api-dxva2_videoprimaries">DXVA2_VideoPrimaries</a> enumeration.
    
    
        `VideoTransferFunction`

        Describes the gamma correction transfer function. Contains a value from the <a href="https://docs.microsoft.com/windows/desktop/api/dxva2api/ne-dxva2api-dxva2_videotransferfunction">DXVA2_VideoTransferFunction</a> enumeration.
    
    
        `value`

        Use this member to access all of the bits in the union.
    

## Remarks
    Most of the values in this structure can be translated directly to and from <a href="https://docs.microsoft.com/windows/desktop/api/mfobjects/nn-mfobjects-imfmediatype">IMFMediaType</a> attributes. For a code example that fills in the values from an <b>IMFMediaType</b> pointer, see <a href="https://docs.microsoft.com/windows/desktop/api/dxva2api/ns-dxva2api-dxva2_videodesc">DXVA2_VideoDesc</a>.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header dxva2api.h
## See Also

    <a href="https://docs.microsoft.com/windows/desktop/medfound/extended-color-information">Extended Color Information</a>

IMFMediaType

Media Foundation Structures