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

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

Issue 2535593002: RTC_[D]CHECK_op: Remove "u" suffix on integer constants (Closed)
Patch Set: Created 4 years 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 num_proc_channels_(num_process_channels), 55 num_proc_channels_(num_process_channels),
56 output_num_frames_(output_num_frames), 56 output_num_frames_(output_num_frames),
57 num_channels_(num_process_channels), 57 num_channels_(num_process_channels),
58 num_bands_(NumBandsFromSamplesPerChannel(proc_num_frames_)), 58 num_bands_(NumBandsFromSamplesPerChannel(proc_num_frames_)),
59 num_split_frames_(rtc::CheckedDivExact(proc_num_frames_, num_bands_)), 59 num_split_frames_(rtc::CheckedDivExact(proc_num_frames_, num_bands_)),
60 mixed_low_pass_valid_(false), 60 mixed_low_pass_valid_(false),
61 reference_copied_(false), 61 reference_copied_(false),
62 activity_(AudioFrame::kVadUnknown), 62 activity_(AudioFrame::kVadUnknown),
63 keyboard_data_(NULL), 63 keyboard_data_(NULL),
64 data_(new IFChannelBuffer(proc_num_frames_, num_proc_channels_)) { 64 data_(new IFChannelBuffer(proc_num_frames_, num_proc_channels_)) {
65 RTC_DCHECK_GT(input_num_frames_, 0u); 65 RTC_DCHECK_GT(input_num_frames_, 0);
66 RTC_DCHECK_GT(proc_num_frames_, 0u); 66 RTC_DCHECK_GT(proc_num_frames_, 0);
67 RTC_DCHECK_GT(output_num_frames_, 0u); 67 RTC_DCHECK_GT(output_num_frames_, 0);
68 RTC_DCHECK_GT(num_input_channels_, 0u); 68 RTC_DCHECK_GT(num_input_channels_, 0);
69 RTC_DCHECK_GT(num_proc_channels_, 0u); 69 RTC_DCHECK_GT(num_proc_channels_, 0);
70 RTC_DCHECK_LE(num_proc_channels_, num_input_channels_); 70 RTC_DCHECK_LE(num_proc_channels_, num_input_channels_);
71 71
72 if (input_num_frames_ != proc_num_frames_ || 72 if (input_num_frames_ != proc_num_frames_ ||
73 output_num_frames_ != proc_num_frames_) { 73 output_num_frames_ != proc_num_frames_) {
74 // Create an intermediate buffer for resampling. 74 // Create an intermediate buffer for resampling.
75 process_buffer_.reset(new ChannelBuffer<float>(proc_num_frames_, 75 process_buffer_.reset(new ChannelBuffer<float>(proc_num_frames_,
76 num_proc_channels_)); 76 num_proc_channels_));
77 77
78 if (input_num_frames_ != proc_num_frames_) { 78 if (input_num_frames_ != proc_num_frames_) {
79 for (size_t i = 0; i < num_proc_channels_; ++i) { 79 for (size_t i = 0; i < num_proc_channels_; ++i) {
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 467
468 void AudioBuffer::SplitIntoFrequencyBands() { 468 void AudioBuffer::SplitIntoFrequencyBands() {
469 splitting_filter_->Analysis(data_.get(), split_data_.get()); 469 splitting_filter_->Analysis(data_.get(), split_data_.get());
470 } 470 }
471 471
472 void AudioBuffer::MergeFrequencyBands() { 472 void AudioBuffer::MergeFrequencyBands() {
473 splitting_filter_->Synthesis(split_data_.get(), data_.get()); 473 splitting_filter_->Synthesis(split_data_.get(), data_.get());
474 } 474 }
475 475
476 } // namespace webrtc 476 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/agc/agc.cc ('k') | webrtc/modules/audio_processing/audio_processing_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698