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

Unified Diff: webrtc/modules/audio_processing/aec/aec_core_neon.cc

Issue 2348213002: Move the aec_rdft* files to a more proper place beneath APM and make them thread-safe. (Closed)
Patch Set: Rebase Created 4 years, 2 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/aec/aec_core_neon.cc
diff --git a/webrtc/modules/audio_processing/aec/aec_core_neon.cc b/webrtc/modules/audio_processing/aec/aec_core_neon.cc
index bc503ba3db0e935a462f51dba1874ce6d2549cde..4995ebf5d36a5efa013edddc1014719e94ada8a2 100644
--- a/webrtc/modules/audio_processing/aec/aec_core_neon.cc
+++ b/webrtc/modules/audio_processing/aec/aec_core_neon.cc
@@ -23,7 +23,7 @@ extern "C" {
}
#include "webrtc/modules/audio_processing/aec/aec_common.h"
#include "webrtc/modules/audio_processing/aec/aec_core_optimized_methods.h"
-#include "webrtc/modules/audio_processing/aec/aec_rdft.h"
+#include "webrtc/modules/audio_processing/utility/ooura_fft.h"
namespace webrtc {
@@ -184,6 +184,7 @@ static void ScaleErrorSignalNEON(float mu,
}
static void FilterAdaptationNEON(
+ const OouraFft& ooura_fft,
int num_partitions,
int x_fft_buf_block_pos,
float x_fft_buf[2][kExtendedNumPartitions * PART_LEN1],
@@ -225,7 +226,7 @@ static void FilterAdaptationNEON(
MulRe(x_fft_buf[0][xPos + PART_LEN], -x_fft_buf[1][xPos + PART_LEN],
e_fft[0][PART_LEN], e_fft[1][PART_LEN]);
- aec_rdft_inverse_128(fft);
+ ooura_fft.InverseFft(fft);
memset(fft + PART_LEN, 0, sizeof(float) * PART_LEN);
// fft scaling
@@ -238,7 +239,7 @@ static void FilterAdaptationNEON(
vst1q_f32(&fft[j], fft_scale);
}
}
- aec_rdft_forward_128(fft);
+ ooura_fft.Fft(fft);
{
const float wt1 = h_fft_buf[1][pos];
« no previous file with comments | « webrtc/modules/audio_processing/aec/aec_core_mips.cc ('k') | webrtc/modules/audio_processing/aec/aec_core_optimized_methods.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698