DXVA2CreateVideoService function (dxva2api.h)

Creates a DirectX Video Acceleration (DXVA) services object. Call this function if your application uses DXVA directly, without using DirectShow or Media Foundation.

Syntax

HRESULT DXVA2CreateVideoService(
  IDirect3DDevice9 *pDD,
  REFIID           riid,
  void             **ppService
);

Parameters

pDD

A pointer to the IDirect3DDevice9 interface of a Direct3D device.

riid

The interface identifier (IID) of the requested interface. Any of the following interfaces might be supported by the Direct3D device:

ppService

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

Return value

If this function 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]
Target Platform Windows
Header dxva2api.h
Library Dxva2.lib
DLL Dxva2.dll

See also

DXVA Video Processing

Media Foundation Functions