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

Issue 2535523002: Refactor RMSLevel and give it new functionality (Closed)

Created:
4 years ago by hlundin-webrtc
Modified:
4 years ago
CC:
webrtc-reviews_webrtc.org, 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

Refactor RMSLevel and give it new functionality This change rewrites RMSLevel, making it accept an ArrayView as input, and modify the implementation somewhat. It also makes the class keep track of the peak RMS in addition to the average RMS over the measurement period. New tests are added to cover the new functionality. BUG=webrtc:6622 Committed: https://crrev.com/5049942219776f857b20991ad61a55f06aebae79 Cr-Commit-Position: refs/heads/master@{#15294}

Patch Set 1 #

Patch Set 2 : Move kMinLevelDb inside implementation #

Patch Set 3 : Fixing win64 compile #

Total comments: 28

Patch Set 4 : The easy fixes #

Patch Set 5 : Consolidating unnamed namespaces #

Patch Set 6 : Make the RMSLevel handle varying block size #

Patch Set 7 : Rename to RmsLevel #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -65 lines) Patch
M webrtc/modules/audio_processing/level_estimator_impl.h View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/level_estimator_impl.cc View 1 2 3 4 5 6 4 chunks +5 lines, -3 lines 0 comments Download
M webrtc/modules/audio_processing/rms_level.h View 1 2 3 4 5 6 2 chunks +29 lines, -15 lines 0 comments Download
M webrtc/modules/audio_processing/rms_level.cc View 1 2 3 4 5 6 1 chunk +73 lines, -27 lines 0 comments Download
M webrtc/modules/audio_processing/rms_level_unittest.cc View 1 2 3 4 5 6 3 chunks +72 lines, -14 lines 0 comments Download
M webrtc/voice_engine/channel.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M webrtc/voice_engine/channel.cc View 1 2 3 3 chunks +5 lines, -3 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 17 (6 generated)
hlundin-webrtc
Per, PTAL
4 years ago (2016-11-25 13:58:44 UTC) #2
peah-webrtc
Nice! https://codereview.webrtc.org/2535523002/diff/40001/webrtc/modules/audio_processing/rms_level.cc File webrtc/modules/audio_processing/rms_level.cc (right): https://codereview.webrtc.org/2535523002/diff/40001/webrtc/modules/audio_processing/rms_level.cc#newcode24 webrtc/modules/audio_processing/rms_level.cc:24: static constexpr float kMinLevel = 1.995262314968883e-13f; Can this ...
4 years ago (2016-11-29 08:57:13 UTC) #3
hlundin-webrtc
The easy fixes
4 years ago (2016-11-29 09:43:18 UTC) #4
hlundin-webrtc
PTAL again. I uploaded a series of patch sets, to make reviewing easier, I hope... ...
4 years ago (2016-11-29 10:24:55 UTC) #5
peah-webrtc
On 2016/11/29 10:24:55, hlundin-webrtc wrote: > PTAL again. I uploaded a series of patch sets, ...
4 years ago (2016-11-29 11:55:17 UTC) #6
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/2535523002/120001
4 years ago (2016-11-29 12:08:49 UTC) #8
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/10762)
4 years ago (2016-11-29 12:19:39 UTC) #10
henrika_webrtc
You need a real owner ;-) LGTM
4 years ago (2016-11-29 12:24:39 UTC) #11
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/2535523002/120001
4 years ago (2016-11-29 12:24:48 UTC) #13
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-11-29 12:26:27 UTC) #15
commit-bot: I haz the power
4 years ago (2016-11-29 12:26:42 UTC) #17
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/5049942219776f857b20991ad61a55f06aebae79
Cr-Commit-Position: refs/heads/master@{#15294}

Powered by Google App Engine
This is Rietveld 408576698