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

Issue 2337083002: Reland of added functionality for specifying the initial signal level to use for the gain estimation (Closed)

Created:
4 years, 3 months ago by peah-webrtc
Modified:
4 years, 2 months 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

This CL adds functionality in the level controller to receive a signal level to use initially, instead of the default initial signal level. The initial form of the CL (https://codereview.webrtc.org/2254973003/) was reverted due to down-stream dependencies. These have been resolved, but the CL needed to be revised according to the new scheme for passing parameters to the audio processing module. Therefore, please review this CL as if it is new. TBR=aleloi@webrtc.org BUG=webrtc:6386 Committed: https://crrev.com/c19f312f54b9674621c0482d7c067043643308c1 Cr-Commit-Position: refs/heads/master@{#14579}

Patch Set 1 #

Total comments: 31

Patch Set 2 : Changes in response to reviewer comments #

Total comments: 7

Patch Set 3 : Changes in response to reviewer comments #

Patch Set 4 : Changed parameter name from initial_level to the more correct initial_peak_level #

Total comments: 36

Patch Set 5 : Changes in response to reviewer comments #

Total comments: 4

Patch Set 6 : Changes in response to reviewer comments #

Total comments: 2

Patch Set 7 : Changed name of unit test #

Total comments: 32

Patch Set 8 : Changes in response to reviewer comments #

Total comments: 4

Patch Set 9 : Changes in response to reviewer comments #

Total comments: 10

Patch Set 10 : Rebase and changes in response to reviewer comments #

Patch Set 11 : Fixed type conversion error #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -118 lines) Patch
M webrtc/modules/audio_processing/BUILD.gn View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -2 lines 0 comments Download
D webrtc/modules/audio_processing/audio_processing.cc View 1 chunk +0 lines, -39 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing.gypi View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_impl.h View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +18 lines, -10 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +96 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/include/audio_processing.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
A + webrtc/modules/audio_processing/include/audio_processing.cc View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M webrtc/modules/audio_processing/level_controller/gain_selector.h View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/modules/audio_processing/level_controller/gain_selector.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/modules/audio_processing/level_controller/lc_constants.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -22 lines 0 comments Download
M webrtc/modules/audio_processing/level_controller/level_controller.h View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
M webrtc/modules/audio_processing/level_controller/level_controller.cc View 1 2 3 4 5 6 7 8 9 4 chunks +23 lines, -6 lines 0 comments Download
A + webrtc/modules/audio_processing/level_controller/level_controller_constants.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -4 lines 0 comments Download
M webrtc/modules/audio_processing/level_controller/level_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +25 lines, -20 lines 0 comments Download
M webrtc/modules/audio_processing/level_controller/peak_level_estimator.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_processing/level_controller/peak_level_estimator.cc View 1 2 3 4 3 chunks +16 lines, -7 lines 0 comments Download
M webrtc/modules/audio_processing/level_controller/saturating_gain_estimator.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 43 (13 generated)
peah-webrtc
4 years, 3 months ago (2016-09-13 11:56:04 UTC) #4
the sun
https://codereview.webrtc.org/2337083002/diff/1/webrtc/modules/audio_processing/audio_processing.gypi File webrtc/modules/audio_processing/audio_processing.gypi (right): https://codereview.webrtc.org/2337083002/diff/1/webrtc/modules/audio_processing/audio_processing.gypi#newcode63 webrtc/modules/audio_processing/audio_processing.gypi:63: 'include/audio_processing.cc', Stick to alphabetical order https://codereview.webrtc.org/2337083002/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): ...
4 years, 3 months ago (2016-09-14 10:00:59 UTC) #5
the sun
https://codereview.webrtc.org/2337083002/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2337083002/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode548 webrtc/modules/audio_processing/audio_processing_impl.cc:548: } On 2016/09/14 10:00:59, the sun wrote: > Why ...
4 years, 3 months ago (2016-09-14 17:02:15 UTC) #6
hlundin-webrtc
No more comments to add. https://codereview.webrtc.org/2337083002/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2337083002/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode548 webrtc/modules/audio_processing/audio_processing_impl.cc:548: } On 2016/09/14 17:02:15, ...
4 years, 3 months ago (2016-09-15 07:50:18 UTC) #7
hlundin-webrtc
Actually, one more nit. https://codereview.webrtc.org/2337083002/diff/1/webrtc/modules/audio_processing/level_controller/peak_level_estimator.cc File webrtc/modules/audio_processing/level_controller/peak_level_estimator.cc (right): https://codereview.webrtc.org/2337083002/diff/1/webrtc/modules/audio_processing/level_controller/peak_level_estimator.cc#newcode21 webrtc/modules/audio_processing/level_controller/peak_level_estimator.cc:21: const float kMinLevel = 30.f; ...
4 years, 3 months ago (2016-09-15 07:54:07 UTC) #8
peah-webrtc
https://codereview.webrtc.org/2337083002/diff/1/webrtc/modules/audio_processing/audio_processing.gypi File webrtc/modules/audio_processing/audio_processing.gypi (right): https://codereview.webrtc.org/2337083002/diff/1/webrtc/modules/audio_processing/audio_processing.gypi#newcode63 webrtc/modules/audio_processing/audio_processing.gypi:63: 'include/audio_processing.cc', On 2016/09/14 10:00:59, the sun wrote: > Stick ...
4 years, 3 months ago (2016-09-16 07:11:07 UTC) #9
the sun
https://codereview.webrtc.org/2337083002/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2337083002/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode548 webrtc/modules/audio_processing/audio_processing_impl.cc:548: } On 2016/09/16 07:11:06, peah-webrtc wrote: > On 2016/09/14 ...
4 years, 3 months ago (2016-09-16 08:00:41 UTC) #10
hlundin-webrtc
https://codereview.webrtc.org/2337083002/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2337083002/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode548 webrtc/modules/audio_processing/audio_processing_impl.cc:548: } On 2016/09/16 08:00:40, the sun wrote: > On ...
4 years, 3 months ago (2016-09-16 08:17:16 UTC) #11
peah-webrtc
https://codereview.webrtc.org/2337083002/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2337083002/diff/1/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode548 webrtc/modules/audio_processing/audio_processing_impl.cc:548: } On 2016/09/16 08:00:40, the sun wrote: > On ...
4 years, 3 months ago (2016-09-16 11:36:05 UTC) #12
peah-webrtc
4 years, 3 months ago (2016-09-16 11:36:19 UTC) #13
the sun
https://codereview.webrtc.org/2337083002/diff/20001/webrtc/modules/audio_processing/include/audio_processing.cc File webrtc/modules/audio_processing/include/audio_processing.cc (left): https://codereview.webrtc.org/2337083002/diff/20001/webrtc/modules/audio_processing/include/audio_processing.cc#oldcode36 webrtc/modules/audio_processing/include/audio_processing.cc:36: return -1; On 2016/09/16 11:36:05, peah-webrtc wrote: > I ...
4 years, 3 months ago (2016-09-16 12:40:25 UTC) #14
hlundin-webrtc
https://codereview.webrtc.org/2337083002/diff/60001/webrtc/modules/audio_processing/audio_processing_unittest.cc File webrtc/modules/audio_processing/audio_processing_unittest.cc (right): https://codereview.webrtc.org/2337083002/diff/60001/webrtc/modules/audio_processing/audio_processing_unittest.cc#newcode2781 webrtc/modules/audio_processing/audio_processing_unittest.cc:2781: // Verify that the level controller is default off, ...
4 years, 3 months ago (2016-09-19 12:03:03 UTC) #15
aleloi
There should probably be a monorail issue for this and the remaining work to initialize ...
4 years, 3 months ago (2016-09-19 15:06:06 UTC) #16
peah-webrtc
On 2016/09/19 15:06:06, aleloi wrote: > There should probably be a monorail issue for this ...
4 years, 3 months ago (2016-09-19 16:30:37 UTC) #17
peah-webrtc
https://codereview.webrtc.org/2337083002/diff/20001/webrtc/modules/audio_processing/include/audio_processing.cc File webrtc/modules/audio_processing/include/audio_processing.cc (left): https://codereview.webrtc.org/2337083002/diff/20001/webrtc/modules/audio_processing/include/audio_processing.cc#oldcode36 webrtc/modules/audio_processing/include/audio_processing.cc:36: return -1; On 2016/09/16 12:40:24, the sun wrote: > ...
4 years, 3 months ago (2016-09-19 16:37:11 UTC) #19
the sun
https://codereview.webrtc.org/2337083002/diff/60001/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2337083002/diff/60001/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode551 webrtc/modules/audio_processing/audio_processing_impl.cc:551: config.level_controller.enabled; On 2016/09/19 16:37:10, peah-webrtc wrote: > On 2016/09/16 ...
4 years, 3 months ago (2016-09-19 18:53:56 UTC) #20
peah-webrtc
https://codereview.webrtc.org/2337083002/diff/100001/webrtc/modules/audio_processing/audio_processing_unittest.cc File webrtc/modules/audio_processing/audio_processing_unittest.cc (right): https://codereview.webrtc.org/2337083002/diff/100001/webrtc/modules/audio_processing/audio_processing_unittest.cc#newcode2832 webrtc/modules/audio_processing/audio_processing_unittest.cc:2832: TEST(ApmConfiguration, NonValidConfigBehavior) { On 2016/09/19 18:53:56, the sun wrote: ...
4 years, 3 months ago (2016-09-22 05:57:08 UTC) #21
peah-webrtc
https://codereview.webrtc.org/2337083002/diff/60001/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2337083002/diff/60001/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode551 webrtc/modules/audio_processing/audio_processing_impl.cc:551: config.level_controller.enabled; On 2016/09/19 18:53:56, the sun wrote: > On ...
4 years, 3 months ago (2016-09-22 06:00:07 UTC) #22
the sun
https://codereview.webrtc.org/2337083002/diff/120001/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2337083002/diff/120001/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode535 webrtc/modules/audio_processing/audio_processing_impl.cc:535: << LevelController::ToString(config.level_controller) use config_ https://codereview.webrtc.org/2337083002/diff/120001/webrtc/modules/audio_processing/audio_processing_unittest.cc File webrtc/modules/audio_processing/audio_processing_unittest.cc (right): https://codereview.webrtc.org/2337083002/diff/120001/webrtc/modules/audio_processing/audio_processing_unittest.cc#newcode30 ...
4 years, 2 months ago (2016-09-30 08:51:16 UTC) #23
peah-webrtc
https://codereview.webrtc.org/2337083002/diff/120001/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2337083002/diff/120001/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode535 webrtc/modules/audio_processing/audio_processing_impl.cc:535: << LevelController::ToString(config.level_controller) On 2016/09/30 08:51:16, the sun wrote: > ...
4 years, 2 months ago (2016-10-03 09:52:14 UTC) #25
hlundin-webrtc
https://codereview.webrtc.org/2337083002/diff/120001/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2337083002/diff/120001/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode535 webrtc/modules/audio_processing/audio_processing_impl.cc:535: << LevelController::ToString(config.level_controller) On 2016/10/03 09:52:13, peah-webrtc wrote: > On ...
4 years, 2 months ago (2016-10-05 12:29:18 UTC) #26
peah-webrtc
https://codereview.webrtc.org/2337083002/diff/120001/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2337083002/diff/120001/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode535 webrtc/modules/audio_processing/audio_processing_impl.cc:535: << LevelController::ToString(config.level_controller) On 2016/10/05 12:29:18, hlundin-webrtc wrote: > On ...
4 years, 2 months ago (2016-10-06 06:27:27 UTC) #27
the sun
lgtm % nits https://codereview.webrtc.org/2337083002/diff/120001/webrtc/modules/audio_processing/audio_processing_unittest.cc File webrtc/modules/audio_processing/audio_processing_unittest.cc (right): https://codereview.webrtc.org/2337083002/diff/120001/webrtc/modules/audio_processing/audio_processing_unittest.cc#newcode2799 webrtc/modules/audio_processing/audio_processing_unittest.cc:2799: EXPECT_TRUE(apm->config_.level_controller.enabled); On 2016/10/03 09:52:13, peah-webrtc wrote: ...
4 years, 2 months ago (2016-10-06 07:21:14 UTC) #28
hlundin-webrtc
LGTM % solenberg's comments.
4 years, 2 months ago (2016-10-06 08:54:02 UTC) #29
peah-webrtc
https://codereview.webrtc.org/2337083002/diff/180001/webrtc/modules/audio_processing/audio_processing_impl.cc File webrtc/modules/audio_processing/audio_processing_impl.cc (right): https://codereview.webrtc.org/2337083002/diff/180001/webrtc/modules/audio_processing/audio_processing_impl.cc#newcode554 webrtc/modules/audio_processing/audio_processing_impl.cc:554: // TODO(peah): Add logline regardless of whether this is ...
4 years, 2 months ago (2016-10-07 21:03:58 UTC) #30
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/2337083002/200001
4 years, 2 months ago (2016-10-07 21:04:51 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: win_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_dbg/builds/11970) win_x64_dbg on master.tryserver.webrtc (JOB_FAILED, ...
4 years, 2 months ago (2016-10-07 21:09:22 UTC) #36
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/2337083002/220001
4 years, 2 months ago (2016-10-07 21:21:21 UTC) #39
commit-bot: I haz the power
Committed patchset #11 (id:220001)
4 years, 2 months ago (2016-10-07 21:54:15 UTC) #41
commit-bot: I haz the power
4 years, 2 months ago (2016-10-07 21:54:23 UTC) #43
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/c19f312f54b9674621c0482d7c067043643308c1
Cr-Commit-Position: refs/heads/master@{#14579}

Powered by Google App Engine
This is Rietveld 408576698