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

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

Issue 2708373005: Fix compilation issue detected by internal tool. (Closed)
Patch Set: Created 3 years, 9 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
(...skipping 29 matching lines...) Expand all
40 std::vector<size_t> Subtractor::NumBlocksInRenderSums() const { 40 std::vector<size_t> Subtractor::NumBlocksInRenderSums() const {
41 if (kMainFilterSizePartitions != kShadowFilterSizePartitions) { 41 if (kMainFilterSizePartitions != kShadowFilterSizePartitions) {
42 return {kMainFilterSizePartitions, kShadowFilterSizePartitions}; 42 return {kMainFilterSizePartitions, kShadowFilterSizePartitions};
43 } else { 43 } else {
44 return {kMainFilterSizePartitions}; 44 return {kMainFilterSizePartitions};
45 } 45 }
46 } 46 }
47 47
48 Subtractor::Subtractor(ApmDataDumper* data_dumper, 48 Subtractor::Subtractor(ApmDataDumper* data_dumper,
49 Aec3Optimization optimization) 49 Aec3Optimization optimization)
50 : data_dumper_(data_dumper), 50 : fft_(),
51 data_dumper_(data_dumper),
51 optimization_(optimization), 52 optimization_(optimization),
52 main_filter_(kMainFilterSizePartitions, true, optimization, data_dumper_), 53 main_filter_(kMainFilterSizePartitions, true, optimization, data_dumper_),
53 shadow_filter_(kShadowFilterSizePartitions, 54 shadow_filter_(kShadowFilterSizePartitions,
54 false, 55 false,
55 optimization, 56 optimization,
56 data_dumper_) { 57 data_dumper_) {
57 RTC_DCHECK(data_dumper_); 58 RTC_DCHECK(data_dumper_);
58 } 59 }
59 60
60 Subtractor::~Subtractor() {} 61 Subtractor::~Subtractor() {}
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 shadow_filter_.SizePartitions(), saturation, &G); 109 shadow_filter_.SizePartitions(), saturation, &G);
109 shadow_filter_.Adapt(X_buffer, G); 110 shadow_filter_.Adapt(X_buffer, G);
110 data_dumper_->DumpRaw("aec3_subtractor_G_shadow", G.re); 111 data_dumper_->DumpRaw("aec3_subtractor_G_shadow", G.re);
111 data_dumper_->DumpRaw("aec3_subtractor_G_shadow", G.im); 112 data_dumper_->DumpRaw("aec3_subtractor_G_shadow", G.im);
112 113
113 main_filter_.DumpFilter("aec3_subtractor_H_main"); 114 main_filter_.DumpFilter("aec3_subtractor_H_main");
114 shadow_filter_.DumpFilter("aec3_subtractor_H_shadow"); 115 shadow_filter_.DumpFilter("aec3_subtractor_H_shadow");
115 } 116 }
116 117
117 } // namespace webrtc 118 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec3/echo_remover.cc ('k') | webrtc/modules/audio_processing/aec3/suppression_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698