IDirect3DVideoDevice9::CreateDXVADevice method

Creates a DirectX Video Acceleration (DXVA) decoder device.

Syntax

HRESULT CreateDXVADevice(
   GUID                 *pGuid,
   DXVAUncompDataInfo   *pUncompData,
   LPVOID               pData,
   DWORD                DataSize,
   IDirect3DDXVADevice9 **ppDXVADevice
);

Parameters

pGuid

Pointer to a GUID that specifies the device to create.

pUncompData

Pointer to a DXVAUncompDataInfo structure that specifies the format of the uncompressed image.

pData

Pointer to a DXVA_ConnectMode structure that specifies the DXVA mode and restricted profile.

DataSize

Size of the DXVA_ConnectMode structure, in bytes.

ppDXVADevice

Receives a pointer to the IDirect3DDXVADevice9 interface. The caller must release the interface.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
Dxva.h

See also

IDirect3DVideoDevice9