OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_TYPEDEFS_
H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_TYPEDEFS_
H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_TYPEDEFS_
H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_TYPEDEFS_
H_ |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 | 15 |
16 #include "webrtc/modules/interface/module_common_types.h" | 16 #include "webrtc/modules/interface/module_common_types.h" |
17 #include "webrtc/typedefs.h" | 17 #include "webrtc/typedefs.h" |
18 | 18 |
19 namespace webrtc { | 19 namespace webrtc { |
20 | 20 |
21 /////////////////////////////////////////////////////////////////////////// | 21 /////////////////////////////////////////////////////////////////////////// |
22 // enum ACMSpeechType | |
23 // An enumerator for possible labels of a decoded frame. | |
24 // | |
25 // -normal : a normal speech frame. If VAD is enabled on the | |
26 // incoming stream this label indicate that the | |
27 // frame is active. | |
28 // -PLC : a PLC frame. The corresponding packet was lost | |
29 // and this frame generated by PLC techniques. | |
30 // -CNG : the frame is comfort noise. This happens if VAD | |
31 // is enabled at the sender and we have received | |
32 // SID. | |
33 // -PLCCNG : PLC will fade to comfort noise if the duration | |
34 // of PLC is long. This labels such a case. | |
35 // -VADPassive : the VAD at the receiver recognizes this frame as | |
36 // passive. | |
37 // | |
38 enum ACMSpeechType { | |
39 normal = 0, | |
40 PLC = 1, | |
41 CNG = 2, | |
42 PLCCNG = 3, | |
43 VADPassive = 4 | |
44 }; | |
45 | |
46 /////////////////////////////////////////////////////////////////////////// | |
47 // enum ACMVADMode | 22 // enum ACMVADMode |
48 // An enumerator for aggressiveness of VAD | 23 // An enumerator for aggressiveness of VAD |
49 // -VADNormal : least aggressive mode. | 24 // -VADNormal : least aggressive mode. |
50 // -VADLowBitrate : more aggressive than "VADNormal" to save on | 25 // -VADLowBitrate : more aggressive than "VADNormal" to save on |
51 // bit-rate. | 26 // bit-rate. |
52 // -VADAggr : an aggressive mode. | 27 // -VADAggr : an aggressive mode. |
53 // -VADVeryAggr : the most agressive mode. | 28 // -VADVeryAggr : the most agressive mode. |
54 // | 29 // |
55 enum ACMVADMode { | 30 enum ACMVADMode { |
56 VADNormal = 0, | 31 VADNormal = 0, |
57 VADLowBitrate = 1, | 32 VADLowBitrate = 1, |
58 VADAggr = 2, | 33 VADAggr = 2, |
59 VADVeryAggr = 3 | 34 VADVeryAggr = 3 |
60 }; | 35 }; |
61 | 36 |
62 /////////////////////////////////////////////////////////////////////////// | 37 /////////////////////////////////////////////////////////////////////////// |
63 // enum ACMCountries | |
64 // An enumerator for countries, used when enabling CPT for a specific country. | |
65 // | |
66 enum ACMCountries { | |
67 ACMDisableCountryDetection = -1, // disable CPT detection | |
68 ACMUSA = 0, | |
69 ACMJapan, | |
70 ACMCanada, | |
71 ACMFrance, | |
72 ACMGermany, | |
73 ACMAustria, | |
74 ACMBelgium, | |
75 ACMUK, | |
76 ACMCzech, | |
77 ACMDenmark, | |
78 ACMFinland, | |
79 ACMGreece, | |
80 ACMHungary, | |
81 ACMIceland, | |
82 ACMIreland, | |
83 ACMItaly, | |
84 ACMLuxembourg, | |
85 ACMMexico, | |
86 ACMNorway, | |
87 ACMPoland, | |
88 ACMPortugal, | |
89 ACMSpain, | |
90 ACMSweden, | |
91 ACMTurkey, | |
92 ACMChina, | |
93 ACMHongkong, | |
94 ACMTaiwan, | |
95 ACMKorea, | |
96 ACMSingapore, | |
97 ACMNonStandard1 | |
98 // non-standard countries | |
99 }; | |
100 | |
101 /////////////////////////////////////////////////////////////////////////// | |
102 // enum ACMAMRPackingFormat | 38 // enum ACMAMRPackingFormat |
103 // An enumerator for different bit-packing format of AMR codec according to | 39 // An enumerator for different bit-packing format of AMR codec according to |
104 // RFC 3267. | 40 // RFC 3267. |
105 // | 41 // |
106 // -AMRUndefined : undefined. | 42 // -AMRUndefined : undefined. |
107 // -AMRBandwidthEfficient : bandwidth-efficient mode. | 43 // -AMRBandwidthEfficient : bandwidth-efficient mode. |
108 // -AMROctetAlligned : Octet-alligned mode. | 44 // -AMROctetAlligned : Octet-alligned mode. |
109 // -AMRFileStorage : file-storage mode. | 45 // -AMRFileStorage : file-storage mode. |
110 // | 46 // |
| 47 // TODO(henrik.lundin) Remove; only referenced in file_recorder, but all use |
| 48 // is no-op. |
111 enum ACMAMRPackingFormat { | 49 enum ACMAMRPackingFormat { |
112 AMRUndefined = -1, | 50 AMRUndefined = -1, |
113 AMRBandwidthEfficient = 0, | 51 AMRBandwidthEfficient = 0, |
114 AMROctetAlligned = 1, | 52 AMROctetAlligned = 1, |
115 AMRFileStorage = 2 | 53 AMRFileStorage = 2 |
116 }; | 54 }; |
117 | 55 |
118 /////////////////////////////////////////////////////////////////////////// | 56 /////////////////////////////////////////////////////////////////////////// |
119 // | 57 // |
120 // Enumeration of background noise mode a mapping from NetEQ interface. | |
121 // | |
122 // -On : default "normal" behavior with eternal noise | |
123 // -Fade : noise fades to zero after some time | |
124 // -Off : background noise is always zero | |
125 // | |
126 enum ACMBackgroundNoiseMode { | |
127 On, | |
128 Fade, | |
129 Off | |
130 }; | |
131 | |
132 /////////////////////////////////////////////////////////////////////////// | |
133 // | |
134 // Enumeration of Opus mode for intended application. | 58 // Enumeration of Opus mode for intended application. |
135 // | 59 // |
136 // kVoip : optimized for voice signals. | 60 // kVoip : optimized for voice signals. |
137 // kAudio : optimized for non-voice signals like music. | 61 // kAudio : optimized for non-voice signals like music. |
138 // | 62 // |
139 enum OpusApplicationMode { | 63 enum OpusApplicationMode { |
140 kVoip = 0, | 64 kVoip = 0, |
141 kAudio = 1, | 65 kAudio = 1, |
142 }; | 66 }; |
143 | 67 |
144 } // namespace webrtc | 68 } // namespace webrtc |
145 | 69 |
146 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_TYPEDE
FS_H_ | 70 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_TYPEDE
FS_H_ |
OLD | NEW |