IDirect3DDXVADevice9::BeginFrame method

Begins the processing to create a decoded picture.

Syntax

HRESULT BeginFrame(
   IDirect3DSurface9 *pDstSurface,
   DWORD             SizeInputData,
   VOID              *pInputData,
   DWORD             *pSizeOutputData,
   VOID              *pOutputData
);

Parameters

pDstSurface

A pointer to the IDirect3DSurface9 interface of the uncompressed destination surface.

SizeInputData

The size of the buffer specified by pInputData, in bytes. The value must be 2.

pInputData

Pointer to a buffer that contains data for the video accelerator. This buffer must contain the zero-based frame index, specified as a WORD value.

pSizeOutputData

The size of the buffer specified by pOutputData, in bytes. The value must be zero.

pOutputData

Pointer to a buffer that the video accelerator can write to. Set this parameter to NULL.

Return value

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

Remarks

For each call to BeginFrame, the decoder must make a corresponding call to IDirect3DDXVADevice9::EndFrame.

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

IDirect3DDXVADevice9