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

Issue 2348213002: Move the aec_rdft* files to a more proper place beneath APM and make them thread-safe. (Closed)

Created:
4 years, 3 months ago by peah-webrtc
Modified:
4 years, 2 months ago
Reviewers:
hlundin-webrtc
CC:
webrtc-reviews_webrtc.org, peah-webrtc, Andrew MacDonald, tterriberry_mozilla.com, audio-team_agora.io, hlundin-webrtc, kwiberg-webrtc, minyue-webrtc, the sun, aluebs-webrtc, bjornv1
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

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}

Patch Set 1 #

Total comments: 12

Patch Set 2 : Changes in response to reviewer comments #

Patch Set 3 : Rebase #

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

Messages

Total messages: 35 (24 generated)
peah-webrtc
4 years, 3 months ago (2016-09-21 08:24:24 UTC) #10
peah-webrtc
4 years, 2 months ago (2016-10-03 11:00:48 UTC) #19
hlundin-webrtc
https://codereview.webrtc.org/2348213002/diff/280001/webrtc/modules/audio_processing/aec/aec_core.cc File webrtc/modules/audio_processing/aec/aec_core.cc (right): https://codereview.webrtc.org/2348213002/diff/280001/webrtc/modules/audio_processing/aec/aec_core.cc#newcode33 webrtc/modules/audio_processing/aec/aec_core.cc:33: #include "webrtc/modules/audio_processing/utility/ooura_fft.h" No need to include here, when you ...
4 years, 2 months ago (2016-10-05 12:54:54 UTC) #20
peah-webrtc
https://codereview.webrtc.org/2348213002/diff/280001/webrtc/modules/audio_processing/aec/aec_core.cc File webrtc/modules/audio_processing/aec/aec_core.cc (right): https://codereview.webrtc.org/2348213002/diff/280001/webrtc/modules/audio_processing/aec/aec_core.cc#newcode33 webrtc/modules/audio_processing/aec/aec_core.cc:33: #include "webrtc/modules/audio_processing/utility/ooura_fft.h" On 2016/10/05 12:54:53, hlundin-webrtc wrote: > No ...
4 years, 2 months ago (2016-10-06 06:23:40 UTC) #21
hlundin-webrtc
lgtm https://codereview.webrtc.org/2348213002/diff/280001/webrtc/modules/audio_processing/utility/ooura_fft.h File webrtc/modules/audio_processing/utility/ooura_fft.h (right): https://codereview.webrtc.org/2348213002/diff/280001/webrtc/modules/audio_processing/utility/ooura_fft.h#newcode2 webrtc/modules/audio_processing/utility/ooura_fft.h:2: * Copyright (c) 2011 The WebRTC project authors. ...
4 years, 2 months ago (2016-10-06 08:48:44 UTC) #22
peah-webrtc
https://codereview.webrtc.org/2348213002/diff/280001/webrtc/modules/audio_processing/utility/ooura_fft.h File webrtc/modules/audio_processing/utility/ooura_fft.h (right): https://codereview.webrtc.org/2348213002/diff/280001/webrtc/modules/audio_processing/utility/ooura_fft.h#newcode2 webrtc/modules/audio_processing/utility/ooura_fft.h:2: * Copyright (c) 2011 The WebRTC project authors. All ...
4 years, 2 months ago (2016-10-06 12:41:44 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2348213002/320001
4 years, 2 months ago (2016-10-06 12:44:59 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/9033)
4 years, 2 months ago (2016-10-06 13:04:17 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2348213002/320001
4 years, 2 months ago (2016-10-06 13:46:02 UTC) #31
commit-bot: I haz the power
Committed patchset #3 (id:320001)
4 years, 2 months ago (2016-10-06 13:46:24 UTC) #33
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 13:46:35 UTC) #35
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/81b9291dfddbfe1bd940ac7aab9a1b41c2b9c188
Cr-Commit-Position: refs/heads/master@{#14554}

Powered by Google App Engine
This is Rietveld 408576698