Platform SDK: DirectX |
Applications use the methods of the IDirectDrawVideoPort interface to channel live video data from a hardware video port to a DirectDraw surface. This section is a reference to the methods of this interface. For a conceptual overview, see Video Ports.
The methods of the IDirectDrawVideoPort interface can be organized into the following groups:
Color controls | GetColorControls |
SetColorControls | |
Fields and signals | GetFieldPolarity |
GetVideoSignalStatus | |
Flipping | Flip |
SetTargetSurface | |
Formats | GetInputFormats |
GetOutputFormats | |
Timing and synchronization | GetVideoLine |
WaitForSync | |
Video control | StartVideo |
StopVideo | |
UpdateVideo | |
Zoom factors | GetBandwidthInfo |
The IDirectDrawVideoPort interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods:
IUnknown | AddRef |
QueryInterface | |
Release |
You can use the LPDIRECTDRAWVIDEOPORT data type to declare a variable that contains a pointer to an IDirectDrawVideoPort interface. The Dvp.h header file declares the LPDIRECTDRAWVIDEOPORT with the following code:
typedef struct IDirectDrawVideoPort FAR *LPDIRECTDRAWVIDEOPORT;
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dvp.h.
Import Library: Use ddraw.lib.