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

Side by Side Diff: webrtc/modules/audio_processing/aec3/residual_echo_estimator.h

Issue 2678423005: Finalization of the first version of EchoCanceller 3 (Closed)
Patch Set: Fixed failing unittest Created 3 years, 10 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
(Empty)
1 /*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_RESIDUAL_ECHO_ESTIMATOR_H_
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_RESIDUAL_ECHO_ESTIMATOR_H_
13
14 #include <algorithm>
hlundin-webrtc 2017/02/21 16:34:02 <array> missing
peah-webrtc 2017/02/21 23:00:41 Done.
15 #include <vector>
16
17 #include "webrtc/base/array_view.h"
18 #include "webrtc/base/constructormagic.h"
19 #include "webrtc/base/optional.h"
hlundin-webrtc 2017/02/21 16:34:02 Not used.
peah-webrtc 2017/02/21 23:00:41 Done.
20 #include "webrtc/modules/audio_processing/aec3/aec3_common.h"
21 #include "webrtc/modules/audio_processing/aec3/aec_state.h"
22 #include "webrtc/modules/audio_processing/aec3/echo_path_variability.h"
hlundin-webrtc 2017/02/21 16:34:02 Not used?
peah-webrtc 2017/02/21 23:00:41 Done.
23 #include "webrtc/modules/audio_processing/aec3/erle_estimator.h"
hlundin-webrtc 2017/02/21 16:34:02 Not used?
peah-webrtc 2017/02/21 23:00:41 Done.
24 #include "webrtc/modules/audio_processing/aec3/erl_estimator.h"
hlundin-webrtc 2017/02/21 16:34:02 Not used?
peah-webrtc 2017/02/21 23:00:41 Done.
25 #include "webrtc/modules/audio_processing/aec3/fft_buffer.h"
26 #include "webrtc/modules/audio_processing/logging/apm_data_dumper.h"
hlundin-webrtc 2017/02/21 16:34:02 Not used.
peah-webrtc 2017/02/21 23:00:41 Done.
27
28 namespace webrtc {
29
30 class ResidualEchoEstimator {
31 public:
32 ResidualEchoEstimator();
33 ~ResidualEchoEstimator();
34
35 void Estimate(bool using_subtractor_output,
36 const AecState& aec_state,
37 const FftBuffer& X_buffer,
38 const std::vector<std::array<float, kFftLengthBy2Plus1>>& H2,
39 const std::array<float, kFftLengthBy2Plus1>& E2_main,
40 const std::array<float, kFftLengthBy2Plus1>& E2_shadow,
41 const std::array<float, kFftLengthBy2Plus1>& S2_linear,
42 const std::array<float, kFftLengthBy2Plus1>& S2_fallback,
43 const std::array<float, kFftLengthBy2Plus1>& Y2,
44 std::array<float, kFftLengthBy2Plus1>* R2);
45
46 private:
47 std::array<float, kFftLengthBy2Plus1> echo_path_gain_;
48 size_t active_render_counter_ = 0;
49 size_t blocks_since_last_saturation_ = 1000;
50
51 RTC_DISALLOW_COPY_AND_ASSIGN(ResidualEchoEstimator);
52 };
53
54 } // namespace webrtc
55
56 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_RESIDUAL_ECHO_ESTIMATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698