Parameters, Returns, Mid2246_api int sn_getvidstatusnobist (int board) – Sensoray 2246 User Manual

Page 33: Mid2246_api int sn_testdeviceremoval (int board), Mid2246_api int sn_repaint (hdc hdc), Function documentation - recording functions, Mid2246_api int sn_startstream (int board = 0)

Advertising
background image

Parameters:

board ID if multiple boards installed.

Returns:

TRUE(1) if video locked else FALSE(0)

MID2246_API int SN_GetVidStatusNoBIST (int board)

GetVidStatus Checks and waits for status of the Built In Self Test (BIST) of the DDR
memory and then returns current lock status of the current input.

Parameters:

board ID if multiple boards installed.

Returns:

TRUE(1) if video locked else FALSE(0)

Function Documentation - Callback functions from application

MID2246_API int SN_TestDeviceRemoval (int board)

Test whether device was removed or not When SN_Initialize() is called, a message window
handle and remove message is set. When remove message is received by the application, this
function should be called to see if the device was removed. DLL should be shut down if
device terminated

Parameters:

board ID if multiple boards installed.

Returns:

0 if not removed, 1 if removed

MID2246_API int SN_Repaint (HDC hdc)

Repaint callback should be called when application receives a WM_PAINT event. This is
necessary to notify the video renderer of a repaint event.

Parameters:

hdc device context handle

Returns:

0 on success

MID2246_API int SN_OnDisplayModeChanged (int board)

Informs the video renderer that a WM_DISPLAYCHANGE message has been received by
the application This callback should be called when the application has a
WM_DISPLAYCHANGE event

Returns:

0 on success

Function Documentation - Recording functions

MID2246_API int SN_StartStream (int board = 0)

Starts the streaming of video and audio

33

Advertising