
Technical Manual
© 2006-2010 by HIKVISION. All rights reserved.
32
callback function: (*IMAGE_STREAM_CALLBACK)
(UINT channelNumber, void *context)
UINT channelNumber
channel no.
void *context
the context provided when call the callback function
Explanation:
Register the user to get the original picture stream function, and user can get the real-time
video data on YUV420 format.
Return value:
0 - success; -1 - failed;
Remarks:
DS-42xxHCI/HFVI Card does not support this function
4.2.59.
int SetImageStream(int hChannelHandle, int bStart, unsigned int fps,
unsigned width, unsigned height, unsigned char* imageBuf)
Parameter:
int hChannelHandle
Channel handle
int bStart
1:boot capture, 0: Stop capture
unsigned int
fps
frame rate
unsigned int
width
the width of the picture (should be 1.8,1/4,1/2
original size or twice of the width of CIF)
unsigned int
height
the height of picture(should be1.8,1/4,1/2
original size or twice of the height of CIF)
unsigned char *imageBuffer The address to store data after capturing the picture
Explanation:
User can boot or stop getting original picture data stream through this function, and this
function depends on the host PC processing speed.
Return value:
0—success; -1 – failed;
Remarks:
DS-42xxHCI/HFVI Card does not support this function
4.2.60.
int GetOriginalImage(int channelHandle, unsigned char *ImageBuf, int *Size);
Parameter
:
int channelHandle channel handle
unsigned char*ImageBuf pointer of original image
int *Size size of original image (before calling it, it is the size of
imagebuf, but after calling it, it is the byte
factually used)
Explanation:
To get the original image. The original image of DS40xxHCI is the standard 4CIF format
(including QCIF encoding), the user program can call SaveYUVToBmpFile to create 24
byte bmp file.
Return value: