Chromium Code Reviews| OLD | NEW | 
|---|---|
| 1 /* | 1 /* | 
| 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 260 | 260 | 
| 261 struct HighPassFilter { | 261 struct HighPassFilter { | 
| 262 bool enabled = false; | 262 bool enabled = false; | 
| 263 } high_pass_filter; | 263 } high_pass_filter; | 
| 264 | 264 | 
| 265 // Enables the next generation AEC functionality. This feature replaces the | 265 // Enables the next generation AEC functionality. This feature replaces the | 
| 266 // standard methods for echo removal in the AEC. | 266 // standard methods for echo removal in the AEC. | 
| 267 // The functionality is not yet activated in the code and turning this on | 267 // The functionality is not yet activated in the code and turning this on | 
| 268 // does not yet have the desired behavior. | 268 // does not yet have the desired behavior. | 
| 269 struct EchoCanceller3 { | 269 struct EchoCanceller3 { | 
| 270 struct Param { | |
| 271 struct Erle { | |
| 272 float min = 1.f; | |
| 273 float max_l = 8.f; | |
| 274 float max_h = 1.5f; | |
| 275 } erle; | |
| 276 | |
| 277 struct EpStrength { | |
| 278 float lf = 100.f; | |
| 279 float mf = 1000.f; | |
| 280 float hf = 5000.f; | |
| 281 float default_len = 0.8f; | |
| 282 } ep_strength; | |
| 283 | |
| 284 struct Mask { | |
| 285 float m1 = 0.01f; | |
| 286 float m2 = 0.001f; | |
| 287 float m3 = 0.01f; | |
| 288 float m4 = 0.1f; | |
| 289 } gain_mask; | |
| 290 | |
| 291 struct Thresholds { | |
| 
 
hlundin-webrtc
2017/08/23 14:52:22
A little too generic. Threshold for what?
 
peah-webrtc
2017/08/24 07:00:52
I agree. A changed the naming a bit. PTAL
 
 | |
| 292 float min_echo1 = 192.f; | |
| 293 float min_echo2 = 64.f; | |
| 294 } thresholds; | |
| 295 | |
| 296 struct GainUpdates { | |
| 297 struct GainChanges { | |
| 298 float max_inc; | |
| 299 float max_dec; | |
| 300 float rate_inc; | |
| 301 float rate_dec; | |
| 302 float min_inc; | |
| 303 float min_dec; | |
| 304 }; | |
| 305 | |
| 306 GainChanges low_noise = {8.f, 8.f, 2.f, 2.f, 4.f, 4.f}; | |
| 307 GainChanges normal = {4.f, 4.f, 2.f, 2.f, 1.2f, 2.f}; | |
| 308 GainChanges saturation = {1.2f, 1.2f, 1.5f, 1.5f, 1.f, 1.f}; | |
| 309 | |
| 310 float floor_first_increase = 0.001f; | |
| 311 } gain_updates; | |
| 312 } param; | |
| 270 bool enabled = false; | 313 bool enabled = false; | 
| 271 } echo_canceller3; | 314 } echo_canceller3; | 
| 272 | 315 | 
| 273 // Enables the next generation AGC functionality. This feature replaces the | 316 // Enables the next generation AGC functionality. This feature replaces the | 
| 274 // standard methods of gain control in the previous AGC. | 317 // standard methods of gain control in the previous AGC. | 
| 275 // The functionality is not yet activated in the code and turning this on | 318 // The functionality is not yet activated in the code and turning this on | 
| 276 // does not yet have the desired behavior. | 319 // does not yet have the desired behavior. | 
| 277 struct GainController2 { | 320 struct GainController2 { | 
| 278 bool enabled = false; | 321 bool enabled = false; | 
| 279 } gain_controller2; | 322 } gain_controller2; | 
| (...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1071 // This does not impact the size of frames passed to |ProcessStream()|. | 1114 // This does not impact the size of frames passed to |ProcessStream()|. | 
| 1072 virtual int set_frame_size_ms(int size) = 0; | 1115 virtual int set_frame_size_ms(int size) = 0; | 
| 1073 virtual int frame_size_ms() const = 0; | 1116 virtual int frame_size_ms() const = 0; | 
| 1074 | 1117 | 
| 1075 protected: | 1118 protected: | 
| 1076 virtual ~VoiceDetection() {} | 1119 virtual ~VoiceDetection() {} | 
| 1077 }; | 1120 }; | 
| 1078 } // namespace webrtc | 1121 } // namespace webrtc | 
| 1079 | 1122 | 
| 1080 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 1123 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ | 
| OLD | NEW |