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

Side by Side Diff: webrtc/modules/audio_processing/splitting_filter.cc

Issue 2288133002: Fix Chromium clang plugin warnings (Closed)
Patch Set: Created 4 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) 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 13 matching lines...) Expand all
24 if (num_bands_ == 2) { 24 if (num_bands_ == 2) {
25 two_bands_states_.resize(num_channels); 25 two_bands_states_.resize(num_channels);
26 } else if (num_bands_ == 3) { 26 } else if (num_bands_ == 3) {
27 for (size_t i = 0; i < num_channels; ++i) { 27 for (size_t i = 0; i < num_channels; ++i) {
28 three_band_filter_banks_.push_back(std::unique_ptr<ThreeBandFilterBank>( 28 three_band_filter_banks_.push_back(std::unique_ptr<ThreeBandFilterBank>(
29 new ThreeBandFilterBank(num_frames))); 29 new ThreeBandFilterBank(num_frames)));
30 } 30 }
31 } 31 }
32 } 32 }
33 33
34 SplittingFilter::~SplittingFilter() = default;
35
34 void SplittingFilter::Analysis(const IFChannelBuffer* data, 36 void SplittingFilter::Analysis(const IFChannelBuffer* data,
35 IFChannelBuffer* bands) { 37 IFChannelBuffer* bands) {
36 RTC_DCHECK_EQ(num_bands_, bands->num_bands()); 38 RTC_DCHECK_EQ(num_bands_, bands->num_bands());
37 RTC_DCHECK_EQ(data->num_channels(), bands->num_channels()); 39 RTC_DCHECK_EQ(data->num_channels(), bands->num_channels());
38 RTC_DCHECK_EQ(data->num_frames(), 40 RTC_DCHECK_EQ(data->num_frames(),
39 bands->num_frames_per_band() * bands->num_bands()); 41 bands->num_frames_per_band() * bands->num_bands());
40 if (bands->num_bands() == 2) { 42 if (bands->num_bands() == 2) {
41 TwoBandsAnalysis(data, bands); 43 TwoBandsAnalysis(data, bands);
42 } else if (bands->num_bands() == 3) { 44 } else if (bands->num_bands() == 3) {
43 ThreeBandsAnalysis(data, bands); 45 ThreeBandsAnalysis(data, bands);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 IFChannelBuffer* data) { 99 IFChannelBuffer* data) {
98 RTC_DCHECK_LE(data->num_channels(), three_band_filter_banks_.size()); 100 RTC_DCHECK_LE(data->num_channels(), three_band_filter_banks_.size());
99 for (size_t i = 0; i < data->num_channels(); ++i) { 101 for (size_t i = 0; i < data->num_channels(); ++i) {
100 three_band_filter_banks_[i]->Synthesis(bands->fbuf_const()->bands(i), 102 three_band_filter_banks_[i]->Synthesis(bands->fbuf_const()->bands(i),
101 bands->num_frames_per_band(), 103 bands->num_frames_per_band(),
102 data->fbuf()->channels()[i]); 104 data->fbuf()->channels()[i]);
103 } 105 }
104 } 106 }
105 107
106 } // namespace webrtc 108 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/splitting_filter.h ('k') | webrtc/modules/audio_processing/three_band_filter_bank.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698