Expand Minimize

DXVAHD_STREAM_STATE_D3DFORMAT_DATA structure

Specifies the format for an input stream, when using Microsoft DirectX Video Acceleration High Definition (DXVA-HD).

Syntax


typedef struct _DXVAHD_STREAM_STATE_D3DFORMAT_DATA {
  D3DFORMAT Format;
} DXVAHD_STREAM_STATE_D3DFORMAT_DATA;

Members

Format

The surface format, specified as a D3DFORMAT value. You can also use a FOURCC code to specify a format that is not defined in the D3DFORMAT enumeration. For more information, see Video FOURCCs.

The default state value is D3DFMT_UNKNOWN.

Examples


HRESULT DXVAHD_SetStreamFormat(
    IDXVAHD_VideoProcessor *pVP,
    UINT stream,
    D3DFORMAT format
    )
{
    DXVAHD_STREAM_STATE_D3DFORMAT_DATA d3dformat = { format };

    HRESULT hr = pVP->SetVideoProcessStreamState(
        stream,
        DXVAHD_STREAM_STATE_D3DFORMAT,
        sizeof(d3dformat),
        &d3dformat
        );

    return hr;
}


Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Dxvahd.h

See also

DXVA-HD
Media Foundation Structures
DXVAHD_STREAM_STATE
IDXVAHD_VideoProcessor::SetVideoProcessStreamState

 

 

Community Additions

ADD
Show:
© 2014 Microsoft