S2263_getsample, S2263_startcallback – Sensoray 2263 User Manual

Page 14

Advertising
background image

devid

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

strmidx

stream index (0 or 1).

S2263_GetSample

MID2263_API int __stdcall S2263_GetSample (

unsigned char

*data,

unsigned int

inlen,

unsigned int

*outlen,

int

timeout,

int

devid,

int

strmidx);

Grabs sample data from a snapshot stream started with

S2263_StartSnapshot, S2263_StartPreview or S2263_StartRecord.

S2263_GetSample is used only for uncompressed (UYVY) streams.
data

a pointer to the sample data buffer.

inlen

length of data buffer.

outlen

pointer to the length of data copied.

timeout

how long to wait in milliseconds for next frame if data not available. Use 0
for non-blocking operation.

devid

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

strmidx

stream index (0 or 1).

S2263_StartCallback

MID2263_API int __stdcall S2263_StartCallback (

int

devid,

int

strmidx);

Start callback allows the user to capture data to a callback function that was
previously registered with S2263_RegisterCallback. Care must be taken to

14

Advertising