PFND3DDDI_SETDECODERENDERTARGET - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3dumddi.h

PFND3DDDI_SETDECODERENDERTARGET Pfnd3dddiSetdecoderendertarget;

HRESULT Pfnd3dddiSetdecoderendertarget(
  HANDLE hDevice,
  const D3DDDIARG_SETDECODERENDERTARGET *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-d3dumddi-pfnd3dddi_setdecoderendertarget)

PFND3DDDI_SETDECODERENDERTARGET callback function

Description

The SetDecodeRenderTarget function sets the render target surface for decoding operations.

Parameters

hDevice

A handle to the display device (graphics context).

unnamedParam2

pData [in]

A pointer to a D3DDDIARG_SETDECODERENDERTARGET structure that describes the decode render target surface.

Return value

SetDecodeRenderTarget returns one of the following values:

Return code Description
S_OK The render target surface is successfully set.
E_OUTOFMEMORY SetDecodeRenderTarget could not allocate the required memory for it to complete.

Remarks

The SetDecodeRenderTarget function can be called only outside of a DecodeBeginFrame/DecodeEndFrame block.

Decode render targets are always created atomically through calls to the CreateResource function, where all of the decode buffers are indexes within a single resource. All decode render targets are created by setting the D3DDDI_RESOURCEFLAGS.DecodeRenderTarget bit-field flag in the Flags member of the D3DDDIARG_CREATERESOURCE structure.

See also

CreateResource

D3DDDIARG_CREATERESOURCE

D3DDDIARG_SETDECODERENDERTARGET

D3DDDI_DEVICEFUNCS

D3DDDI_RESOURCEFLAGS

DecodeBeginFrame

DecodeEndFrame