SetVideoProcessRenderTarget
Blt
TOC
Collapse the table of content
Expand the table of content

SetVideoProcessRenderTarget routine

The SetVideoProcessRenderTarget function sets the render target surface that is used for video processing.

Syntax


PFND3DDDI_SETVIDEOPROCESSRENDERTARGET SetVideoProcessRenderTarget;

__checkReturn HRESULT APIENTRY SetVideoProcessRenderTarget(
  _In_       HANDLE                                hDevice,
  _In_ const D3DDDIARG_SETVIDEOPROCESSRENDERTARGET *pData
)
{ ... }

Parameters

hDevice [in]

A handle to the display device (graphics context).

pData [in]

A pointer to a D3DDDIARG_SETVIDEOPROCESSRENDERTARGET structure that describes the render target surface that is used for video processing.

Return value

SetVideoProcessRenderTarget returns one of the following values:

Return codeDescription
S_OK

The render target surface is successfully set.

E_OUTOFMEMORY

SetVideoProcessRenderTarget could not allocate the required memory for it to complete.

 

Remarks

SetVideoProcessRenderTarget can be called only outside of a VideoProcessBeginFrame/VideoProcessEndFrame block.

All video processing render targets are created by setting the D3DDDI_RESOURCEFLAGS.VideoProcessRenderTarget bit-field flag in the Flags member of the D3DDDIARG_CREATERESOURCE structure in a call to the CreateResource function.

Requirements

Target platform

Desktop

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

D3DDDIARG_SETVIDEOPROCESSRENDERTARGET
D3DDDI_DEVICEFUNCS
D3DDDI_RESOURCEFLAGS

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft