DD_VIDEOPORTCALLBACKS structure (ddrawint.h)
The DD_VIDEOPORTCALLBACKS structure contains entry pointers to Microsoft DirectDraw video port extensions (VPE) callback functions that a device driver supports.
Syntax
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
Specifies the size in bytes of this DD_VIDEOPORTCALLBACKS structure.
dwFlags
Indicates what VPE 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_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
Points to the driver-supplied DdVideoPortCanCreate callback.
CreateVideoPort
Points to the driver-supplied DdVideoPortCreate callback.
FlipVideoPort
Points to the driver-supplied DdVideoPortFlip callback.
GetVideoPortBandwidth
Points to the driver-supplied DdVideoPortGetBandwidth callback.
GetVideoPortInputFormats
Points to the driver-supplied DdVideoPortGetInputFormats callback.
GetVideoPortOutputFormats
Points to the driver-supplied DdVideoPortGetOutputFormats callback.
lpReserved1
Reserved for system use and should be ignored by the driver.
GetVideoPortField
Points to the driver-supplied DdVideoPortGetField callback.
GetVideoPortLine
Points to the driver-supplied DdVideoPortGetLine callback.
GetVideoPortConnectInfo
Points to the driver-supplied DdVideoPortGetConnectInfo callback.
DestroyVideoPort
Points to the driver-supplied DdVideoPortDestroy callback.
GetVideoPortFlipStatus
Points to the driver-supplied DdVideoPortGetFlipStatus callback.
UpdateVideoPort
Points to the driver-supplied DdVideoPortUpdate callback.
WaitForVideoPortSync
Points to the driver-supplied DdVideoPortWaitForSync callback.
GetVideoSignalStatus
Points to the driver-supplied DdVideoPortGetSignalStatus callback.
ColorControl
Points to the driver-supplied DdVideoPortColorControl callback.
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_VideoPortCallbacks GUID.
Requirements
Requirement | Value |
---|---|
Header | ddrawint.h (include Winddi.h) |