⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hcnetsdk.h

📁 SDK DVR/DVS HIKVISION
💻 H
📖 第 1 页 / 共 5 页
字号:
#define HD600						5
#define JC4116						6
#define PELCO_DWX					7
#define PELCO_D						8
#define VCOM_VC_2000				9
#define NETSTREAMER					10
#define SAE_YAAN					11
#define SAMSUNG						12
#define Kalatel_312		 			13
#define CELOTEX						14
#define TLPELCO_P					15
#define TL_HHX2000					16
#define BBV							17
#define RM110						18
#define KC3360S						19
#define ACES						20
#define ALSON						21
#define INV3609HD					22
#define HOWELL						23
#define TC_PELCO_P					24
#define TC_PELCO_D					25
#define AUTO_M						26
#define AUTO_H						27
#define ANTEN						28
#define CHANGLIN					29
#define DELTADOME					30
#define XYM_12						31
#define ADR8060						32
#define EVI_D30						33
#define Demo_Speed					34
#define DM_PELCO_D					35
#define ST_832						36
#define LC_D2104					37
#define HUNTER						38
#define A01							39
#define TECHWIN						40
#define WEIHAN						41
#define LG							42
#define D_MAX						43
#define PANASONIC					44
#define KTD_348						45
#define INFINOVA					46
#define PIH_7625					47
#define LCU 						48
#define DENNARD_DOME    			49
#define PHLIPS						50
#define SAMPLE						51
#define PLD							52
#define PARCO						53
#define HY							54
#define NAIJIE						55
#define CAT_KING					56
#define YH_06						57
#define SP9096X						58
#define M_PANEL						59
#define M_MV2050					60
#define SAE_QUICK					61
#define PEARMAIN					62
#define NKO8G						63
#define DH_CC440					64
#define TX_CONTROL_232				65
#define	VCL_SPEED_DOME				66
#define	ST_2C160					67
#define TDWY						68
#define TWHC						69
#define USNT						70
#define KLT_NVD2200PS				71
#define VIDO_B01                    72
#define LG_MULTIX                   73
#define ENKEL                       74
#define YT_PELCOD                   75
#define  HIKVISION				    76
#define  PE60						77
#define  LiAo						78
#define  NK16                       79
#define  DaLi                       80
#define  HN_4304                    81
#define  VIDEOTEC                   82
#define  HNDCB                      83
#define  Lion_2007                  84
#define  LG_LVC_C372                85
#define  Gold_Video                 86
#define  NVD1600PS                  87
#define TC615P						88
#define NANWANG						89
#define NANWANG_1602				90
#define SIEMENS						91
#define WVCS850						92
#define PHLIPS_2					93
#define PHLIPS_3					94
#define AD							95
#define TYCO_AD						96
#define VICON						97
#define TKC676						98
#define YAAN_NEW					99
#define DL_NVS_1Z					100
#define i3_Z1200					101
#define i3_Z2200					102
//PTZ
typedef struct{
	DWORD dwSize;
	DWORD dwBaudRate;		//baudrate(bps):0-50,,1-75, 2-110, 3-150, 4-300, 5-600, 6-1200, 7-2400, 8-4800, 9-9600, 10-19200, 11-38400, 12-57600, 13-76800, 14-115.2k;
	BYTE byDataBit;			//data bits: 0-5 bits, 1-6 bits, 2-7 bits, 3-8 bits;
	BYTE byStopBit;			//stop bits: 0-1bit, 1-2 bits;
	BYTE byParity;			//parity: 0-no parity, 1-odd, 2-even;
	BYTE byFlowcontrol;		//flow control: 0-none, 1-soft, 2-hard;
	WORD wDecoderType;		//PTZ type: 0-YouLi, 1-LiLin-1016, 2-LiLin-820, 3-Pelco-p, 4-DM DynaColor, 5-HD600, 6-JC-4116, 7-Pelco-d WX, 8-Pelco-d PICO, etc;
	WORD wDecoderAddress;	//PTZ address:0 - 255
	BYTE bySetPreset[MAX_PRESET];		/* enable setup preset: 0-disable, 1-enable*/
	BYTE bySetCruise[MAX_PRESET];		/* enable setup sequence: 0-disable,1-enable */
	BYTE bySetTrack[MAX_PRESET];		/* enable setup cruise: 0-disable,1-enable*/
}NET_DVR_DECODERCFG,*LPNET_DVR_DECODERCFG;

typedef struct tagPOINT_FRAME
{
	int xTop; //coordinates X where the frame starts
	int yTop; //coordinates Y where the frame starts
	int xBottom; //coordinates X where the frame ends
	int yBottom; //coordinates Y where the frame ends
	int bCounter; //draw frame direction: 1-NW, 2-NE, 3-SW, 4-SE
}NET_DVR_POINT_FRAME, *LPNET_DVR_POINT_FRAME;

//RS232
typedef struct{
	char sRemoteIP[16];					//remote IP
	char sLocalIP[16];					//local IP
	char sLocalIPMask[16];				//mask IP
	BYTE sUsername[NAME_LEN];			//user name
	BYTE sPassword[PASSWD_LEN];			//password
	BYTE byPPPMode;						//PPP mode: 0-active, 1-passive
	BYTE byRedial;						//callback: 0-disable, 1-enable
	BYTE byRedialMode;					//callback mode: 0-by dialer, 1-preset dail number
	BYTE byDataEncrypt;					//data encrpty: 0-disable, 1-enable
	DWORD dwMTU;						//MTU
	char sTelephoneNumber[PHONENUMBER_LEN];   //phone number
}NET_DVR_PPPCFG,*LPNET_DVR_PPPCFG;

typedef struct{
	DWORD dwSize;
	DWORD dwBaudRate;		//baudrate(bps):0-50, 1-75, 2-110, 3-150, 4-300, 5-600, 6-1200, 7-2400, 8-4800, 9-9600, 10-19200, 11-38400, 12-57600, 13-76800, 14-115.2k;
	BYTE byDataBit;			//data bit: 0-5 bits, 1-6 bits, 2-7 bits, 3-8 bits;
	BYTE byStopBit;			//stop bit: 0-1 bit, 1-2 bits;
	BYTE byParity;			//parity: 0-no parity, 1-odd, 2-even
	BYTE byFlowcontrol;		//flow control: 0-none, 1-soft, 2-hard
	DWORD dwWorkMode;		//work mode:0-PPP, 1-console, 2-transparent channel
	NET_DVR_PPPCFG struPPPConfig;
}NET_DVR_RS232CFG,*LPNET_DVR_RS232CFG;

//alarm input
typedef struct{
	DWORD dwSize;
	BYTE sAlarmInName[NAME_LEN];	//name
	BYTE byAlarmType;				//sensor type: 0-normal open (N.O) 1- normal close (N.C)
	BYTE byAlarmInHandle;			//enable handle
	NET_DVR_HANDLEEXCEPTION struAlarmHandleType;	//handle mode
	NET_DVR_SCHEDTIME struAlarmTime[MAX_DAYS][MAX_TIMESEGMENT];	//alarm input work schedule
	BYTE byRelRecordChan[MAX_CHANNUM];		//trigger recrod channel, 1 - trigger this channel
	BYTE byEnablePreset[MAX_CHANNUM];		//enable trigger prest
	BYTE byPresetNo[MAX_CHANNUM];			//preset index, one alarm input can trigger preset of multi-channel
											//0xff means not trigger preset
	BYTE byEnableCruise[MAX_CHANNUM];		//enable trigger sequence
	BYTE byCruiseNo[MAX_CHANNUM];			//sequence index
	BYTE byEnablePtzTrack[MAX_CHANNUM];		//enable trigger cruise
	BYTE byPTZTrack[MAX_CHANNUM];			//cruise index
}NET_DVR_ALARMINCFG,*LPNET_DVR_ALARMINCFG;

//alarm information sent to the remote host
typedef struct{
	DWORD dwAlarmType;			/*0-switch alarm, 1-HDD full, 2-signal lost, 3-motion detect, 4-HDD not formatted ,5-write or read HDD error,6-mask alarm ,7-input and output video standard not match, 8-illegal access*/
	DWORD dwAlarmInputNumber;	/*alarm input No.*/
	DWORD dwAlarmOutputNumber[MAX_ALARMOUT];/*related alarm output for alarm input, 1 means that alarm output*/
	DWORD dwAlarmRelateChannel[MAX_CHANNUM];/*related record channel for alarm input, 1 means the channel,dwAlarmRelateChannel[0] meand channel 1*/
	DWORD dwChannel[MAX_CHANNUM];	/*represent channel when dwAlarmType is 2 or 3, dwChannel[0] represents channel 0*/
	DWORD dwDiskNumber[MAX_DISKNUM];/*represent HDD index when dwAlarmType is 4*/
}NET_DVR_ALARMINFO,*LPNET_DVR_ALARMINFO;

//DVR alarm output
typedef struct{
	DWORD dwSize;
	BYTE sAlarmOutName[NAME_LEN];	/* name */
	DWORD dwAlarmOutDelay;			/* alarm output delay time (-1 -- unlimited) */
	NET_DVR_SCHEDTIME struAlarmOutTime[MAX_DAYS][MAX_TIMESEGMENT];/* alarm output work schedule */
}NET_DVR_ALARMOUTCFG,*LPNET_DVR_ALARMOUTCFG;

//DVR local display parameter
typedef struct{
	DWORD dwSize;
	BYTE byPreviewNumber;	//local preview number: 0-1 screen, 1-4 screen, 2-9 screeb, 3-16 screen,0xff:as many as it can
	BYTE byEnableAudio;		//enabel audio preview: 0-disable,1-enable
	WORD wSwitchTime;		//switch time:0-never, 1-5s,2-10s,3-20s,4-60s,5-120s,6-300s
	BYTE bySwitchSeq[MAX_WINDOW];//layout
}NET_DVR_PREVIEWCFG,*LPNET_DVR_PREVIEWCFG;

//DVR video output
typedef struct {
	WORD wResolution;						/* resolution */
	WORD wFreq;								/* frequence */
	DWORD dwBrightness;						/* brightness */
}NET_DVR_VGAPARA;

typedef struct{
	WORD wDisplayLogo;						/* show channel name */
	WORD wDisplayOsd;						/* show time */
}NET_DVR_MATRIXPARA;

typedef struct{
	BYTE byVideoFormat;						/* video format: 0-PAL,1-NTSC	*/
	BYTE byMenuAlphaValue;					/* menu opacity */
	WORD wScreenSaveTime;					/* screen save time */
	WORD wVOffset;							/* video out offset */
	WORD wBrightness;						/* video out brightness */
	BYTE byStartMode;						//
	char reservedData;
}NET_DVR_VOOUT;

typedef struct {
	DWORD dwSize;
	NET_DVR_VOOUT struVOOut[MAX_VIDEOOUT];
	NET_DVR_VGAPARA struVGAPara[MAX_VGA];	/* VGA parameter */
	NET_DVR_MATRIXPARA struMatrixPara;		/* MATRIX parameter */
}NET_DVR_VIDEOOUT,*LPNET_DVR_VIDEOOUT;

//DVR user parameter
typedef struct{
	BYTE sUserName[NAME_LEN];	/* user name */
	BYTE sPassword[PASSWD_LEN];	/* password */
	DWORD dwLocalRight[MAX_RIGHT];	/* user right */
					/*array0: local PTZ control*/
					/*array1: local manual record*/
					/*array2: local playback*/
					/*array3: local parameter setup*/
					/*array4: local information view*/
					/*array5: local advanced operation(upgrade, HDD format, reboot, shut down)*/
	DWORD dwRemoteRight[MAX_RIGHT];	/* user right */
					/*array0: remote PTZ control*/
					/*array1: remote manual record*/
					/*array2: remote playback*/
					/*array3: parameter remote setup*/
					/*array4: remote view information, log*/
					/*array5: remote advanced operation(upgrade, HDD format, reboot, shut down)*/
					/*array6: voice dialogue*/
					/*array7: remote preview*/
					/*array8: remote control alarm information send to host, control alarm output*/
					/*array9: remote control local video output*/
					/*array10: remote control serial port*/
	char sUserIP[16];		/* use IP (0 -- agree any IP adderss) */
	BYTE byMACAddr[MACADDR_LEN];	/* use MAC */
}NET_DVR_USER_INFO,*LPNET_DVR_USER_INFO;

typedef struct{
	DWORD dwSize;
	NET_DVR_USER_INFO struUser[MAX_USERNUM];
}NET_DVR_USER,*LPNET_DVR_USER;

//DVR用户参数扩展
typedef struct{
	BYTE sUserName[NAME_LEN];	/* user name */
	BYTE sPassword[PASSWD_LEN];	/* password */
	DWORD dwLocalRight[MAX_RIGHT];	/* user right */
					/*array0: local PTZ control*/
					/*array1: local manual record*/
					/*array2: local playback*/
					/*array3: local parameter setup*/
					/*array4: local information view*/
					/*array5: local advanced operation(upgrade, HDD format, reboot, shut down)*/
	DWORD dwLocalPlaybackRight;	/* local playback channel bit0 -- channel 1*/
	DWORD dwRemoteRight[MAX_RIGHT];	/* user right */
					/*array0: remote PTZ control*/
					/*array1: remote manual record*/
					/*array2: remote playback*/
					/*array3: parameter remote setup*/
					/*array4: remote view information, log*/
					/*array5: remote advanced operation(upgrade, HDD format, reboot, shut down)*/
					/*array6: voice dialogue*/
					/*array7: remote preview*/
					/*array8: remote control alarm information send to host, control alarm output*/
					/*array9: remote control local video output*/
					/*array10: remote control serial port*/
	DWORD dwNetPreviewRight;	/* remote preview channel bit0 -- channel 1*/
	DWORD dwNetPlaybackRight;	/* remote playback channel bit0 -- channel 1*/
	char sUserIP[16];		/* use IP (0 -- agree any IP adderss) */
	BYTE byMACAddr[MACADDR_LEN];	/* use MAC */
}NET_DVR_USER_INFO_EX,*LPNET_DVR_USER_INFO_EX;

typedef struct{
	DWORD dwSize;
	NET_DVR_USER_INFO_EX struUser[MAX_USERNUM];
}NET_DVR_USER_EX,*LPNET_DVR_USER_EX;

//DVR exception
typedef struct{
	DWORD dwSize;
	NET_DVR_HANDLEEXCEPTION struExceptionHandleType[MAX_EXCEPTIONNUM];
	/*array0- HDD full, 1- HDD fail, 2- network error,3-IP conflict, 4-illegal access,5-input and output video standard not match*/
}NET_DVR_EXCEPTION,*LPNET_DVR_EXCEPTION;

typedef struct
{
	char sFileName[100];			//file name
	NET_DVR_TIME struStartTime;		//file start time
	NET_DVR_TIME struStopTime;		//file end time
	DWORD dwFileSize;				//file size
}NET_DVR_FIND_DATA,*LPNET_DVR_FIND_DATA;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -