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

Unified Diff: webrtc/modules/audio_processing/aec3/decimator_by_4.cc

Issue 2784023002: Major AEC3 render pipeline changes (Closed)
Patch Set: Disabled one more DEATH test that caused issues due to bug on bots Created 3 years, 8 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
Index: webrtc/modules/audio_processing/aec3/decimator_by_4.cc
diff --git a/webrtc/modules/audio_processing/aec3/decimator_by_4.cc b/webrtc/modules/audio_processing/aec3/decimator_by_4.cc
index 3f4c858ec3fdf815ecdc2b5768d214137db07a46..aa6480f4e10ea6409eb5fe93758315a8532d4013 100644
--- a/webrtc/modules/audio_processing/aec3/decimator_by_4.cc
+++ b/webrtc/modules/audio_processing/aec3/decimator_by_4.cc
@@ -26,18 +26,18 @@ DecimatorBy4::DecimatorBy4()
: low_pass_filter_(kLowPassFilterCoefficients, 3) {}
void DecimatorBy4::Decimate(rtc::ArrayView<const float> in,
- std::array<float, kSubBlockSize>* out) {
+ rtc::ArrayView<float> out) {
RTC_DCHECK_EQ(kBlockSize, in.size());
- RTC_DCHECK(out);
+ RTC_DCHECK_EQ(kSubBlockSize, out.size());
std::array<float, kBlockSize> x;
// Limit the frequency content of the signal to avoid aliasing.
low_pass_filter_.Process(in, x);
// Downsample the signal.
- for (size_t j = 0, k = 0; j < out->size(); ++j, k += 4) {
+ for (size_t j = 0, k = 0; j < out.size(); ++j, k += 4) {
RTC_DCHECK_GT(kBlockSize, k);
- (*out)[j] = x[k];
+ out[j] = x[k];
}
}
« no previous file with comments | « webrtc/modules/audio_processing/aec3/decimator_by_4.h ('k') | webrtc/modules/audio_processing/aec3/decimator_by_4_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698