Sensoray 811 Windows SDK User Manual

Page 21

Advertising
background image

MID811_COLORSPACE colorspace,

int devid,

);

Changes default colorspace mode. Setting depends on capture mode. For display, YUY2(default is
the most efficient). If capturing BMPs, it may be better, depending on the application, to set to
RGB24 to capture the images without a SW transform.

Parameters

colorspace

MID811_COLORSPACE_YUY2, COLORSPACE_RGB32, COLORSPACE_RGB24,

COLORSPACE_UYVY. S811_SnapshotToFile requires YUY2 or RGB24.

devid

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

Returns

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

MID811_API int S811_GetFrame(

long inSize,

unsigned char *pFrame,

BITMAPINFOHEADER *pBMI,

int devid

);

S811_GetFrame retrieves current frame for a streaming graph. Snapshots must be enabled.

Parameters

inSize

size of pFrame buffer supplied (should be at least 768*576*3). If too small, an error will be

returned.

pFrame

pointer to buffer of size inSize where frame is stored

pBMI

pointer to bitmap info.

devid

21

Advertising