Export (0) Print
Expand All
Expand Minimize

DXVA2CreateVideoService function

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.

Examples



    // Create the DXVA-2 Video Processor service.
    hr = DXVA2CreateVideoService(g_pD3DD9, IID_PPV_ARGS(&g_pDXVAVPS));


Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Dxva2api.h

Library

Dxva2.lib

DLL

Dxva2.dll

See also

DXVA Video Processing
Media Foundation Functions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft