NET_VCA_RULE_ALARM

Behavior analysis alarm parameter structure.

Structure Definition

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;

Members

dwSize

Structure size

dwRelativeTime

Relative time duration, which is between behavior analysis enabled time and alarm triggered time. It is the UTC time when byRelativeTimeFlag is "1".

dwAbsTime

Absolute time duration, it is the OSD time.

struRuleInfo

Event rule information, see details in the structure NET_VCA_RULE_INFO.

struTargetInfo

Alarm target information, see details in the structure NET_VCA_TARGET_INFO.

struDevInfo

Front-end device information, see details in the structure NET_VCA_DEV_INFO.

dwPicDataLen

Returned picture size: 0-no picture, other values-with picture.

byPicType

0-captured picture, 1-picture for comparison

byRelAlarmPicNum

The number of alarm pictures of linked channel, the actual total number equal to byRelAlarmPicNum+1.

bySmart

0-returned by intelligent devices, 1-returned by Smart devices.

byPicTransType

Picture data transmission mode: 0-binary, 1-URL

dwAlarmID

Alarm ID, 0-invalid. It is used to distinguish the alarms when the alarm type is same.

wDevInfoIvmsChannelEx

Channel No. of platform or system that connecting with device.

byRelativeTimeFlag

Whether the time difference parameter is valid: 0-invalid, 1-valid.

byAppendInfoUploadEnabled

Whether to upload additional information: 0-no, 1-yes.

pAppendInfo

Additional information pointer, see details in the structure NET_VCA_APPEND_INFO, it is valid only when byAppendInfoUploadEnabled is 1.

pImage

Picture pointer

Remarks

The time is parsed from the absolute time according to the following algorithm:
#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)