提交 | 用户 | 时间
|
ce910c
|
1 |
package com.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
/** |
|
4 |
* @author 47081 |
|
5 |
* @version 1.0 |
|
6 |
* @description 视频抓拍速度来源 |
|
7 |
* @date 2021/2/22 |
|
8 |
*/ |
|
9 |
public enum EM_MIX_SNAP_SPEED_SOURCE { |
|
10 |
/** 未知 */ |
|
11 |
EM_SNAP_SPEED_SOURCE_UNKNOWN, |
|
12 |
/** 视频 */ |
|
13 |
EM_SNAP_SPEED_SOURCE_VIDEO, |
|
14 |
/** 雷达 */ |
|
15 |
EM_SNAP_SPEED_SOURCE_RADAR; |
|
16 |
|
|
17 |
public static EM_MIX_SNAP_SPEED_SOURCE getMixSnapSpeedSource(int source) { |
|
18 |
for (EM_MIX_SNAP_SPEED_SOURCE speedSource : EM_MIX_SNAP_SPEED_SOURCE.values()) { |
|
19 |
if (speedSource.ordinal() == source) { |
|
20 |
return speedSource; |
|
21 |
} |
|
22 |
} |
|
23 |
return EM_SNAP_SPEED_SOURCE_UNKNOWN; |
|
24 |
} |
|
25 |
} |