
Technical Manual
© 2006-2010 by HIKVISION. All rights reserved.
35
4.2.67.
int SetDeInterlace(int hChannelHandle,UINT mode,UINT level)
Parameter:
int channelHandle channel handle
UINT mode
:
0: this channel don‘t use deinterlace
1: use deinterlace and set the Level,
DS-42xx Card do not
support this mode
2:
SDK will use the default arithmetic, and parameter Level
will be invalid.
UINT Level
:
0
-
10
,
0 is the most weakness, and default is 5. O
nly valid when
mode is 1.
Explanation:
Set the deinterlace and intensity.
Return value:
0—success; -1 – failed;
4.2.68.
int ResetDSP(int dspNumber)
Note: It is invalid now.
4.2.69.
int SetWatchDog(unsigned int boardNumber,int bEnable)
Parameter:
int boardNumber
the index for the board
Explanation:
Set the watchdog. There have 4 pin in the DS4016HCS. It must connect the reset in PC
with it then link to the motherboard.
Return value:
0—success; -1 – failed;
V4.2 New add
4.2.70.
int StartVideoPreviewEx(int hChannelHandle, PREVIEWCONFIG* pPreviewConf,
UINT useSyncSem, UINT mode)
Parameter:
int channelHandle channel handle;
PREVIEWCONFIG* pPreviewConf
the struct refer to section 2.5
UINT
useSyncSem
1 means use the semaphore to sync the preview.
The application init a semaphore
,
then provide
to sdk by pPreviewConf->SyncSem. The sdk
will post this sem after a new frame ready.
0 means use the timer to sync the preview
mode
NORMAL_SIZE, D1_SIZE, DCIF_SIZE, QCIF_SIZE, MINI_SIZE
The definition as follows:
#define NORMAL_SIZE 0 /* just not change */
#define D1_SIZE 1 /* 704 x 576 */
#define DCIF_SIZE 2 /* 528 x 288 */