跳转至

NET_SDK_IVE_EventData_T

结构体定义

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
typedef struct
{
    unsigned int type;                     
    unsigned int status;                   
    unsigned int width;                    
    unsigned int height;                   
    unsigned int dataLen;                  
    unsigned int targetCnt;                
    unsigned int targetDataLen[40];        
    LONGLONG releativePts;                 
    unsigned char extendFlag;              
    unsigned char reserve1[3];             
    unsigned int globalEnterCarCounter;    
    unsigned int globalEnterPersonCounter; 
    unsigned int globalEnterBikeCounter;   
    unsigned int globalLeaveCarCounter;    
    unsigned int globalLeavePersonCounter; 
    unsigned int globalLeaveBikeCounter;   
    unsigned char reserve[36];             
} NET_SDK_IVE_EventData_T;
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct NET_SDK_IVE_EventData_T
{
    public UInt32 type;
    public UInt32 status;
    public UInt32 width;
    public UInt32 height;
    public UInt32 dataLen;
    public UInt32 targetCnt;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U4, SizeConst = 40)]
    public UInt32[] targetDataLen;
    public Int64 releativePts;
    public byte extendFlag;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 3)]
    public byte[] reserve1;
    public UInt32 globalEnterCarCounter;
    public UInt32 globalEnterPersonCounter;
    public UInt32 globalEnterBikeCounter;
    public UInt32 globalLeaveCarCounter;
    public UInt32 globalLeavePersonCounter;
    public UInt32 globalLeaveBikeCounter;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 36)]
    public byte[] reserve;
}

功能描述

事件数据原图结构体。

成员说明

成员 类型 备注
type unsigned int 图片编码类型,0:JPG; 1:YUV。
status unsigned int 状态,0:invalid; 1:valid; 2:saved。
width unsigned int 图片宽度。
height unsigned int 图片高度。
dataLen unsigned int 图片数据长度。
targetCnt unsigned int 目标个数。
targetDataLen unsigned int[40] 每个目标的长度。
releativePts LONGLONG 相对时间戳。
extendFlag unsigned char 0 表示旧协议,不支持全局计数器,1表示支持全局计数器。
reserve1 unsigned char[3] 预留。
globalEnterCarCounter unsigned int 总进入车辆数,一直累计。
globalEnterPersonCounter unsigned int 总进入人数,一直累计。
globalEnterBikeCounter unsigned int 总进入非数,一直累计。
globalLeaveCarCounter unsigned int 总离开车辆数,一直累计。
globalLeavePersonCounter unsigned int 总离开车辆数,一直累计。
globalLeaveBikeCounter unsigned int 总离开车辆数,一直累计。
reserve unsigned char[36] 预留字段。
错误码