Sensoray 2224 Windows User Manual
Page 46
);
Starts video preview achieved by decompressing the stream. Available on Windows 7 only. Please
note that H264 requires significant CPU resources to decode. Please see preview in the function
summary for more information about preview.
Parameters
hwnd
handle to display video in (use NULL for pop-up window).
hdev
handle to device (obtained from S2226_OpenBoard).
Returns
0 on success, negative value if error (see mid2226types.h for error codes list).
MID2226_API int S2226_StartPreviewAndRecord(
HWND hwnd,
char *fileName,
HANDLE hdev
);
Starts recording to a file with video preview achieved by decompressing the stream. Available on
Windows 7 only. Please note that H264 requires significant CPU resources to decode. Please see
preview in the function summary for more information about preview.
Parameters
hwnd
handle to display video in (use NULL for pop-up window).
fileName
full path to the target file, no extension.
hdev
handle to device (obtained from S2226_OpenBoard).
Returns
0 on success, negative value if error (see mid2226types.h for error codes list).
MID2226_API int S2226_StartPreviewAndRecordW(
HANDLE hwnd,
46