Sensoray 812 Windows User Manual
Page 19

0 on success, negative value if error (see mid812types.h for error codes list).
MID812_API int S812_SetColorSpace(
MID812_COLORSPACE cspace,
int devid,
int strmidx
);
Sets the colorspace for preview and for callback streaming. Please note that for preview if the
video card does not support the colorspace (typically most modern video cards do not support
RGB565), performance problems may result.
Parameters
cspace
colorspace of the RAW data. MID812_COLORSPACE_YUY2, MID812_COLORSPACE_UYVY,
MID812_COLORSPACE_RGB565.
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).
MID812_API int S812_GetColorSpace(
MID812_COLORSPACE *cspace,
int devid,
int strmidx
);
Returns the current colorspace setting.
Parameters
cspace
colorspace of the RAW data. MID812_COLORSPACE_YUY2, MID812_COLORSPACE_UYVY,
MID812_COLORSPACE_RGB565.
devid
device id in the system (use 0 with a single board installed).
19