Behavior analysis alarm parameter structure.
struct{ DWORD dwSize; DWORD dwRelativeTime; DWORD dwAbsTime; NET_VCA_RULE_INFO struRuleInfo; NET_VCA_TARGET_INFO struTargetInfo; NET_VCA_DEV_INFO struDevInfo; DWORD dwPicDataLen; BYTE byPicType; BYTE byRelAlarmPicNum; BYTE bySmart; BYTE byPicTransType; DWORD dwAlarmID; WORD wDevInfoIvmsChannelEx; BYTE byRelativeTimeFlag; BYTE byAppendInfoUploadEnabled; BYTE *pAppendInfo; BYTE *pImage; }NET_VCA_RULE_ALARM,*LPNET_VCA_RULE_ALARM;
Structure size
Relative time duration, which is between behavior analysis enabled time and alarm triggered time. It is the UTC time when byRelativeTimeFlag is "1".
Absolute time duration, it is the OSD time.
Event rule information, see details in the structure NET_VCA_RULE_INFO.
Alarm target information, see details in the structure NET_VCA_TARGET_INFO.
Front-end device information, see details in the structure NET_VCA_DEV_INFO.
Returned picture size: 0-no picture, other values-with picture.
0-captured picture, 1-picture for comparison
The number of alarm pictures of linked channel, the actual total number equal to byRelAlarmPicNum+1.
0-returned by intelligent devices, 1-returned by Smart devices.
Picture data transmission mode: 0-binary, 1-URL
Alarm ID, 0-invalid. It is used to distinguish the alarms when the alarm type is same.
Channel No. of platform or system that connecting with device.
Whether the time difference parameter is valid: 0-invalid, 1-valid.
Whether to upload additional information: 0-no, 1-yes.
Additional information pointer, see details in the structure NET_VCA_APPEND_INFO, it is valid only when byAppendInfoUploadEnabled is 1.
Picture pointer
#define GET_YEAR(_time_) (((_time_)>>26) + 2000) #define GET_MONTH(_time_) (((_time_)>>22) & 15) #define GET_DAY(_time_) (((_time_)>>17) & 31) #define GET_HOUR(_time_) (((_time_)>>12) & 31) #define GET_MINUTE(_time_) (((_time_)>>6) & 63) #define GET_SECOND(_time_) (((_time_)>>0) & 63)