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

Issue 2551363002: Update common_audio/smoothing_filter. (Closed)

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

Description

Update common_audio/smoothing_filter. The improvement is mainly to extrapolate missing samples so that when querying the output, it assumes the input to continue even if no actual new samples are added. The new implementation does not rely on base/exp_filter any longer. This is because it would be a bit cumbersome. base/exp_filter does pre-extrapolate, i.e., it assumes the all missing samples since the last sample equals the new sample. BUG=webrtc:6443 Committed: https://crrev.com/301fc4a712fa507fe14a3bd4688856441bd60011 Cr-Commit-Position: refs/heads/master@{#15575}

Patch Set 1 #

Patch Set 2 : fix a comment #

Total comments: 4

Patch Set 3 : improved initialization #

Patch Set 4 : improving numerical stability #

Total comments: 2

Patch Set 5 : adding derivation as comment. #

Total comments: 7

Patch Set 6 : on Henrik's comments #

Patch Set 7 : removing mistakenly added folder. #

Patch Set 8 : rebasing #

Patch Set 9 : fixing after rebasing #

Patch Set 10 : fixing some bots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -105 lines) Patch
M webrtc/common_audio/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/common_audio/mocks/mock_smoothing_filter.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/common_audio/smoothing_filter.h View 1 2 3 4 5 2 chunks +31 lines, -14 lines 0 comments Download
M webrtc/common_audio/smoothing_filter.cc View 1 2 3 4 5 6 7 8 9 1 chunk +97 lines, -39 lines 0 comments Download
M webrtc/common_audio/smoothing_filter_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +89 lines, -49 lines 0 comments Download

Messages

Total messages: 39 (21 generated)
michaelt
https://codereview.webrtc.org/2551363002/diff/20001/webrtc/common_audio/smoothing_filter.cc File webrtc/common_audio/smoothing_filter.cc (left): https://codereview.webrtc.org/2551363002/diff/20001/webrtc/common_audio/smoothing_filter.cc#oldcode39 webrtc/common_audio/smoothing_filter.cc:39: if (!initialized_) { Would move this if statement to ...
4 years ago (2016-12-07 09:44:17 UTC) #3
minyue-webrtc
Hi Michael, Thanks for your comments. I have some different opinion. Look forward to your ...
4 years ago (2016-12-07 17:16:32 UTC) #4
minyue-webrtc
Hi Michael, Please review the new patch set, it contains a new initialization scheme.
4 years ago (2016-12-11 12:05:38 UTC) #6
michaelt
looks good just this nit. https://codereview.webrtc.org/2551363002/diff/80001/webrtc/common_audio/smoothing_filter.cc File webrtc/common_audio/smoothing_filter.cc (right): https://codereview.webrtc.org/2551363002/diff/80001/webrtc/common_audio/smoothing_filter.cc#newcode81 webrtc/common_audio/smoothing_filter.cc:81: // With algebraic derivation, ...
4 years ago (2016-12-12 09:05:30 UTC) #9
minyue-webrtc
Thanks for the comments! +Henrik, Would you take a look at this CL too? There ...
4 years ago (2016-12-12 09:12:14 UTC) #10
minyue-webrtc
Added Latex-syntaxed derivation. https://codereview.webrtc.org/2551363002/diff/100001/webrtc/common_audio/smoothing_filter_unittest.cc File webrtc/common_audio/smoothing_filter_unittest.cc (right): https://codereview.webrtc.org/2551363002/diff/100001/webrtc/common_audio/smoothing_filter_unittest.cc#newcode62 webrtc/common_audio/smoothing_filter_unittest.cc:62: // import math added an extra ...
4 years ago (2016-12-12 12:20:03 UTC) #11
michaelt
lgtm
4 years ago (2016-12-12 12:51:32 UTC) #12
hlundin-webrtc
LGTM with a few nits and a suggestion. https://codereview.webrtc.org/2551363002/diff/100001/webrtc/common_audio/smoothing_filter.cc File webrtc/common_audio/smoothing_filter.cc (right): https://codereview.webrtc.org/2551363002/diff/100001/webrtc/common_audio/smoothing_filter.cc#newcode35 webrtc/common_audio/smoothing_filter.cc:35: int64_t ...
4 years ago (2016-12-13 12:02:51 UTC) #13
minyue-webrtc
Thanks! comments are addressed. https://codereview.webrtc.org/2551363002/diff/100001/webrtc/common_audio/smoothing_filter.cc File webrtc/common_audio/smoothing_filter.cc (right): https://codereview.webrtc.org/2551363002/diff/100001/webrtc/common_audio/smoothing_filter.cc#newcode35 webrtc/common_audio/smoothing_filter.cc:35: int64_t now_ms = clock_->TimeInMilliseconds(); On ...
4 years ago (2016-12-13 12:25:26 UTC) #15
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/2551363002/140001
4 years ago (2016-12-13 12:35:24 UTC) #18
minyue-webrtc
On 2016/12/13 12:35:24, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years ago (2016-12-13 12:36:25 UTC) #20
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/2551363002/160001
4 years ago (2016-12-13 12:38:03 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_clang_dbg/builds/18869) android_more_configs on master.tryserver.webrtc (JOB_FAILED, ...
4 years ago (2016-12-13 12:39:14 UTC) #25
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/2551363002/200001
4 years ago (2016-12-13 13:30:08 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_x64_dbg on master.tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_compile_x64_dbg/builds/9789) win_baremetal on master.tryserver.webrtc (JOB_FAILED, ...
4 years ago (2016-12-13 13:35:09 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/2551363002/240001
4 years ago (2016-12-13 14:26:19 UTC) #34
commit-bot: I haz the power
Committed patchset #10 (id:240001)
4 years ago (2016-12-13 14:53:00 UTC) #37
commit-bot: I haz the power
4 years ago (2016-12-13 14:53:16 UTC) #39
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/301fc4a712fa507fe14a3bd4688856441bd60011
Cr-Commit-Position: refs/heads/master@{#15575}

Powered by Google App Engine
This is Rietveld 408576698