Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: webrtc/modules/audio_processing/include/audio_processing.h

Issue 1984653002: Added support in the AEC for refined filter adaptation. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@50
Patch Set: One fix Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // standard methods for echo removal in the AEC. This configuration only applies 73 // standard methods for echo removal in the AEC. This configuration only applies
74 // to EchoCancellation and not EchoControlMobile. It can be set in the 74 // to EchoCancellation and not EchoControlMobile. It can be set in the
75 // constructor or using AudioProcessing::SetExtraOptions(). 75 // constructor or using AudioProcessing::SetExtraOptions().
76 struct NextGenerationAec { 76 struct NextGenerationAec {
77 NextGenerationAec() : enabled(false) {} 77 NextGenerationAec() : enabled(false) {}
78 explicit NextGenerationAec(bool enabled) : enabled(enabled) {} 78 explicit NextGenerationAec(bool enabled) : enabled(enabled) {}
79 static const ConfigOptionID identifier = ConfigOptionID::kNextGenerationAec; 79 static const ConfigOptionID identifier = ConfigOptionID::kNextGenerationAec;
80 bool enabled; 80 bool enabled;
81 }; 81 };
82 82
83 // Enables the refined linear filter adaptation in the echo canceller.
84 // This configuration only applies to EchoCancellation and not
85 // EchoControlMobile. It can be set in the constructor
86 // or using AudioProcessing::SetExtraOptions().
87 struct RefinedAdaptiveFilter {
88 RefinedAdaptiveFilter() : enabled(false) {}
89 explicit RefinedAdaptiveFilter(bool enabled) : enabled(enabled) {}
90 static const ConfigOptionID identifier =
91 ConfigOptionID::kAecRefinedAdaptiveFilter;
92 bool enabled;
93 };
94
83 // Enables delay-agnostic echo cancellation. This feature relies on internally 95 // Enables delay-agnostic echo cancellation. This feature relies on internally
84 // estimated delays between the process and reverse streams, thus not relying 96 // estimated delays between the process and reverse streams, thus not relying
85 // on reported system delays. This configuration only applies to 97 // on reported system delays. This configuration only applies to
86 // EchoCancellation and not EchoControlMobile. It can be set in the constructor 98 // EchoCancellation and not EchoControlMobile. It can be set in the constructor
87 // or using AudioProcessing::SetExtraOptions(). 99 // or using AudioProcessing::SetExtraOptions().
88 struct DelayAgnostic { 100 struct DelayAgnostic {
89 DelayAgnostic() : enabled(false) {} 101 DelayAgnostic() : enabled(false) {}
90 explicit DelayAgnostic(bool enabled) : enabled(enabled) {} 102 explicit DelayAgnostic(bool enabled) : enabled(enabled) {}
91 static const ConfigOptionID identifier = ConfigOptionID::kDelayAgnostic; 103 static const ConfigOptionID identifier = ConfigOptionID::kDelayAgnostic;
92 bool enabled; 104 bool enabled;
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
978 // This does not impact the size of frames passed to |ProcessStream()|. 990 // This does not impact the size of frames passed to |ProcessStream()|.
979 virtual int set_frame_size_ms(int size) = 0; 991 virtual int set_frame_size_ms(int size) = 0;
980 virtual int frame_size_ms() const = 0; 992 virtual int frame_size_ms() const = 0;
981 993
982 protected: 994 protected:
983 virtual ~VoiceDetection() {} 995 virtual ~VoiceDetection() {}
984 }; 996 };
985 } // namespace webrtc 997 } // namespace webrtc
986 998
987 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ 999 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/echo_cancellation_impl.cc ('k') | webrtc/modules/audio_processing/test/process_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698