beautypg.com

Sensoray 2224 Windows User Manual

Page 47

background image

wchar_t *fileName,

HANDLE hdev

);

Same as S2226_StartPreviewAndRecord, but uses widechar or Unicode filenames.
MID2226_API int S2226_SetRawPreviewSize(

int size

HWND hwnd,

char *fileName,

HANDLE hdev

);

Sets the size of the uncompressed (Raw) preview window. This must be called before the preview
is started. Any scaling above 640x480 will be at reduced frame rate due to USB2.0 bandwidth
limitations. 1280x720 is not available for 1080 inputs. 1920x1080 is not available for 720P inputs.
The larger scalings require the latest firmware from Sensoray. The firmware update may be
updated from the Sensoray website free of charge.

Parameters

size

Size of the uncompressed (Raw) preview window. Valid values are
MID2226_RAWPREVIEW_320_240, MID2226_RAWPREVIEW_640_480,

MID2226_RAWPREVIEW_1280_720, MID2226_RAWPREVIEW_1920_1080

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_StartRawPreview(

HWND hwnd,

char *fileName,

HANDLE hdev

);

47

This manual is related to the following products: