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

Side by Side Diff: webrtc/modules/audio_processing/aec3/suppression_filter.cc

Issue 2964773002: Revert "Update includes for webrtc/{base => rtc_base} rename (1/3)" (Closed)
Patch Set: Created 3 years, 5 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) 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/suppression_filter.h" 11 #include "webrtc/modules/audio_processing/aec3/suppression_filter.h"
12 12
13 #include <math.h> 13 #include <math.h>
14 #include <algorithm> 14 #include <algorithm>
15 #include <cstring> 15 #include <cstring>
16 #include <functional> 16 #include <functional>
17 #include <numeric> 17 #include <numeric>
18 18
19 #include "webrtc/base/safe_minmax.h"
19 #include "webrtc/modules/audio_processing/utility/ooura_fft.h" 20 #include "webrtc/modules/audio_processing/utility/ooura_fft.h"
20 #include "webrtc/rtc_base/safe_minmax.h"
21 21
22 namespace webrtc { 22 namespace webrtc {
23 namespace { 23 namespace {
24 24
25 // Hanning window from Matlab command win = sqrt(hanning(128)). 25 // Hanning window from Matlab command win = sqrt(hanning(128)).
26 const float kSqrtHanning[kFftLength] = { 26 const float kSqrtHanning[kFftLength] = {
27 0.00000000000000f, 0.02454122852291f, 0.04906767432742f, 0.07356456359967f, 27 0.00000000000000f, 0.02454122852291f, 0.04906767432742f, 0.07356456359967f,
28 0.09801714032956f, 0.12241067519922f, 0.14673047445536f, 0.17096188876030f, 28 0.09801714032956f, 0.12241067519922f, 0.14673047445536f, 0.17096188876030f,
29 0.19509032201613f, 0.21910124015687f, 0.24298017990326f, 0.26671275747490f, 29 0.19509032201613f, 0.21910124015687f, 0.24298017990326f, 0.26671275747490f,
30 0.29028467725446f, 0.31368174039889f, 0.33688985339222f, 0.35989503653499f, 30 0.29028467725446f, 0.31368174039889f, 0.33688985339222f, 0.35989503653499f,
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 for (size_t k = 1; k < e->size(); ++k) { 163 for (size_t k = 1; k < e->size(); ++k) {
164 std::copy((*e)[k].begin(), (*e)[k].end(), tmp.begin()); 164 std::copy((*e)[k].begin(), (*e)[k].end(), tmp.begin());
165 std::copy(e_output_old_[k].begin(), e_output_old_[k].end(), 165 std::copy(e_output_old_[k].begin(), e_output_old_[k].end(),
166 (*e)[k].begin()); 166 (*e)[k].begin());
167 std::copy(tmp.begin(), tmp.end(), e_output_old_[k].begin()); 167 std::copy(tmp.begin(), tmp.end(), e_output_old_[k].begin());
168 } 168 }
169 } 169 }
170 } 170 }
171 171
172 } // namespace webrtc 172 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec3/suppression_filter.h ('k') | webrtc/modules/audio_processing/aec3/suppression_gain.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698