DD_VIDEOPORTCALLBACKS struttura (ddrawint.h)

La struttura DD_VIDEOPORTCALLBACKS contiene puntatori di ingresso alle funzioni di callback di Microsoft DirectDraw (VPE) supportate da un driver di dispositivo.

Sintassi

typedef struct DD_VIDEOPORTCALLBACKS {
  DWORD                          dwSize;
  DWORD                          dwFlags;
  PDD_VPORTCB_CANCREATEVIDEOPORT CanCreateVideoPort;
  PDD_VPORTCB_CREATEVIDEOPORT    CreateVideoPort;
  PDD_VPORTCB_FLIP               FlipVideoPort;
  PDD_VPORTCB_GETBANDWIDTH       GetVideoPortBandwidth;
  PDD_VPORTCB_GETINPUTFORMATS    GetVideoPortInputFormats;
  PDD_VPORTCB_GETOUTPUTFORMATS   GetVideoPortOutputFormats;
  LPVOID                         lpReserved1;
  PDD_VPORTCB_GETFIELD           GetVideoPortField;
  PDD_VPORTCB_GETLINE            GetVideoPortLine;
  PDD_VPORTCB_GETVPORTCONNECT    GetVideoPortConnectInfo;
  PDD_VPORTCB_DESTROYVPORT       DestroyVideoPort;
  PDD_VPORTCB_GETFLIPSTATUS      GetVideoPortFlipStatus;
  PDD_VPORTCB_UPDATE             UpdateVideoPort;
  PDD_VPORTCB_WAITFORSYNC        WaitForVideoPortSync;
  PDD_VPORTCB_GETSIGNALSTATUS    GetVideoSignalStatus;
  PDD_VPORTCB_COLORCONTROL       ColorControl;
} DD_VIDEOPORTCALLBACKS;

Members

dwSize

Specifica le dimensioni in byte di questa struttura DD_VIDEOPORTCALLBACKS.

dwFlags

Indica le funzioni di callback VPE implementate dal driver. Per ogni set di bit in dwFlags, il driver deve inizializzare il membro del puntatore della funzione corrispondente di questa struttura. Questo membro può essere uno o più dei flag seguenti:

DDHAL_VPORT32_CANCREATEVIDEOPORT
DDHAL_VPORT32_CREATEVIDEOPORT
DDHAL_VPORT32_FLIP
DDHAL_VPORT32_GETBANDWIDTH
DDHAL_VPORT32_GETINPUTFORMATS
DDHAL_VPORT32_GETOUTPUTFORMATS
DDHAL_VPORT32_GETAUTOFLIPSURF
DDHAL_VPORT32_GETFIELD
DDHAL_VPORT32_GETLINE
DDHAL_VPORT32_GETCONNECT
DDHAL_VPORT32_DESTROY
DDHAL_VPORT32_GETFLIPSTATUS
DDHAL_VPORT32_UPDATE
DDHAL_VPORT32_WAITFORSYNC
DDHAL_VPORT32_GETSIGNALSTATUS
DDHAL_VPORT32_COLORCONTROL

CanCreateVideoPort

Punta al callback DdVideoPortCreate fornito dal driver.

CreateVideoPort

Punta al callback DdVideoPortCreate fornito dal driver.

FlipVideoPort

Punta al callback DdVideoPortFlip fornito dal driver.

GetVideoPortBandwidth

Punta al callback DdVideoPortGetBandwidth fornito dal driver.

GetVideoPortInputFormats

Punta al callback DdVideoPortGetInputFormats fornito dal driver.

GetVideoPortOutputFormats

Punta al callback DdVideoPortGetOutputFormats fornito dal driver.

lpReserved1

Riservato per l'uso del sistema e deve essere ignorato dal driver.

GetVideoPortField

Punta al callback DdVideoPortGetField fornito dal driver.

GetVideoPortLine

Punta al callback DdVideoPortGetLine fornito dal driver.

GetVideoPortConnectInfo

Punta al callback DdVideoPortGetConnectInfo fornito dal driver.

DestroyVideoPort

Punta al callback DdVideoPortDestroy fornito dal driver.

GetVideoPortFlipStatus

Punta al callback DdVideoPortGetFlipStatus fornito dal driver.

UpdateVideoPort

Punta al callback DdVideoPortUpdate fornito dal driver.

WaitForVideoPortSync

Punta al callback DdVideoPortWaitForSync fornito dal driver.

GetVideoSignalStatus

Punta al callback DdVideoPortGetSignalStatus fornito dal driver.

ColorControl

Punta al callback DdVideoPortControl fornito dal driver.

Commenti

Le voci usate dal driver di visualizzazione non devono essere impostate su NULL. Il driver deve inizializzare questa struttura quando viene chiamata la funzione DdGetDriverInfo con il GUID GUID_VideoPortCallbacks.

Requisiti

Requisito Valore
Intestazione ddrawint.h (include Winddi.h)

Vedi anche

DD_COLORCONTROLCALLBACKS

DD_KERNELCALLBACKS

DD_MISCELLANEOUSCALLBACKS

DD_MOTIONCOMPCALLBACKS

DD_NTCALLBACKS

DD_PALETTECALLBACKS

DD_SURFACECALLBACKS

DdGetDriverInfo