S2253_startcallback, S2253_registercallback, Mode control functions – Sensoray 2253 Windows User Manual
Page 21: S2253_setvidsys

S2253_StartCallback
MID2253_API int __stdcall S2253_StartCallback (
int
devid,
int
strmidx);
Start callback allows the user to capture data to a callback function that was
previously registered with S2253_RegisterCallback. Care must be taken to
minimize time spent in the callback routine otherwise the buffers used by
DirectShow (the Windows capture API) will overflow. See
S2253_RegisterCallback for details about the callback routine. Use
S2235_StopStream to stop streaming to the callback function.
devid
device id in the system (use 0 with a single board installed).
strmidx
stream index (0 or 1).
S2253_RegisterCallback
MID2253_API int __stdcall S2253_StartCallback (
cbfunc_t
callback,
int
devid,
int
strmidx);
Registers a callback. Care must be taken to minimize time spent in the
callback routine otherwise the buffers used by DirectShow (the Windows
capture API) will overflow.
callback
callback function to use. Callback function should be defined as follows: “int
callback_name(BYTE *data, long size, int devid, int strmidx).
devid
device id in the system (use 0 with a single board installed).
strmidx
stream index (0 or 1).
Mode Control Functions
S2253_SetVidSys
MID2253_API int __stdcall S2253_SetVidSys (
MID2253_VIDSYS
vidsys,
int
devid);
21