Technical Manual
© 2006-2010 by HIKVISION. All rights reserved. 40
*pHeight height for the picture
5.1.19. int HW_GetYV12Image(int hChannel, char* pBuffer, ULONG nSize);
Explanation:
Capture current image and save to buffer(format is YV12)
Parameter:
hChannel channel handler
pBuffer the buffer that to be saved.The size must
bigger than (*pWidth)*(*pHeight)*3/2
nSize the size of the buffer
5.1.20. int HW_ConvertToBmpFile(char * pBuf,ULONG nSize,ULONG nWidth,ULONG
nHeight,char *sFileName,ULONG nReserved);
Explanation:
covert the YV12 image to the BMP file
Parameter:
pBuf the buffer for the image
nSize the size of the buffer
nWidth the width of the image
nHeight the height of the image
sFileName the file name of the BMP
nReserved reserved
5.1.21. int HW_GetSpeed(int hChannel,long *pSpeed);
Explanation:
Get the speed for decodeing;
Parameter:
hChannel channel handler;
*pSpeed speed: -4 ~ 4
5.1.22. int HW_SetSpeed(int hChannel,long nSpeed);
Explanation:
Set the decoding speed;
-4 is stop,then call with HW_Pause(hChannel,0) could play just one frame
-3 ------ 1/8
-2 ------ 1/4
-1 ------ 1/2
0 ------ normal
1 ------ 2 double fast
2 ------ 4 multiple fast
3 -------8 multiple fast
4 ------- the highest speed
Parameter: