beautypg.com

Sensoray 812 Windows User Manual

Page 17

background image

strmidx

channel index (0-7)

Returns

0 on success, negative value if error (see mid812types.h for error codes list).

MID812_API int S812_StartPreviewAndRecordW(

wchar_t *fileName,

int devid,

int strmidx

);

Same as S812_StartPreviewAndRecord, but uses widechar or Unicode filenames.
MID812_API int S812_SnapshotToFile(

char *filename,

int filetype,

int qual,

int devid,

int strmidx

);

Takes a snapshot and save to file in filename. This function only applies when streaming video
using S812_StartPreview, S812_StartRecord or S812_StartPreviewAndRecord

Parameters

filename

fully qualified file with path (without extension, extension will be added by the SDK).

filetype

file type to save. MID812_FILE_JPEG and/or MID812_FILE_BMP.

devid

device id in the system (use 0 with a single board installed).

strmidx

channel index (0-7)

Returns

0 on success, negative value if error (see mid812types.h for error codes list).

17