|
The FFT functionality in aec_rdft* is based on legacy C
code which is not thread-safe in the sense that the
rdft_init method can only be run in a single-threaded.
Currently, inside WebRTC multiple instances of the audio-
processing module are set up which means that the init
method may be run concurrently.
In order to avoid having to protect the init method with
a lock to ensure single-threaded behavior that, this CL
places the FFT functionality inside a class so that there
is no global component of the FFT functionality.
Note that:
1) The nonstandard header for the ooura_fft.cc was copied
from the aec_rdft.cc header, and augmented with a
description of the changes introduced in this CL.
2) The clang warnings for the ooura_fft_sse2.cc,
ooura_fft_neon.cc and ooura_fft_mips.cc were not
addressed as this code was kept as it was before this CL
3) Clang-format was run on all files apart from
ooura_fft_mips.cc (as that would change the format of
the inline assempbly code).
Adding bypass of presubmit to avoid code style and header errors caused by the fact that files with legacy code are being renamed.
NOPRESUBMIT=true
BUG= chromium:638583
Committed: https://crrev.com/81b9291dfddbfe1bd940ac7aab9a1b41c2b9c188
Cr-Commit-Position: refs/heads/master@{#14554}
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+581 lines, -3016 lines) |
Patch |
|
M |
webrtc/modules/audio_processing/BUILD.gn
|
View
|
1
2
|
5 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_processing/aec/aec_core.h
|
View
|
1
2
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_processing/aec/aec_core.cc
|
View
|
1
2
|
18 chunks |
+31 lines, -28 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_processing/aec/aec_core_mips.cc
|
View
|
1
|
4 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_processing/aec/aec_core_neon.cc
|
View
|
1
|
4 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_processing/aec/aec_core_optimized_methods.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_processing/aec/aec_core_sse2.cc
|
View
|
1
|
4 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
D |
webrtc/modules/audio_processing/aec/aec_rdft.h
|
View
|
|
1 chunk |
+0 lines, -61 lines |
0 comments
|
Download
|
|
D |
webrtc/modules/audio_processing/aec/aec_rdft.cc
|
View
|
|
1 chunk |
+0 lines, -585 lines |
0 comments
|
Download
|
|
D |
webrtc/modules/audio_processing/aec/aec_rdft_mips.cc
|
View
|
|
1 chunk |
+0 lines, -1187 lines |
0 comments
|
Download
|
|
D |
webrtc/modules/audio_processing/aec/aec_rdft_neon.cc
|
View
|
|
1 chunk |
+0 lines, -355 lines |
0 comments
|
Download
|
|
D |
webrtc/modules/audio_processing/aec/aec_rdft_sse2.cc
|
View
|
|
1 chunk |
+0 lines, -427 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_processing/audio_processing.gypi
|
View
|
|
5 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_processing/level_controller/signal_classifier.h
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
webrtc/modules/audio_processing/level_controller/signal_classifier.cc
|
View
|
|
4 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
A |
webrtc/modules/audio_processing/utility/ooura_fft.h
|
View
|
1
|
1 chunk |
+60 lines, -0 lines |
0 comments
|
Download
|
|
A + |
webrtc/modules/audio_processing/utility/ooura_fft.cc
|
View
|
|
6 chunks |
+207 lines, -257 lines |
0 comments
|
Download
|
|
A + |
webrtc/modules/audio_processing/utility/ooura_fft_mips.cc
|
View
|
1
|
8 chunks |
+19 lines, -21 lines |
0 comments
|
Download
|
|
A + |
webrtc/modules/audio_processing/utility/ooura_fft_neon.cc
|
View
|
|
6 chunks |
+17 lines, -20 lines |
0 comments
|
Download
|
|
A + |
webrtc/modules/audio_processing/utility/ooura_fft_sse2.cc
|
View
|
|
10 chunks |
+62 lines, -51 lines |
0 comments
|
Download
|
|
A |
webrtc/modules/audio_processing/utility/ooura_fft_tables_common.h
|
View
|
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
|
A |
webrtc/modules/audio_processing/utility/ooura_fft_tables_neon_sse2.h
|
View
|
|
1 chunk |
+94 lines, -0 lines |
0 comments
|
Download
|
Total messages: 35 (24 generated)
|