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

Unified Diff: webrtc/modules/audio_processing/utility/lapped_transform.cc

Issue 1846903004: Moved ring-buffer related files from common_audio to audio_processing (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Corrected order of includes Created 4 years, 9 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/utility/lapped_transform.cc
diff --git a/webrtc/common_audio/lapped_transform.cc b/webrtc/modules/audio_processing/utility/lapped_transform.cc
similarity index 85%
rename from webrtc/common_audio/lapped_transform.cc
rename to webrtc/modules/audio_processing/utility/lapped_transform.cc
index 0edf586d78357b4ade2c94aaf48b96207f4c6825..bd720e8ae24176ad73557b1fbdb5e4c1c5081851 100644
--- a/webrtc/common_audio/lapped_transform.cc
+++ b/webrtc/modules/audio_processing/utility/lapped_transform.cc
@@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "webrtc/common_audio/lapped_transform.h"
+#include "webrtc/modules/audio_processing/utility/lapped_transform.h"
#include <algorithm>
#include <cstdlib>
@@ -29,20 +29,17 @@ void LappedTransform::BlockThunk::ProcessBlock(const float* const* input,
RTC_CHECK_EQ(parent_->block_length_, num_frames);
for (size_t i = 0; i < num_input_channels; ++i) {
- memcpy(parent_->real_buf_.Row(i), input[i],
- num_frames * sizeof(*input[0]));
+ memcpy(parent_->real_buf_.Row(i), input[i], num_frames * sizeof(*input[0]));
parent_->fft_->Forward(parent_->real_buf_.Row(i),
parent_->cplx_pre_.Row(i));
}
- size_t block_length = RealFourier::ComplexLength(
- RealFourier::FftOrder(num_frames));
+ size_t block_length =
+ RealFourier::ComplexLength(RealFourier::FftOrder(num_frames));
RTC_CHECK_EQ(parent_->cplx_length_, block_length);
- parent_->block_processor_->ProcessAudioBlock(parent_->cplx_pre_.Array(),
- num_input_channels,
- parent_->cplx_length_,
- num_output_channels,
- parent_->cplx_post_.Array());
+ parent_->block_processor_->ProcessAudioBlock(
+ parent_->cplx_pre_.Array(), num_input_channels, parent_->cplx_length_,
+ num_output_channels, parent_->cplx_post_.Array());
for (size_t i = 0; i < num_output_channels; ++i) {
parent_->fft_->Inverse(parent_->cplx_post_.Row(i),

Powered by Google App Engine
This is Rietveld 408576698