PDD_MOCOMPCB_RENDER callback function (ddrawint.h)

The DdMoCompRender callback function tells the driver what macroblocks to render by specifying the surfaces containing the macroblocks, the offsets in each surface where the macroblocks exist, and the size of the macroblock data to be rendered.

Syntax

PDD_MOCOMPCB_RENDER PddMocompcbRender;

DWORD PddMocompcbRender(
  PDD_RENDERMOCOMPDATA unnamedParam1
)
{...}

Parameters

unnamedParam1

Points to a DD_RENDERMOCOMPDATA structure that contains the information needed to render a frame.

Return value

DdMoCompRender returns one of the following callback codes:

Remarks

DirectDraw drivers that support motion compensation must implement DdMoCompRender.

DdMoCompRender can be called multiple times between the DdMoCompBeginFrame and DdMoCompEndFrame sequence.

If a previous render operation is not yet finished, the driver should fail the call by setting the ddRVal member of the DD_RENDERMOCOMPDATA structure at lpRenderData to DDERR_WASSTILLDRAWING and returning DDHAL_DRIVER_HANDLED.

Requirements

Requirement Value
Target Platform Desktop
Header ddrawint.h (include Winddi.h)

See also

DD_RENDERMOCOMPDATA

DdMoCompBeginFrame

DdMoCompEndFrame