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

Issue 2862373002: Compute tail time from Biquad coefficients (Closed)

Created:
3 years, 7 months ago by Raymond Toy
Modified:
3 years, 6 months ago
Reviewers:
hongchan
CC:
chromium-reviews, haraken, blink-reviews, kinuko+watch, hongchan
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Compute tail time from Biquad coefficients Instead of using a fixed tail time of 200 ms for all biquad filters, we compute the actual tail time from filter coefficients. Many typical filters in applications have a tail time of 10 ms or less. This allows biquads and downstream nodes to stop processing much sooner than what currently happens, reducing CPU usage and allowing GC to collect nodes sooner. BUG=612215 TEST= Review-Url: https://codereview.chromium.org/2862373002 Cr-Original-Commit-Position: refs/heads/master@{#475632} Committed: https://chromium.googlesource.com/chromium/src/+/0be695dcb495cade0ed5c4b70aba95eb3dce49bd Review-Url: https://codereview.chromium.org/2862373002 Cr-Commit-Position: refs/heads/master@{#476113} Committed: https://chromium.googlesource.com/chromium/src/+/ea0745f9549a61349c37d5e853f8337f4ee79d5e

Patch Set 1 #

Patch Set 2 : WIP #

Patch Set 3 : Add tests. WIP #

Patch Set 4 : WIP: More tests and tweaks #

Patch Set 5 : WIP: cleanups and comments #

Patch Set 6 : Clean up and remove printfs #

Total comments: 8

Patch Set 7 : Address review comments #

Patch Set 8 : Initialize tail_time_ in constructor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1279 lines, -9 lines) Patch
A third_party/WebKit/LayoutTests/webaudio/BiquadFilter/tail-time-allpass.html View 1 2 3 4 5 6 1 chunk +103 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/BiquadFilter/tail-time-bandpass.html View 1 2 3 4 5 6 1 chunk +95 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/BiquadFilter/tail-time-highpass.html View 1 2 3 4 5 6 1 chunk +116 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/BiquadFilter/tail-time-highshelf.html View 1 2 3 4 5 6 1 chunk +81 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/BiquadFilter/tail-time-lowpass.html View 1 2 3 4 5 6 1 chunk +168 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/BiquadFilter/tail-time-lowshelf.html View 1 2 3 4 5 6 1 chunk +83 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/BiquadFilter/tail-time-notch.html View 1 2 3 4 5 6 1 chunk +98 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/BiquadFilter/tail-time-peaking.html View 1 2 3 4 5 6 1 chunk +115 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/webaudio/BiquadFilter/test-tail-time.js View 1 2 3 4 5 6 1 chunk +90 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/webaudio/resources/audit-util.js View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BiquadDSPKernel.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BiquadDSPKernel.cpp View 1 2 3 4 5 6 7 3 chunks +18 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/Biquad.h View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/Biquad.cpp View 1 2 3 4 5 6 7 1 chunk +294 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
Raymond Toy
PTAL
3 years, 7 months ago (2017-05-22 21:10:51 UTC) #2
hongchan
I won't go into detail on the mathematics of tail-time computation. lgtm with nits in ...
3 years, 7 months ago (2017-05-24 22:21:35 UTC) #4
Raymond Toy
https://codereview.chromium.org/2862373002/diff/100001/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/tail-time-allpass.html File third_party/WebKit/LayoutTests/webaudio/BiquadFilter/tail-time-allpass.html (right): https://codereview.chromium.org/2862373002/diff/100001/third_party/WebKit/LayoutTests/webaudio/BiquadFilter/tail-time-allpass.html#newcode44 third_party/WebKit/LayoutTests/webaudio/BiquadFilter/tail-time-allpass.html:44: taskInfo: On 2017/05/24 22:21:34, hongchan wrote: > I would ...
3 years, 7 months ago (2017-05-25 18:57:14 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2862373002/120001
3 years, 6 months ago (2017-05-30 17:57:26 UTC) #8
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/0be695dcb495cade0ed5c4b70aba95eb3dce49bd
3 years, 6 months ago (2017-05-30 19:56:15 UTC) #11
tyoshino (SeeGerritForStatus)
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/2912293002/ by tyoshino@chromium.org. ...
3 years, 6 months ago (2017-05-31 06:04:40 UTC) #12
kjellander_chromium
A revert of this CL (patchset #7 id:120001) has been created in https://codereview.chromium.org/2919503002/ by kjellander@chromium.org. ...
3 years, 6 months ago (2017-05-31 13:16:26 UTC) #13
Raymond Toy
PTAL. The only change is initializing tail_time_ in the BiquadDSPKernel constructor. Locally verified with my ...
3 years, 6 months ago (2017-05-31 19:06:04 UTC) #15
hongchan
lgtm
3 years, 6 months ago (2017-05-31 19:37:31 UTC) #16
Raymond Toy
On 2017/05/31 19:37:31, hongchan wrote: > lgtm Thanks. I'll wait for the msan bot to ...
3 years, 6 months ago (2017-05-31 19:38:58 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2862373002/140001
3 years, 6 months ago (2017-05-31 21:52:30 UTC) #19
commit-bot: I haz the power
3 years, 6 months ago (2017-06-01 00:41:30 UTC) #22
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/ea0745f9549a61349c37d5e853f8...

Powered by Google App Engine
This is Rietveld 408576698