EasyManua.ls Logo

HIKVISION DS-4 Series - 4.2.61. SaveYUVToBmpFile(); 4.2.62. GetJpegImage(); 4.2.63. SetupSubChannel()

HIKVISION DS-4 Series
51 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Technical Manual
© 2006-2010 by HIKVISION. All rights reserved. 33
0success; -1 failed;
Remarks:
DS-42xxHCI card supports CIF raw image;
DS-42xxHFVI card supports 4CIF raw image;
DS-40xxHSI card supports CIF raw image;
DS-40xxHCI/HCSI card supports 4CIF raw image.
4.2.61. int SaveYUVToBmpFile(char *FileName, unsigned char *yuv, int Width, int Height);
Parameter :
char *FileName file name
unsigned char *yuv image pointer of YUV format
int Width width of YUV image
int Height height of YUV image
Explanation :
To transfer the YUV image to BMP file. If it is DS40xxHCI to capture, the Width is 704,
Height is 576 (in PAL) or 480(in NTSC); It can be judged according to the size of the
buffer.
Return value:
0success; -1 failed;
4.2.62. int GetJpegImage(int hChannelHandle,unsigned char *ImageBuf,
unsigned long *Size,unsigned int nQuality);
Parameter :
int channelHandle channel handle
unsigned char *ImageBuf the pointer of image buffer
unsigned long* Size the pointer of the size
IN: the buffer size
OUT: the size of the image
unsigned int nQuality the quality of the JPEG(1100, 100 is best)
Explanation:
Get JPEG image
Return value:
0success; -1 failed;
Remarks:
DS-42xxHCI card supports CIF JPEG image;
DS-42xxHFVI card supports 4CIF JPEG image;
DS-40xxHSI card supports CIF JPEG image;
DS-40xxHCI/HCSI card supports 4CIF JPEG image.
4.2.63. int SetupSubChannel(int channelHandle, int iSubChannel);
Parameter:
int channelHandle channel handle
int iSubChannel subchannel

Related product manuals