| 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),
|
|
|