
Technical Manual
© 2006-2010 by HIKVISION. All rights reserved.
37
5.
Decoding Card SDK
5.1. API of Encoding Card
Note: If without special description. The return values always is 0 if calling is success and is -1 if
calling is failed. You could call GetLastErrorNum to get the failed info.
Decoding card does not support DS-42xx Card
5.1.1.
int HW_InitDecDevice(long *pDeviceTotal);
Explanation:
Init the system.
Parameter:
pDeviceTotal the decode channle
5.1.2.
int HW_ReleaseDecDevice();
Explanation:
close the system, should be called before exit.
5.1.3.
int HW_ChannelOpen(long nChannelNum,int* phChannel);
Explanation:
Open the decode channel and get the channel handler
Parameter:
nChannelNum
channel number, begin from 0
phChannel
channel handler
5.1.4.
int HW_ChannelClose(int hChannel);
Explanation:
Close the decode channel;
Parameter:
hChannel
channel handler
5.1.5.
int HW_OpenStream(int hChannel,char* pFileHead,int nHeadSize);
Explanation:
Open the interface for the Stream mode
(
just as open the file
)
;
Parameter:
hChannel
channel handler
pFileHead
the data for the file head
;
nHeadSize
the length for the file head
;