Sensoray 2224 Windows User Manual
Page 63

image
pointer to retrieved snapshot. (image must be preallocated).
size
size of the image buffer (image).
freezetime
time in milli-seconds to freeze the image( freezing is done on the video output channels of
the 2226).
wait
wait = 1 will wait if operations pending(board is busy), wait = 0 will return err code if board
busy.
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_SnapshotRaw(
BYTE *image,
int size,
image_raw_t *image_raw,
int freezetime,
int wait,
HANDLE hdev
);
Get snapshot data from hardware only. This function does no processing on the image, it just
retrieves a pointer to the raw fields(field 1 will be null for 720p format) in YCrCb format. Image
itself stored in image parameter. image_raw parameter used to indicate where the fields start and
their size.
Parameters
image
pointer to pre-allocated space for image.
size
size of the image buffer (image).
image_raw
63