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

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

Issue 3007763002: Move array_view.h to webrtc/api/ (Closed)
Patch Set: rebase Created 3 years, 3 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 #include "webrtc/modules/audio_processing/aec3/echo_remover.h" 10 #include "webrtc/modules/audio_processing/aec3/echo_remover.h"
11 11
12 #include <math.h> 12 #include <math.h>
13 #include <algorithm> 13 #include <algorithm>
14 #include <memory> 14 #include <memory>
15 #include <numeric> 15 #include <numeric>
16 #include <string> 16 #include <string>
17 17
18 #include "webrtc/api/array_view.h"
18 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" 19 #include "webrtc/modules/audio_processing/aec3/aec3_common.h"
19 #include "webrtc/modules/audio_processing/aec3/aec_state.h" 20 #include "webrtc/modules/audio_processing/aec3/aec_state.h"
20 #include "webrtc/modules/audio_processing/aec3/comfort_noise_generator.h" 21 #include "webrtc/modules/audio_processing/aec3/comfort_noise_generator.h"
21 #include "webrtc/modules/audio_processing/aec3/echo_path_variability.h" 22 #include "webrtc/modules/audio_processing/aec3/echo_path_variability.h"
22 #include "webrtc/modules/audio_processing/aec3/echo_remover_metrics.h" 23 #include "webrtc/modules/audio_processing/aec3/echo_remover_metrics.h"
23 #include "webrtc/modules/audio_processing/aec3/fft_data.h" 24 #include "webrtc/modules/audio_processing/aec3/fft_data.h"
24 #include "webrtc/modules/audio_processing/aec3/output_selector.h" 25 #include "webrtc/modules/audio_processing/aec3/output_selector.h"
25 #include "webrtc/modules/audio_processing/aec3/render_buffer.h" 26 #include "webrtc/modules/audio_processing/aec3/render_buffer.h"
26 #include "webrtc/modules/audio_processing/aec3/render_delay_buffer.h" 27 #include "webrtc/modules/audio_processing/aec3/render_delay_buffer.h"
27 #include "webrtc/modules/audio_processing/aec3/residual_echo_estimator.h" 28 #include "webrtc/modules/audio_processing/aec3/residual_echo_estimator.h"
28 #include "webrtc/modules/audio_processing/aec3/subtractor.h" 29 #include "webrtc/modules/audio_processing/aec3/subtractor.h"
29 #include "webrtc/modules/audio_processing/aec3/suppression_filter.h" 30 #include "webrtc/modules/audio_processing/aec3/suppression_filter.h"
30 #include "webrtc/modules/audio_processing/aec3/suppression_gain.h" 31 #include "webrtc/modules/audio_processing/aec3/suppression_gain.h"
31 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h" 32 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h"
32 #include "webrtc/rtc_base/array_view.h"
33 #include "webrtc/rtc_base/atomicops.h" 33 #include "webrtc/rtc_base/atomicops.h"
34 #include "webrtc/rtc_base/constructormagic.h" 34 #include "webrtc/rtc_base/constructormagic.h"
35 35
36 namespace webrtc { 36 namespace webrtc {
37 37
38 namespace { 38 namespace {
39 39
40 void LinearEchoPower(const FftData& E, 40 void LinearEchoPower(const FftData& E,
41 const FftData& Y, 41 const FftData& Y,
42 std::array<float, kFftLengthBy2Plus1>* S2) { 42 std::array<float, kFftLengthBy2Plus1>* S2) {
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 } // namespace 243 } // namespace
244 244
245 EchoRemover* EchoRemover::Create( 245 EchoRemover* EchoRemover::Create(
246 const AudioProcessing::Config::EchoCanceller3& config, 246 const AudioProcessing::Config::EchoCanceller3& config,
247 int sample_rate_hz) { 247 int sample_rate_hz) {
248 return new EchoRemoverImpl(config, sample_rate_hz); 248 return new EchoRemoverImpl(config, sample_rate_hz);
249 } 249 }
250 250
251 } // namespace webrtc 251 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec3/decimator_by_4.h ('k') | webrtc/modules/audio_processing/aec3/fft_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698