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

Issue 2522673003: Don't run WSOLA over always muted channels. (Closed)

Created:
4 years, 1 month ago by DaleCurtis
Modified:
4 years, 1 month ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, posciak+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't run WSOLA over always muted channels. WSOLA can be quite expensive to run; we should not be running it on channels which we know are always muted due to an upmixed signal. Not doing this results in an ~388% speedup when adjusting the playback rate for 8 channel sources. Taking the run time for 10 seconds of audio at 2.0 rate from 11536ms (> 10 is not real time) down to 2975ms. This is accomplished by introducing a channel mask to the render algorithm which can be used to generate AudioBus objects with lower channel counts for use with the WSOLA algorithm. Masked channels are always muted. BUG=666813 TEST=new unittests Committed: https://crrev.com/21d17ca06e742cbfdcaaa54e0f4964248e3fbfff Cr-Commit-Position: refs/heads/master@{#433782}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments. #

Patch Set 3 : Fix cast tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -17 lines) Patch
M media/cast/test/fake_media_source.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/filters/audio_renderer_algorithm.h View 1 3 chunks +18 lines, -2 lines 0 comments Download
M media/filters/audio_renderer_algorithm.cc View 1 6 chunks +42 lines, -11 lines 0 comments Download
M media/filters/audio_renderer_algorithm_unittest.cc View 4 chunks +34 lines, -2 lines 0 comments Download
M media/renderers/audio_renderer_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M media/renderers/audio_renderer_impl.cc View 1 3 chunks +19 lines, -1 line 0 comments Download
M media/renderers/audio_renderer_impl_unittest.cc View 3 chunks +44 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
DaleCurtis
4 years, 1 month ago (2016-11-22 00:10:25 UTC) #2
sandersd (OOO until July 31)
lgtm https://codereview.chromium.org/2522673003/diff/1/media/filters/audio_renderer_algorithm.cc File media/filters/audio_renderer_algorithm.cc (right): https://codereview.chromium.org/2522673003/diff/1/media/filters/audio_renderer_algorithm.cc#newcode381 media/filters/audio_renderer_algorithm.cc:381: : search_block_.get(), Nit: Simpler to understand if |reduced_search_block_| ...
4 years, 1 month ago (2016-11-22 00:59:24 UTC) #3
DaleCurtis
https://codereview.chromium.org/2522673003/diff/1/media/filters/audio_renderer_algorithm.cc File media/filters/audio_renderer_algorithm.cc (right): https://codereview.chromium.org/2522673003/diff/1/media/filters/audio_renderer_algorithm.cc#newcode381 media/filters/audio_renderer_algorithm.cc:381: : search_block_.get(), On 2016/11/22 at 00:59:24, sandersd wrote: > ...
4 years, 1 month ago (2016-11-22 01:07:49 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.chromium.org/2522673003/40001
4 years, 1 month ago (2016-11-22 01:08:53 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: blimp_linux_dbg on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/blimp_linux_dbg/builds/36922) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 1 month ago (2016-11-22 01:20:34 UTC) #10
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/2522673003/60001
4 years, 1 month ago (2016-11-22 01:30:39 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 1 month ago (2016-11-22 03:55:06 UTC) #15
commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 03:58:18 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/21d17ca06e742cbfdcaaa54e0f4964248e3fbfff
Cr-Commit-Position: refs/heads/master@{#433782}

Powered by Google App Engine
This is Rietveld 408576698