| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 // Performs the echo subtraction. | 39 // Performs the echo subtraction. |
| 40 void Process(const RenderBuffer& render_buffer, | 40 void Process(const RenderBuffer& render_buffer, |
| 41 const rtc::ArrayView<const float> capture, | 41 const rtc::ArrayView<const float> capture, |
| 42 const RenderSignalAnalyzer& render_signal_analyzer, | 42 const RenderSignalAnalyzer& render_signal_analyzer, |
| 43 const AecState& aec_state, | 43 const AecState& aec_state, |
| 44 SubtractorOutput* output); | 44 SubtractorOutput* output); |
| 45 | 45 |
| 46 void HandleEchoPathChange(const EchoPathVariability& echo_path_variability); | 46 void HandleEchoPathChange(const EchoPathVariability& echo_path_variability); |
| 47 | 47 |
| 48 // Returns the block-wise frequency response of the main adaptive filter. | 48 // Returns the block-wise frequency response for the main adaptive filter. |
| 49 const std::vector<std::array<float, kFftLengthBy2Plus1>>& | 49 const std::vector<std::array<float, kFftLengthBy2Plus1>>& |
| 50 FilterFrequencyResponse() const { | 50 FilterFrequencyResponse() const { |
| 51 return main_filter_.FilterFrequencyResponse(); | 51 return main_filter_.FilterFrequencyResponse(); |
| 52 } | 52 } |
| 53 | 53 |
| 54 // Returns the estimate of the impulse response for the main adaptive filter. |
| 55 const std::array<float, kAdaptiveFilterTimeDomainLength>& |
| 56 FilterImpulseResponse() const { |
| 57 return main_filter_.FilterImpulseResponse(); |
| 58 } |
| 59 |
| 54 private: | 60 private: |
| 55 const Aec3Fft fft_; | 61 const Aec3Fft fft_; |
| 56 ApmDataDumper* data_dumper_; | 62 ApmDataDumper* data_dumper_; |
| 57 const Aec3Optimization optimization_; | 63 const Aec3Optimization optimization_; |
| 58 AdaptiveFirFilter main_filter_; | 64 AdaptiveFirFilter main_filter_; |
| 59 AdaptiveFirFilter shadow_filter_; | 65 AdaptiveFirFilter shadow_filter_; |
| 60 MainFilterUpdateGain G_main_; | 66 MainFilterUpdateGain G_main_; |
| 61 ShadowFilterUpdateGain G_shadow_; | 67 ShadowFilterUpdateGain G_shadow_; |
| 62 | 68 |
| 63 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(Subtractor); | 69 RTC_DISALLOW_IMPLICIT_CONSTRUCTORS(Subtractor); |
| 64 }; | 70 }; |
| 65 | 71 |
| 66 } // namespace webrtc | 72 } // namespace webrtc |
| 67 | 73 |
| 68 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SUBTRACTOR_H_ | 74 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SUBTRACTOR_H_ |
| OLD | NEW |