DD_MOTIONCOMPCALLBACKS structure (ddrawint.h)

The DD_MOTIONCOMPCALLBACKS structure contains entry pointers to the motion compensation callback functions that a device driver supports.

Syntax

typedef struct DD_MOTIONCOMPCALLBACKS {
  DWORD                        dwSize;
  DWORD                        dwFlags;
  PDD_MOCOMPCB_GETGUIDS        GetMoCompGuids;
  PDD_MOCOMPCB_GETFORMATS      GetMoCompFormats;
  PDD_MOCOMPCB_CREATE          CreateMoComp;
  PDD_MOCOMPCB_GETCOMPBUFFINFO GetMoCompBuffInfo;
  PDD_MOCOMPCB_GETINTERNALINFO GetInternalMoCompInfo;
  PDD_MOCOMPCB_BEGINFRAME      BeginMoCompFrame;
  PDD_MOCOMPCB_ENDFRAME        EndMoCompFrame;
  PDD_MOCOMPCB_RENDER          RenderMoComp;
  PDD_MOCOMPCB_QUERYSTATUS     QueryMoCompStatus;
  PDD_MOCOMPCB_DESTROY         DestroyMoComp;
} DD_MOTIONCOMPCALLBACKS;

Members

dwSize

Specifies the size in bytes of this DD_MOTIONCOMPCALLBACKS structure.

dwFlags

Indicates what additional Microsoft DirectDraw motion compensation callback functions the driver has implemented. For every bit set in dwFlags, the driver must initialize the corresponding function pointer member of this structure. This member can be one or more of the following flags:

DDHAL_MOCOMP32_BEGINFRAME
DDHAL_MOCOMP32_CREATE
DDHAL_MOCOMP32_DESTROY
DDHAL_MOCOMP32_GETCOMPBUFFINFO
DDHAL_MOCOMP32_GETINTERNALINFO
DDHAL_MOCOMP32_ENDFRAME
DDHAL_MOCOMP32_GETFORMATS
DDHAL_MOCOMP32_GETGUIDS
DDHAL_MOCOMP32_QUERYSTATUS
DDHAL_MOCOMP32_RENDER

GetMoCompGuids

Points to the driver-supplied DdMoCompGetGuids callback function.

GetMoCompFormats

Points to the driver-supplied DdMoCompGetFormats callback function.

CreateMoComp

Points to the driver-supplied DdMoCompCreate callback function.

GetMoCompBuffInfo

Points to the driver-supplied DdMoCompGetBuffInfo callback function.

GetInternalMoCompInfo

Points to the driver-supplied DdMoCompGetInternalInfo callback function.

BeginMoCompFrame

Points to the driver-supplied DdMoCompBeginFrame callback function.

EndMoCompFrame

Points to the driver-supplied DdMoCompEndFrame callback function.

RenderMoComp

Points to the driver-supplied DdMoCompRender callback function.

QueryMoCompStatus

Points to the driver-supplied DdMoCompQueryStatus callback function.

DestroyMoComp

Points to the driver-supplied DdMoCompDestroy callback function.

Remarks

Entries that the display driver does not use should be set to NULL. The driver should initialize this structure when its DdGetDriverInfo function is called with the GUID_MotionCompCallbacks GUID.

Requirements

Requirement Value
Header ddrawint.h (include Winddi.h)

See also

DD_COLORCONTROLCALLBACKS

DD_KERNELCALLBACKS

DD_MISCELLANEOUSCALLBACKS

DD_NTCALLBACKS

DD_PALETTECALLBACKS

DD_SURFACECALLBACKS

DD_VIDEOPORTCALLBACKS

DdGetDriverInfo

DdMoCompBeginFrame

DdMoCompCreate

DdMoCompDestroy

DdMoCompEndFrame

DdMoCompGetBuffInfo

DdMoCompGetFormats

DdMoCompGetGuids

DdMoCompGetInternalInfo

DdMoCompQueryStatus

DdMoCompRender