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 |
11 #include "webrtc/modules/audio_processing/aec3/adaptive_fir_filter.h" | 11 #include "webrtc/modules/audio_processing/aec3/adaptive_fir_filter.h" |
12 | 12 |
13 #if defined(WEBRTC_HAS_NEON) | 13 #if defined(WEBRTC_HAS_NEON) |
14 #include <arm_neon.h> | 14 #include <arm_neon.h> |
15 #endif | 15 #endif |
16 #include "webrtc/typedefs.h" | 16 #include "webrtc/typedefs.h" |
17 #if defined(WEBRTC_ARCH_X86_FAMILY) | 17 #if defined(WEBRTC_ARCH_X86_FAMILY) |
18 #include <emmintrin.h> | 18 #include <emmintrin.h> |
19 #endif | 19 #endif |
20 #include <algorithm> | 20 #include <algorithm> |
21 #include <functional> | 21 #include <functional> |
22 | 22 |
23 #include "webrtc/base/checks.h" | |
24 #include "webrtc/modules/audio_processing/aec3/fft_data.h" | 23 #include "webrtc/modules/audio_processing/aec3/fft_data.h" |
| 24 #include "webrtc/rtc_base/checks.h" |
25 | 25 |
26 namespace webrtc { | 26 namespace webrtc { |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
30 // Constrains the a partiton of the frequency domain filter to be limited in | 30 // Constrains the a partiton of the frequency domain filter to be limited in |
31 // time via setting the relevant time-domain coefficients to zero. | 31 // time via setting the relevant time-domain coefficients to zero. |
32 void Constrain(const Aec3Fft& fft, FftData* H) { | 32 void Constrain(const Aec3Fft& fft, FftData* H) { |
33 std::array<float, kFftLength> h; | 33 std::array<float, kFftLength> h; |
34 fft.Ifft(*H, &h); | 34 fft.Ifft(*H, &h); |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 aec3::UpdateErlEstimator_NEON(H2_, &erl_); | 512 aec3::UpdateErlEstimator_NEON(H2_, &erl_); |
513 break; | 513 break; |
514 #endif | 514 #endif |
515 default: | 515 default: |
516 aec3::UpdateFrequencyResponse(H_, &H2_); | 516 aec3::UpdateFrequencyResponse(H_, &H2_); |
517 aec3::UpdateErlEstimator(H2_, &erl_); | 517 aec3::UpdateErlEstimator(H2_, &erl_); |
518 } | 518 } |
519 } | 519 } |
520 | 520 |
521 } // namespace webrtc | 521 } // namespace webrtc |
OLD | NEW |