
Technical Manual
© 2006-2010 by HIKVISION. All rights reserved.
31
MOTION_DETECTION_CALLBACK MotionDetectionCallback
call back function when detect some motion
int reserved reserved
MotionDetectionCallback (ULONG channelNumber,
Int
bMotionDetected,
Void *context)
Parameter:
ULONG channelNumber the number for the channel
;
int
bMotionDetected the flag that be sign when motion. If there have motion in
areas set, the bMotionDetected will be1
,
else is 0.
void *context
Explanation:
this is the expand for the motion detection.
Return value:
1—
success; -1 – failed;
Notes: The adaptive function described below is invalid in DS-42xx card.
Please compare the parameter iGrade and 0x80000000 with the OR operator
(iGrade|0x80000000), then the new algorithm will be adopted .With the new algorithm, the
precision of motion detection is greatly improved.
4.2.56.
int SetAudioPreview(int channelHandle, int bEnable);
Parameter
:
int channelHandle channel handle
int bEnable enable
Explanation:
To set audio preview. There is only 1 channel of all the audio inputs to the cards selected
outputting to sound board.
Return value:
0—success; -1 – failed;
4.2.57.
int GetSoundLevel(int channelHandle)
Parameter:
int channelHandle
channel handle
Explanation:
To get current audio input level of the current channel. Attention should be paid that the
return value will no be zero even if no audio input is connected due to the background noise.
Return value:
>0 – sound level; -1 - fail;
4.2.58.
int RegisterImageStreamCallback(IMAGE_STREAM_CALLBACK, void *context)
Parameter:
IMAGE_STREAM_CALLBACK
callback function