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

Unified Diff: webrtc/common_audio/lapped_transform.cc

Issue 1335923002: Add RTC_ prefix to (D)CHECKs and related macros. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/common_audio/include/audio_util.h ('k') | webrtc/common_audio/lapped_transform_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/lapped_transform.cc
diff --git a/webrtc/common_audio/lapped_transform.cc b/webrtc/common_audio/lapped_transform.cc
index 525450d0cfc6bdfd025177f1d6490f8da2015eeb..c01f1d9d8c6c334d54ad734908d94ab5e10567a9 100644
--- a/webrtc/common_audio/lapped_transform.cc
+++ b/webrtc/common_audio/lapped_transform.cc
@@ -24,9 +24,9 @@ void LappedTransform::BlockThunk::ProcessBlock(const float* const* input,
int num_input_channels,
int num_output_channels,
float* const* output) {
- CHECK_EQ(num_input_channels, parent_->num_in_channels_);
- CHECK_EQ(num_output_channels, parent_->num_out_channels_);
- CHECK_EQ(parent_->block_length_, num_frames);
+ RTC_CHECK_EQ(num_input_channels, parent_->num_in_channels_);
+ RTC_CHECK_EQ(num_output_channels, parent_->num_out_channels_);
+ RTC_CHECK_EQ(parent_->block_length_, num_frames);
for (int i = 0; i < num_input_channels; ++i) {
memcpy(parent_->real_buf_.Row(i), input[i],
@@ -37,7 +37,7 @@ void LappedTransform::BlockThunk::ProcessBlock(const float* const* input,
size_t block_length = RealFourier::ComplexLength(
RealFourier::FftOrder(num_frames));
- CHECK_EQ(parent_->cplx_length_, block_length);
+ RTC_CHECK_EQ(parent_->cplx_length_, block_length);
parent_->block_processor_->ProcessAudioBlock(parent_->cplx_pre_.Array(),
num_input_channels,
parent_->cplx_length_,
@@ -83,13 +83,13 @@ LappedTransform::LappedTransform(int num_in_channels,
cplx_post_(num_out_channels,
cplx_length_,
RealFourier::kFftBufferAlignment) {
- CHECK(num_in_channels_ > 0 && num_out_channels_ > 0);
- CHECK_GT(block_length_, 0u);
- CHECK_GT(chunk_length_, 0u);
- CHECK(block_processor_);
+ RTC_CHECK(num_in_channels_ > 0 && num_out_channels_ > 0);
+ RTC_CHECK_GT(block_length_, 0u);
+ RTC_CHECK_GT(chunk_length_, 0u);
+ RTC_CHECK(block_processor_);
// block_length_ power of 2?
- CHECK_EQ(0u, block_length_ & (block_length_ - 1));
+ RTC_CHECK_EQ(0u, block_length_ & (block_length_ - 1));
}
void LappedTransform::ProcessChunk(const float* const* in_chunk,
« no previous file with comments | « webrtc/common_audio/include/audio_util.h ('k') | webrtc/common_audio/lapped_transform_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698