DD_MOTIONCOMPCALLBACKS 结构 (ddrawint.h)

DD_MOTIONCOMPCALLBACKS 结构包含指向设备驱动程序支持的运动补偿回调函数的入口指针。

语法

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;

成员

dwSize

指定此DD_MOTIONCOMPCALLBACKS结构的大小(以字节为单位)。

dwFlags

指示驱动程序已实现的其他 Microsoft DirectDraw 运动补偿回调函数。 对于 dwFlags 中设置的每个位,驱动程序必须初始化此结构的相应函数指针成员。 此成员可以是以下一个或多个标志:

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

指向驱动程序提供的 DdMoCompGetGuids 回调函数。

GetMoCompFormats

指向驱动程序提供的 DdMoCompGetFormats 回调函数。

CreateMoComp

指向驱动程序提供的 DdMoCompCreate 回调函数。

GetMoCompBuffInfo

指向驱动程序提供的 DdMoCompGetBuffInfo 回调函数。

GetInternalMoCompInfo

指向驱动程序提供的 DdMoCompGetInternalInfo 回调函数。

BeginMoCompFrame

指向驱动程序提供的 DdMoCompBeginFrame 回调函数。

EndMoCompFrame

指向驱动程序提供的 DdMoCompEndFrame 回调函数。

RenderMoComp

指向驱动程序提供的 DdMoCompRender 回调函数。

QueryMoCompStatus

指向驱动程序提供的 DdMoCompQueryStatus 回调函数。

DestroyMoComp

指向驱动程序提供的 DdMoCompDestroy 回调函数。

注解

显示驱动程序不使用的条目应设置为 NULL。 当使用 GUID_MotionCompCallbacks GUID 调用其 DdGetDriverInfo 函数时,驱动程序应初始化此结构。

要求

要求
Header ddrawint.h (包括 Winddi.h)

另请参阅

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