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_
SetMode(int nCamIndex,int nMode)
Purpose:
set the basic format (e.g. 640x480).
This function has to be called before “
iCube
SDK_Start”.
If
iCube
SDK_SetMode is not used, the camera will start with the
default
mode (highest resolution.
return value:
int
stat:
I
C_SUCCESS: success
else:
error
parameters:
int
nCamIndex:
index of camera.
int
nMode:
this value sets the basis format (see table below)
int
iCube
SDK_
GetMode(int nCamIndex,int* pMode)
Purpose: get the basic format.
return value:
int
stat:
IC_SUCCESS: success
else:
error
parameters:
int
nCamIndex:
index of camera.
int*
pMode:
current format.
description
parameters
int
CamIndex,
int
nMode
return value
int
stat
Mode
resolution
0
320x240
QVGA
1
640x480
VGA
2
752x480
WVGA
3
800x600
SVGA
4
1024x768
XGA
5
1280x1024
SXGA
6
1600x1200
UXGA
7
2048x1536
QXGA
8
2592x1944
QSXGA
description
parameters
int
CamIndex,
int
Mode
return value
int
stat