OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 |
(...skipping 14 matching lines...) Expand all Loading... |
25 kTemporalLayersFactory, | 25 kTemporalLayersFactory, |
26 kNetEqCapacityConfig, | 26 kNetEqCapacityConfig, |
27 kNetEqFastAccelerate, | 27 kNetEqFastAccelerate, |
28 kVoicePacing, | 28 kVoicePacing, |
29 kExtendedFilter, | 29 kExtendedFilter, |
30 kDelayAgnostic, | 30 kDelayAgnostic, |
31 kExperimentalAgc, | 31 kExperimentalAgc, |
32 kExperimentalNs, | 32 kExperimentalNs, |
33 kBeamforming, | 33 kBeamforming, |
34 kIntelligibility, | 34 kIntelligibility, |
35 kEchoCanceller3 | 35 kEchoCanceller3, |
| 36 kAecRefinedAdaptiveFilter |
36 }; | 37 }; |
37 | 38 |
38 // Class Config is designed to ease passing a set of options across webrtc code. | 39 // Class Config is designed to ease passing a set of options across webrtc code. |
39 // Options are identified by typename in order to avoid incorrect casts. | 40 // Options are identified by typename in order to avoid incorrect casts. |
40 // | 41 // |
41 // Usage: | 42 // Usage: |
42 // * declaring an option: | 43 // * declaring an option: |
43 // struct Algo1_CostFunction { | 44 // struct Algo1_CostFunction { |
44 // virtual float cost(int x) const { return x; } | 45 // virtual float cost(int x) const { return x; } |
45 // virtual ~Algo1_CostFunction() {} | 46 // virtual ~Algo1_CostFunction() {} |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 template<typename T> | 130 template<typename T> |
130 void Config::Set(T* value) { | 131 void Config::Set(T* value) { |
131 BaseOption*& it = options_[identifier<T>()]; | 132 BaseOption*& it = options_[identifier<T>()]; |
132 delete it; | 133 delete it; |
133 it = new Option<T>(value); | 134 it = new Option<T>(value); |
134 } | 135 } |
135 | 136 |
136 } // namespace webrtc | 137 } // namespace webrtc |
137 | 138 |
138 #endif // WEBRTC_COMMON_H_ | 139 #endif // WEBRTC_COMMON_H_ |
OLD | NEW |