Technical Manual
© 2006-2010 by HIKVISION. All rights reserved. 48
5.1.53. int HW_LocateByFrameNumber(int hChannel,UINT frmNum);
Parameter:
int hChannel channel handler
UINT frmNum the frame number That want to locate
Explanation:
Locate the playing by the frame number. It will be valid after set the index and on file
mode. The total frame numbers could get by calling HW_GetFileTotalFrames().
New API in v4.2 SDK
5.1.54. int HW_InputDataByFrame(int hChannel,char* pBuf,int nSize)
Parameter:
hChannel channel handler;
pBuf the address for the data buffer
nSize the size for the data buffer
Explanation:
The function should be called after open the stream, and processes in more real-time
Return: nSize if call success, else -1
5.1.55. HW_SetDecoderPostProcess(int hChannel, UINT param)
Explanation:
Avoid the flash of the image while decoding.
Parameter:
int hChannel channel handler
UINT param 0: end the process 1: start the process
New API in v4.3 SDK
5.1.56. int RegisterDecoderVideoCaptureCallback(DECODER_VIDEO_CAPTURE_CALLBACK
DecoderVideoCaptureCallback,void *context)
Explanation:
Invoke this API to register a callback function for getting decoded video data.
Parameters:
DecoderVideoCaptureCallback Callback function;
void *context Context when invoke callback function
Callback function description:
typedef void (*DECODER_VIDEO_CAPTURE_CALLBACK)(
UINT nChannelNumber, void *DataBuf,
UINT width, UINT height,
UINT nFrameNum, UINT nFrameTime,
SYSTEMTIME*pFrameAbsoluteTime, void *context)
UINT nChannelNumber Channel handle
void *DataBuf Address of buffer
UINT width Width of image
UINT height Height of image