
Technical Manual
© 2006-2010 by HIKVISION. All rights reserved.
24
To set the precision of the signal detection. The range is 0-100, default is 20. If the video
signal is too weak to change high frequency, there will cause display‖ No Signal‖. To
get rid of this, you could change the precision. The value is big, the precision is low.
Return value:
0 – success; -1 - fail;
4.2.38.
int GetVideoSignal(int channelHandle);
Parameter
:
int channelHandle channel handle
Explanation
:
To set the information of connect video signal. It can be used in alarming for video lost;
Return value
:
1 - No video signal
0 - valid video signal
-1 – Invalid parameter
4.2.39.
int SetInputVideoPosition(int hChannelHandle, unsigned int x, unsigned int y)
Parameter:
int channelhandle
channel handle
unsigned int x
the X axis of the coordinate, the defaulted value is 8
unsigned int y
the Y axis of the coordinate, the defaulted value is 2
Explanation:
to set the position of video input, some camera preview may have some black line in
the left. (x,y) is original picture coordinate of top left camera input in system processing
pictures. X must be multiple of 2.The parameter range of (x,y) axis have relationship
with the mode of the cameras. If the appointed value is not matching with the camera
input, it may cause the stillness of the picture or roll in horizontal or vertical direction.
Please be careful to call this function.
DS-42xx card does not support this function.
Return value:
0—success; -1 – failed;
4.2.40.
int SetOsdDisplayMode (int channelHandle, int brightness, int translucent,
int twinkInterval,unsigned short *format1, unsigned short *format2););
Parameter:
int channelHandle channel handle
int Brightness display brightness of OSD , 255 means brightest and 0 means
darkest
DS-42xx card only support black and white, 16 is
black and 235 is white. If the value is less than 128, it will
be black, if the value is more than 128, it will be white.
int translucent whether translucent when overlay OSD string over active video.
int twinkleInterval when the value is 1, brightness of OSD will be adjusted according
to brightness of background. When background is too bright, brightness of OSD will be lower