提交 | 用户 | 时间
|
ce910c
|
1 |
package com.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
/** |
|
4 |
* 码流支持类型 |
|
5 |
* |
|
6 |
* @author 47040 |
|
7 |
* @since Created at 2021/5/26 19:42 |
|
8 |
*/ |
|
9 |
public enum STREAM_RATE_TYPE { |
|
10 |
RATE_10(10), |
|
11 |
RATE_20(20), |
|
12 |
RATE_32(32), |
|
13 |
RATE_48(48), |
|
14 |
RATE_64(64), |
|
15 |
RATE_80(80), |
|
16 |
RATE_96(96), |
|
17 |
RATE_128(128), |
|
18 |
RATE_160(160), |
|
19 |
RATE_192(192), |
|
20 |
RATE_224(224), |
|
21 |
RATE_256(256), |
|
22 |
RATE_320(320), |
|
23 |
RATE_384(384), |
|
24 |
RATE_448(448), |
|
25 |
RATE_512(512), |
|
26 |
RATE_640(640), |
|
27 |
RATE_768(768), |
|
28 |
RATE_896(896), |
|
29 |
RATE_1024(1024), |
|
30 |
RATE_1280(1280), |
|
31 |
RATE_1536(1536), |
|
32 |
RATE_1792(1792), |
|
33 |
RATE_2048(2048), |
|
34 |
RATE_3072(3072), |
|
35 |
RATE_4096(4096), |
|
36 |
RATE_6144(6144), |
|
37 |
RATE_8192(8192), |
|
38 |
RATE_10240(10240), |
|
39 |
RATE_12288(12288), |
|
40 |
RATE_14336(14336), |
|
41 |
RATE_16384(16384), |
|
42 |
RATE_18422(18432), |
|
43 |
RATE_20480(20480), |
|
44 |
RATE_22528(22528); |
|
45 |
|
|
46 |
private final int rate; |
|
47 |
|
|
48 |
STREAM_RATE_TYPE(int rate) { |
|
49 |
this.rate = rate; |
|
50 |
} |
|
51 |
|
|
52 |
public int getRate() { |
|
53 |
return rate; |
|
54 |
} |
|
55 |
|
|
56 |
public static STREAM_RATE_TYPE getEnum(int value) { |
|
57 |
for (STREAM_RATE_TYPE e : STREAM_RATE_TYPE.values()) { |
|
58 |
if (e.getRate() == value) |
|
59 |
return e; |
|
60 |
} |
|
61 |
return STREAM_RATE_TYPE.RATE_512; |
|
62 |
} |
|
63 |
} |