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

Side by Side Diff: webrtc/modules/audio_processing/aec3/render_buffer.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/render_buffer.h" 11 #include "webrtc/modules/audio_processing/aec3/render_buffer.h"
12 12
13 #include <algorithm> 13 #include <algorithm>
14 14
15 #include "webrtc/base/checks.h"
15 #include "webrtc/modules/audio_processing/aec3/aec3_common.h" 16 #include "webrtc/modules/audio_processing/aec3/aec3_common.h"
16 #include "webrtc/rtc_base/checks.h"
17 17
18 namespace webrtc { 18 namespace webrtc {
19 19
20 RenderBuffer::RenderBuffer(Aec3Optimization optimization, 20 RenderBuffer::RenderBuffer(Aec3Optimization optimization,
21 size_t num_bands, 21 size_t num_bands,
22 size_t num_partitions, 22 size_t num_partitions,
23 const std::vector<size_t> num_ffts_for_spectral_sums) 23 const std::vector<size_t> num_ffts_for_spectral_sums)
24 : optimization_(optimization), 24 : optimization_(optimization),
25 fft_buffer_(num_partitions), 25 fft_buffer_(num_partitions),
26 spectrum_buffer_(num_partitions, std::array<float, kFftLengthBy2Plus1>()), 26 spectrum_buffer_(num_partitions, std::array<float, kFftLengthBy2Plus1>()),
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 for (size_t k = 0; k < spectral_sums_[0].size(); ++k) { 87 for (size_t k = 0; k < spectral_sums_[0].size(); ++k) {
88 spectral_sums_[0][k] += spectrum[k]; 88 spectral_sums_[0][k] += spectrum[k];
89 } 89 }
90 90
91 position = position < (fft_buffer_.size() - 1) ? position + 1 : 0; 91 position = position < (fft_buffer_.size() - 1) ? position + 1 : 0;
92 } 92 }
93 } 93 }
94 94
95 } // namespace webrtc 95 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/aec3/render_buffer.h ('k') | webrtc/modules/audio_processing/aec3/render_delay_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698