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/shadow_filter_update_gain.h" | 11 #include "webrtc/modules/audio_processing/aec3/shadow_filter_update_gain.h" |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 #include <functional> | 14 #include <functional> |
15 | 15 |
16 #include "webrtc/rtc_base/checks.h" | 16 #include "webrtc/base/checks.h" |
17 | 17 |
18 namespace webrtc { | 18 namespace webrtc { |
19 | 19 |
20 void ShadowFilterUpdateGain::HandleEchoPathChange() { | 20 void ShadowFilterUpdateGain::HandleEchoPathChange() { |
21 // TODO(peah): Check whether this counter should instead be initialized to a | 21 // TODO(peah): Check whether this counter should instead be initialized to a |
22 // large value. | 22 // large value. |
23 poor_signal_excitation_counter_ = 0; | 23 poor_signal_excitation_counter_ = 0; |
24 call_counter_ = 0; | 24 call_counter_ = 0; |
25 } | 25 } |
26 | 26 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 render_signal_analyzer.MaskRegionsAroundNarrowBands(&mu); | 60 render_signal_analyzer.MaskRegionsAroundNarrowBands(&mu); |
61 | 61 |
62 // G = mu * E * X2. | 62 // G = mu * E * X2. |
63 std::transform(mu.begin(), mu.end(), E_shadow.re.begin(), G->re.begin(), | 63 std::transform(mu.begin(), mu.end(), E_shadow.re.begin(), G->re.begin(), |
64 std::multiplies<float>()); | 64 std::multiplies<float>()); |
65 std::transform(mu.begin(), mu.end(), E_shadow.im.begin(), G->im.begin(), | 65 std::transform(mu.begin(), mu.end(), E_shadow.im.begin(), G->im.begin(), |
66 std::multiplies<float>()); | 66 std::multiplies<float>()); |
67 } | 67 } |
68 | 68 |
69 } // namespace webrtc | 69 } // namespace webrtc |
OLD | NEW |