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

Unified Diff: webrtc/common_audio/real_fourier_openmax.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/real_fourier_ooura.cc ('k') | webrtc/common_audio/resampler/push_sinc_resampler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/common_audio/real_fourier_openmax.cc
diff --git a/webrtc/common_audio/real_fourier_openmax.cc b/webrtc/common_audio/real_fourier_openmax.cc
index f7a0f64e031253b920351520c5f54f40e65ee10a..bc3e7347cbb7ca01a2248525f05edb79fb5f0e2f 100644
--- a/webrtc/common_audio/real_fourier_openmax.cc
+++ b/webrtc/common_audio/real_fourier_openmax.cc
@@ -23,19 +23,19 @@ namespace {
// Creates and initializes the Openmax state. Transfers ownership to caller.
OMXFFTSpec_R_F32* CreateOpenmaxState(int order) {
- CHECK_GE(order, 1);
+ RTC_CHECK_GE(order, 1);
// The omx implementation uses this macro to check order validity.
- CHECK_LE(order, TWIDDLE_TABLE_ORDER);
+ RTC_CHECK_LE(order, TWIDDLE_TABLE_ORDER);
OMX_INT buffer_size;
OMXResult r = omxSP_FFTGetBufSize_R_F32(order, &buffer_size);
- CHECK_EQ(r, OMX_Sts_NoErr);
+ RTC_CHECK_EQ(r, OMX_Sts_NoErr);
OMXFFTSpec_R_F32* omx_spec = malloc(buffer_size);
- DCHECK(omx_spec);
+ RTC_DCHECK(omx_spec);
r = omxSP_FFTInit_R_F32(omx_spec, order);
- CHECK_EQ(r, OMX_Sts_NoErr);
+ RTC_CHECK_EQ(r, OMX_Sts_NoErr);
return omx_spec;
}
@@ -55,14 +55,14 @@ void RealFourierOpenmax::Forward(const float* src, complex<float>* dest) const {
// http://en.cppreference.com/w/cpp/numeric/complex
OMXResult r =
omxSP_FFTFwd_RToCCS_F32(src, reinterpret_cast<OMX_F32*>(dest), omx_spec_);
- CHECK_EQ(r, OMX_Sts_NoErr);
+ RTC_CHECK_EQ(r, OMX_Sts_NoErr);
}
void RealFourierOpenmax::Inverse(const complex<float>* src, float* dest) const {
OMXResult r =
omxSP_FFTInv_CCSToR_F32(reinterpret_cast<const OMX_F32*>(src), dest,
omx_spec_);
- CHECK_EQ(r, OMX_Sts_NoErr);
+ RTC_CHECK_EQ(r, OMX_Sts_NoErr);
}
} // namespace webrtc
« no previous file with comments | « webrtc/common_audio/real_fourier_ooura.cc ('k') | webrtc/common_audio/resampler/push_sinc_resampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698