iCube
SERIES SDK API Manual
N E T G m b H A l l R i g h t s R e s e r v e d
IC
u
b
e
S
e
ri
e
s
S
D
K
A
P
I
M
a
n
u
a
l
int
iCube
SDK_
SetCallback (int nCamIndex,int nMode,long (CALLBACK
*CallbackFunc,void* pCBBContext)
Purpose:
sets the callback function.
Only necessary, if Callback-Flag in “
iCube
SDK_Start” is true.
The structure of the callback-function has to be as follows:
long CALLBACK CallbackFunc(BYTE * pBuffer, long lBufferSize,PVOID pContext )
Parameters passed by the Callback-function:
BYTE * pBuffer: pointer to frame data.
long lBufferSize: size of the frame data buffer.
PVOID pContext: context parameter (see below).
return value:
int
stat:
IC_SUCCESS:
success
else:
error
parameters:
int
nCamIndex:
index of camera.
int
nMode:
defines the grabmode.
CALLBACK_RAW:
Data-format, passed to the callback function:
Color-
camera: 8bit/Pixel (Bayer-raw Data)
BW-camera: 8bit/Pixel (Raw Data)
CALLBACK_RGB:
Data-format, passed to the callback function:
Color- camera: 24bit/Pixel (RGB24 Data)
BW-camera: 24bit/Pixel (RGB24 Data)
long*
CallbackFunc: pointer to the callback function.
void* pCBContext:
pointer to user defined argument, which is passed by the callback
function.
description
parameters
int
CamIndex,
int
nMode,
long (CALLBACK*
CallbackFunc),
void*
pCBContext
return value
int
stat