beautypg.com

S2253_startsnapshot, S2253_getsample – Sensoray 2253 Windows User Manual

Page 18

background image

strmidx

stream index (0 or 1).

S2253_StartSnapshot

MID2253_API int __stdcall S2253_StartSnapshot (

int

devid,

int

strmidx);

Starts a snapshot stream. Device will stream and samples will be buffered
until S2253_GetSample is called. Stream will not be previewed or recorded.
Stop stream with S2253_StopStream. Snapshot stream is independent from
preview or record stream. Snapshots can still be obtained with preview or
record by using S2253_EnableSnapshot.
devid

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

strmidx

stream index (0 or 1).

S2253_GetSample

MID2253_API int __stdcall S2253_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

S2253_StartSnapshot, S2253_StartPreview or S2253_StartRecord.
S2253_GetSample is used only for uncompressed (UYVY, Y800) or

MJPEG 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.

18

This manual is related to the following products: