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

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

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 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SHADOW_FILTER_UPDATE_GAIN_H_ 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SHADOW_FILTER_UPDATE_GAIN_H_
12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SHADOW_FILTER_UPDATE_GAIN_H_ 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SHADOW_FILTER_UPDATE_GAIN_H_
13 13
14 #include "webrtc/base/constructormagic.h"
14 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" 15 #include "webrtc/modules/audio_processing/aec3/aec3_common.h"
15 #include "webrtc/modules/audio_processing/aec3/render_buffer.h" 16 #include "webrtc/modules/audio_processing/aec3/render_buffer.h"
16 #include "webrtc/modules/audio_processing/aec3/render_signal_analyzer.h" 17 #include "webrtc/modules/audio_processing/aec3/render_signal_analyzer.h"
17 #include "webrtc/rtc_base/constructormagic.h"
18 18
19 namespace webrtc { 19 namespace webrtc {
20 20
21 // Provides functionality for computing the fixed gain for the shadow filter. 21 // Provides functionality for computing the fixed gain for the shadow filter.
22 class ShadowFilterUpdateGain { 22 class ShadowFilterUpdateGain {
23 public: 23 public:
24 // Takes action in the case of a known echo path change. 24 // Takes action in the case of a known echo path change.
25 void HandleEchoPathChange(); 25 void HandleEchoPathChange();
26 26
27 // Computes the gain. 27 // Computes the gain.
28 void Compute(const RenderBuffer& render_buffer, 28 void Compute(const RenderBuffer& render_buffer,
29 const RenderSignalAnalyzer& render_signal_analyzer, 29 const RenderSignalAnalyzer& render_signal_analyzer,
30 const FftData& E_shadow, 30 const FftData& E_shadow,
31 size_t size_partitions, 31 size_t size_partitions,
32 bool saturated_capture_signal, 32 bool saturated_capture_signal,
33 FftData* G); 33 FftData* G);
34 34
35 private: 35 private:
36 // TODO(peah): Check whether this counter should instead be initialized to a 36 // TODO(peah): Check whether this counter should instead be initialized to a
37 // large value. 37 // large value.
38 size_t poor_signal_excitation_counter_ = 0; 38 size_t poor_signal_excitation_counter_ = 0;
39 size_t call_counter_ = 0; 39 size_t call_counter_ = 0;
40 }; 40 };
41 41
42 } // namespace webrtc 42 } // namespace webrtc
43 43
44 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SHADOW_FILTER_UPDATE_GAIN_H_ 44 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AEC3_SHADOW_FILTER_UPDATE_GAIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698