提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.structure; |
H |
2 |
|
|
3 |
import com.iailab.netsdk.lib.NetSDKLib; |
|
4 |
import com.iailab.netsdk.lib.enumeration.EM_TRFAFFIC_LIGHT_SOURCE; |
|
5 |
|
|
6 |
/** |
|
7 |
* (交通灯事件)对应的数据块描述信息 |
|
8 |
* |
|
9 |
* @author : 47040 |
|
10 |
* @since : Created in 2020/8/29 16:41 |
|
11 |
*/ |
|
12 |
public class ALARM_TRAFFIC_LIGHT_STATE_INFO extends NetSDKLib.SdkStructure { |
|
13 |
|
|
14 |
/** |
|
15 |
* 通道号 |
|
16 |
*/ |
|
17 |
public int nChannelID; |
|
18 |
/** |
|
19 |
* 0:脉冲 1:开始 2:停止 |
|
20 |
*/ |
|
21 |
public int nAction; |
|
22 |
/** |
|
23 |
* 事件名称 |
|
24 |
*/ |
|
25 |
public byte[] szName = new byte[128]; |
|
26 |
/** |
|
27 |
* 时间戳(单位是毫秒) |
|
28 |
*/ |
|
29 |
public double PTS; |
|
30 |
/** |
|
31 |
* 事件发生的时间 |
|
32 |
*/ |
|
33 |
public NET_TIME_EX UTC; |
|
34 |
/** |
|
35 |
* 事件ID |
|
36 |
*/ |
|
37 |
public int nEventID; |
|
38 |
/** |
|
39 |
* 视频分析的数据源地址 |
|
40 |
*/ |
|
41 |
public int nSource; |
|
42 |
/** |
|
43 |
* 帧序号 |
|
44 |
*/ |
|
45 |
public int nFrameSequence; |
|
46 |
/** |
|
47 |
* 红绿灯触发源 枚举{@link EM_TRFAFFIC_LIGHT_SOURCE} |
|
48 |
*/ |
|
49 |
public int emLightSource; |
|
50 |
/** |
|
51 |
* stuLightPeriods元素个数 |
|
52 |
*/ |
|
53 |
public int nLightPeriodsNum; |
|
54 |
/** |
|
55 |
* 每个元素表示一种灯亮的持续时间,时间单位毫秒 |
|
56 |
*/ |
|
57 |
public NET_LIGHTPERIODS_INFO[] stuLightPeriods = new NET_LIGHTPERIODS_INFO[4]; |
|
58 |
/** |
|
59 |
* 交通灯状态,数组下标为车道号,实际只用到了第一个元素 |
|
60 |
*/ |
|
61 |
public NET_TRAFFIC_LIGHT_STATE[] stuLightStates = new NET_TRAFFIC_LIGHT_STATE[8]; |
|
62 |
/** |
|
63 |
* stuLightStates元素个数 |
|
64 |
*/ |
|
65 |
public int nLightStateNum; |
|
66 |
/** |
|
67 |
* 预留字段 |
|
68 |
*/ |
|
69 |
public byte[] byReserved = new byte[1020]; |
|
70 |
|
|
71 |
public ALARM_TRAFFIC_LIGHT_STATE_INFO() { |
|
72 |
for (int i = 0; i < stuLightPeriods.length; i++) { |
|
73 |
stuLightPeriods[i] = new NET_LIGHTPERIODS_INFO(); |
|
74 |
} |
|
75 |
|
|
76 |
for (int j = 0; j < stuLightStates.length; j++) { |
|
77 |
stuLightStates[j] = new NET_TRAFFIC_LIGHT_STATE(); |
|
78 |
} |
|
79 |
|
|
80 |
} |
|
81 |
} |