Download MPEGIO SDK User Manual

Transcript
Function: Start one MPEGIO Card.
Parameters:
BoardNumber: Which MPEGIO card to start. If there is only one card in the PC, pass 0.
When there are N > 1 cards installed, pass value between [0, N-1].
ParentWindow: any valid window’s handle served as a parent window for this
started MPEGIO card’s video window (live video will appear inside ParentWindow if
parentWndHide is false and ParentWindow is visible).
If this parameter is a valid window handle, then this window will be used as the parent
window for the video window started by this MPEGIO card, and the following
parameters’ values will be ignored:
char *parentWndTitle,
char *parentWndClass,
bool parentHasParent,
int parentWndX1, int parentWndY1,
int parentWndX2, int parentWndY2.
If this parameter is not a valid window handle, e.g., if it is NULL (when application
software cannot find a suitable window handle to pass over a NULL is handy), then:
(1) If listAllChildWnd is 1 or 2, the dialog
“Select Parent Window for Video Window” will appear, see comments below next to
the ListAllChildWnd’s explanation. In this situation the parameters
parentWndTitle,
parentWndClass,
parentHasParent,
parentWndX1, parentWndY1,
parentWndX2, parentWndY2,
will also be ignored (same as when ParentWindow is a valid window handle).
(2) If listAllChildWnd is 3, no dialog will appear, MPEGIO video window will have
no parent window: it will be created as top-level window that can be resized, moved
independently. The video window’s initial position will be remembered each time
when the MPEGIO card if stopped and this position will be reused when the card is restarted next time. When listAllChildWnd is 3, if the parentWndHide = TRUE and the
MPEGIODX.EXE file (from SDK’s setup CD) is in C:\Windows\System32, then the
MPEGIO video window cannot be manually closed or killed, it will be killed
automatically when MPEGIO_stop() is called on that MPEGIO card.
(3) If listAllChildWnd is 0, no dialog will appear, and a search among all existing
windows will start to find a matching window that satisfy the conditions described by
these parameters:
char *parentWndTitle,
char *parentWndClass,
bool parentHasParent,
int parentWndX1, int parentWndY1,
int parentWndX2, int parentWndY2.
If a match is found, the found window will be used as the ParentWindow.
If no match was found, the current Foreground window will be used as the
MPEGIO SDK User Manual
Page 4
Ver. 1.0.8.6