Expand Minimize

DXVAHD_CreateDevice function

Creates a Microsoft DirectX Video Acceleration High Definition (DXVA-HD) device.

Syntax


HRESULT DXVAHD_CreateDevice(
  _In_   IDirect3DDevice9Ex *pD3DDevice,
  _In_   const DXVAHD_CONTENT_DESC *pContentDesc,
  _In_   DXVAHD_DEVICE_USAGE Usage,
  _In_   PDXVAHDSW_Plugin pPlugin,
  _Out_  IDXVAHD_Device **ppDevice
);

Parameters

pD3DDevice [in]

A pointer to the IDirect3DDevice9Ex interface of a Direct3D 9 device.

pContentDesc [in]

A pointer to a DXVAHD_CONTENT_DESC structure that describes the video content. The driver uses this information as a hint when it creates the device.

Usage [in]

A member of the DXVAHD_DEVICE_USAGE enumeration, describing how the device will be used. The value indicates the desired trade-off between speed and video quality. The driver uses this flag as a hint when it creates the device.

pPlugin [in]

A pointer to an initialization function for a software device. Set this pointer if you are using a software plug-in device. Otherwise, set this parameter to NULL. If the value is NULL, the driver creates the DXVA-HD device.

The function pointer type is PDXVAHDSW_Plugin.

ppDevice [out]

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

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

E_NOINTERFACE

The Direct3D device does not support DXVA-HD.

 

Remarks

Use the IDXVAHD_Device interface to get the device capabilities, create the video processor, and allocate video surfaces.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Dxvahd.h

Library

Dxva2.lib

DLL

Dxva2.dll

See also

Media Foundation Functions

 

 

Community Additions

ADD
Show:
© 2014 Microsoft