
Technical Manual
© 2006-2010 by HIKVISION. All rights reserved.
27
int
nLineCount
the lines of the OSD
,
the
unsigned max is 8
short
**Format multiple osd
,
set as the SetOsdDisplayMode.Just
is the pointer to the string.
Explanation:
This is the expand of the SetOsdDisplayMode. It could support 8 lines.
Return value:
0—success; -1 – failed;
4.2.44.
int LoadYUVFromBmpFile(char *FileName, unsigned char *yuv, int BufLen, int *Width,
int *Height);
Parameter
: char *FileName file name
unsigned char *yuv image pointer of YUV format
int BufLen size of YUV buffer
int *Width width returned by YUV image
int *Height height returned by YUV image
Explanation
: To transfer the 24 bits bmp file to YUV format data, among them the width and
length of the BMP should be the multiple of 16, and the max support 128*128
pixels.
Return value:
0—success; -1 – failed;
4.2.45.
int SetLogoDisplayMode(int channelHandle, unsigned short ColorKeyR, unsigned short
ColorKeyG, unsigned short ColorKeyB, unsigned short bTranslucent, int TwinkleInterval);
Parameter
:
int channelHandle channel handle;
unsigned short
ColorKeyR, ColorKeyG,, ColorKeyB, color of LOGO image will be
completely translucent during display
unsigned short bTranslucent whether do it translucently processing about LOGO
image
int TwinkleInterval
Set the time about flash . It can be expressed by hex
0xXXYY , and XX is display time and YY is the time of stopping display . When XX
and YY all are 0 it can display normally
Explanation:
To set the display mode for the logo.
Return value:
0—success; -1 – failed;
4.2.46.
int SetLogo(int channelHandle, int x, int y, int w, int h, unsigned char *yuv);
Parameter
: int channelHandle channel handle
int x top left corner position x(0-703)
int y top left corner position y (0-575)
int w width (0-128)
(the size of it must be the same as the width of the original image )
int h height (0-128)