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

Issue 2024993004: AudioBus: Add a ToInterleavedFloat() method to AudioBus (Closed)

Created:
4 years, 6 months ago by chfremer
Modified:
4 years, 5 months ago
Reviewers:
mcasas, DaleCurtis, miu
CC:
avayvod+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, imcheng+watch_chromium.org, isheriff+watch_chromium.org, jam, jasonroberts+watch_google.com, miu+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, xjz+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Applied diff from eklavyamirani's cl [1] and rebased to latest master revision. This is the starting point for taking over the cl and continue working on it. [1] https://codereview.chromium.org/1769373003/ BUG=580391 R=mcasas@chromium.org Committed: https://crrev.com/c9e8ada83949be0314cc2d1d90df7935c3dc9534 Cr-Commit-Position: refs/heads/master@{#401952}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Revise comments/names in code #

Total comments: 8

Patch Set 3 : Refactor AudioBus but not yet its usages #

Patch Set 4 : Add original signatures as deprecated #

Patch Set 5 : Switched to templated method approach #

Total comments: 6

Patch Set 6 : Generalize AudioSampleTypeTraits using templates #

Patch Set 7 : Performance Improvements #

Patch Set 8 : Added unit tests #

Total comments: 23

Patch Set 9 : Addressed comments #

Patch Set 10 : Rebase-update #

Patch Set 11 : Performance tweak for Arm #

Total comments: 7

Patch Set 12 : Removed a todo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1041 lines, -234 lines) Patch
M content/renderer/media/audio_track_recorder.cc View 1 2 3 4 3 chunks +3 lines, -14 lines 0 comments Download
M media/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M media/base/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M media/base/audio_bus.h View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +189 lines, -27 lines 0 comments Download
M media/base/audio_bus.cc View 1 2 3 4 5 6 7 8 3 chunks +83 lines, -103 lines 0 comments Download
M media/base/audio_bus_unittest.cc View 1 2 3 4 5 6 7 17 chunks +319 lines, -82 lines 0 comments Download
A media/base/audio_sample_types.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +209 lines, -0 lines 0 comments Download
A media/base/audio_sample_types_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +229 lines, -0 lines 0 comments Download
M media/cast/sender/audio_encoder.cc View 1 2 3 4 2 chunks +5 lines, -8 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M media/shared_memory_support.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 71 (15 generated)
mcasas
bots please (git cl try) https://codereview.chromium.org/2024993004/diff/1/AUTHORS File AUTHORS (right): https://codereview.chromium.org/2024993004/diff/1/AUTHORS#newcode180 AUTHORS:180: Eklavya Mirani <eklavyamirani@gmail.com> Remove ...
4 years, 6 months ago (2016-06-02 01:13:15 UTC) #3
chfremer
* Revised comments in audio_bus.h/cc after going through a read/understand cycle as someone previously unfamiliar ...
4 years, 6 months ago (2016-06-02 18:13:33 UTC) #5
miu
https://codereview.chromium.org/2024993004/diff/40001/media/base/audio_bus.cc File media/base/audio_bus.cc (right): https://codereview.chromium.org/2024993004/diff/40001/media/base/audio_bus.cc#newcode312 media/base/audio_bus.cc:312: int num_samples, s/num_samples/frames/ (for naming consistency with the rest ...
4 years, 6 months ago (2016-06-02 20:40:21 UTC) #7
chfremer
* Refactored From/ToInterleaved/Partial to use an enum SampleFormat instead of |bytes_per_sample|. * Simplified and renamed ...
4 years, 6 months ago (2016-06-02 23:06:09 UTC) #9
chfremer
On 2016/06/02 23:06:09, chfremer wrote: > * Refactored From/ToInterleaved/Partial to use an enum SampleFormat instead ...
4 years, 6 months ago (2016-06-03 15:55:59 UTC) #10
miu
I'm not a fan of the "enum arg" proposal. The template-based approach I mentioned before ...
4 years, 6 months ago (2016-06-03 18:14:20 UTC) #11
DaleCurtis
If you decide to modify the existing methods, make sure you run the AudioBus perf ...
4 years, 6 months ago (2016-06-03 19:42:06 UTC) #13
chfremer
On 2016/06/03 18:14:20, miu wrote: > I'm not a fan of the "enum arg" proposal. ...
4 years, 6 months ago (2016-06-03 21:53:55 UTC) #14
miu
On 2016/06/03 21:53:55, chfremer wrote: > On 2016/06/03 18:14:20, miu wrote: > > I'm not ...
4 years, 6 months ago (2016-06-04 03:57:46 UTC) #15
chfremer
After thinking about it a bit more, I decided that going with the templated methods ...
4 years, 6 months ago (2016-06-07 21:21:39 UTC) #17
chfremer
A quick note on the perf tests. I did 3 runs of AudioBusPerfTest both with ...
4 years, 6 months ago (2016-06-07 21:35:13 UTC) #18
miu
I like the idea of providing sample type traits. Though, I think there's a lot ...
4 years, 6 months ago (2016-06-07 22:16:36 UTC) #19
DaleCurtis
See also https://codereview.chromium.org/1854433002
4 years, 6 months ago (2016-06-07 22:18:30 UTC) #20
chfremer
I incorporated miu's suggestion for generalizing the individual SampleTypeTraits classes using templates and getting rid ...
4 years, 6 months ago (2016-06-08 18:46:39 UTC) #22
chfremer
On 2016/06/07 22:18:30, DaleCurtis wrote: > See also https://codereview.chromium.org/1854433002 Thanks for bringing this to my ...
4 years, 6 months ago (2016-06-08 19:29:37 UTC) #23
miu
On 2016/06/08 18:46:39, chfremer wrote: > The design feels good to me at this point, ...
4 years, 6 months ago (2016-06-08 19:35:23 UTC) #24
miu
On 2016/06/08 19:29:37, chfremer wrote: > I was not aware of the AudioBuffer class before ...
4 years, 6 months ago (2016-06-08 19:44:26 UTC) #25
DaleCurtis
On 2016/06/08 at 19:44:26, miu wrote: > On 2016/06/08 19:29:37, chfremer wrote: > > I ...
4 years, 6 months ago (2016-06-08 20:37:08 UTC) #26
chfremer
Applied Performance Improvements: * In FixedSampleTypeTraits::ConvertFromFloatType(), use a nested if/else structure instead of handling the ...
4 years, 6 months ago (2016-06-09 16:48:03 UTC) #27
chfremer
* Added unit tests * Fixed a bug in audio_sample_types.h, where a negative float was ...
4 years, 6 months ago (2016-06-10 22:58:42 UTC) #28
DaleCurtis
On 2016/06/10 at 22:58:42, chfremer wrote: > * Added unit tests > * Fixed a ...
4 years, 6 months ago (2016-06-10 23:08:48 UTC) #29
miu
Overall approach lgtm. I'll be out next week, so I'm delegating to the other reviewers ...
4 years, 6 months ago (2016-06-10 23:46:40 UTC) #30
mcasas
A few comments, nothing major; if the audio-guys are happy, this is a Lima-Golf-Tango-Mike to ...
4 years, 6 months ago (2016-06-12 09:41:49 UTC) #31
chfremer
On 2016/06/10 23:08:48, DaleCurtis wrote: > Do you have an arm system to test on? ...
4 years, 6 months ago (2016-06-13 16:27:55 UTC) #32
chfremer
https://codereview.chromium.org/2024993004/diff/220001/media/base/audio_bus.cc File media/base/audio_bus.cc (right): https://codereview.chromium.org/2024993004/diff/220001/media/base/audio_bus.cc#newcode55 media/base/audio_bus.cc:55: void AudioBus::CheckOverflow(int start_frame, int frames, int total_frames) { On ...
4 years, 6 months ago (2016-06-13 17:44:12 UTC) #33
DaleCurtis
On 2016/06/13 at 16:27:55, chfremer wrote: > On 2016/06/10 23:08:48, DaleCurtis wrote: > > Do ...
4 years, 6 months ago (2016-06-13 17:53:48 UTC) #34
chfremer
On 2016/06/13 16:27:55, chfremer wrote: > On 2016/06/10 23:08:48, DaleCurtis wrote: > > Do you ...
4 years, 6 months ago (2016-06-14 17:26:59 UTC) #35
DaleCurtis
Try this: ninja -C <out> media_perftests_incremental <out>/bin/run_media_perftests_incremental --gtest_filter=AudioBus* You can drop the _incremental if you ...
4 years, 6 months ago (2016-06-14 18:48:13 UTC) #36
DaleCurtis
On 2016/06/14 at 18:48:13, DaleCurtis wrote: > Try this: > > ninja -C <out> media_perftests_incremental ...
4 years, 6 months ago (2016-06-14 18:49:42 UTC) #37
DaleCurtis
Fix here: https://codereview.chromium.org/2066943002
4 years, 6 months ago (2016-06-14 19:14:31 UTC) #38
chfremer
On 2016/06/14 19:14:31, DaleCurtis wrote: > Fix here: https://codereview.chromium.org/2066943002 Thanks so much for the fix ...
4 years, 6 months ago (2016-06-14 21:01:49 UTC) #39
DaleCurtis
So it seems like on x86 we're roughly at parity or better while arm is ...
4 years, 6 months ago (2016-06-14 21:06:56 UTC) #40
chfremer
On 2016/06/14 21:06:56, DaleCurtis wrote: > So it seems like on x86 we're roughly at ...
4 years, 6 months ago (2016-06-14 21:41:24 UTC) #41
DaleCurtis
On 2016/06/14 at 21:41:24, chfremer wrote: > On 2016/06/14 21:06:56, DaleCurtis wrote: > > So ...
4 years, 6 months ago (2016-06-14 21:47:29 UTC) #42
chfremer
On 2016/06/14 21:47:29, DaleCurtis wrote: > On 2016/06/14 at 21:41:24, chfremer wrote: > > On ...
4 years, 6 months ago (2016-06-14 21:56:07 UTC) #43
chfremer
On 2016/06/14 21:56:07, chfremer wrote: > On 2016/06/14 21:47:29, DaleCurtis wrote: > > On 2016/06/14 ...
4 years, 6 months ago (2016-06-14 22:20:03 UTC) #44
DaleCurtis
On 2016/06/14 at 22:20:03, chfremer wrote: > On 2016/06/14 21:56:07, chfremer wrote: > > On ...
4 years, 6 months ago (2016-06-14 22:29:54 UTC) #45
DaleCurtis
Also, when I wrote this a long time ago, things like temp vars and conditional ...
4 years, 6 months ago (2016-06-14 22:30:21 UTC) #46
chfremer
On 2016/06/14 22:30:21, DaleCurtis wrote: > Also, when I wrote this a long time ago, ...
4 years, 6 months ago (2016-06-14 23:14:35 UTC) #47
DaleCurtis
Doesn't matter much either way, but out of curiosity does the following change things? I ...
4 years, 6 months ago (2016-06-14 23:25:26 UTC) #48
chfremer
On 2016/06/14 23:25:26, DaleCurtis wrote: > Doesn't matter much either way, but out of curiosity ...
4 years, 6 months ago (2016-06-15 16:06:08 UTC) #49
chfremer
Finished performance tweaks.
4 years, 6 months ago (2016-06-15 16:31:34 UTC) #51
DaleCurtis
lgtm assuming the next step is to remove the deprecated methods and cull the unused ...
4 years, 6 months ago (2016-06-15 20:50:01 UTC) #52
chfremer
https://codereview.chromium.org/2024993004/diff/300001/media/base/audio_bus.h File media/base/audio_bus.h (right): https://codereview.chromium.org/2024993004/diff/300001/media/base/audio_bus.h#newcode226 media/base/audio_bus.h:226: // Delegates to FromInterleavedPartial() I share your concern, but ...
4 years, 6 months ago (2016-06-16 16:16:44 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2024993004/320001
4 years, 6 months ago (2016-06-20 19:26:53 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/40198)
4 years, 6 months ago (2016-06-20 20:08:12 UTC) #58
miu
re the performance conversation: 1. Regarding the local temporary variable affecting performance: The only way ...
4 years, 6 months ago (2016-06-20 20:31:38 UTC) #59
chfremer
On 2016/06/20 20:31:38, miu wrote: > 2. Are we compiling for speed or size? If ...
4 years, 6 months ago (2016-06-20 21:03:58 UTC) #60
DaleCurtis
is_official_build should be sufficient.
4 years, 6 months ago (2016-06-20 22:36:55 UTC) #61
miu
On 2016/06/20 22:36:55, DaleCurtis wrote: > is_official_build should be sufficient. Does that actually enable "compile ...
4 years, 6 months ago (2016-06-20 22:48:18 UTC) #62
DaleCurtis
On 2016/06/20 at 22:48:18, miu wrote: > On 2016/06/20 22:36:55, DaleCurtis wrote: > > is_official_build ...
4 years, 6 months ago (2016-06-20 23:01:39 UTC) #63
chfremer
Just wanted to check back with you. Are we okay to check in or do ...
4 years, 5 months ago (2016-06-24 18:11:08 UTC) #64
DaleCurtis
I think this is fine to land.
4 years, 5 months ago (2016-06-24 18:12:32 UTC) #65
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/2024993004/320001
4 years, 5 months ago (2016-06-24 18:43:38 UTC) #67
commit-bot: I haz the power
Committed patchset #12 (id:320001)
4 years, 5 months ago (2016-06-24 20:17:22 UTC) #69
commit-bot: I haz the power
4 years, 5 months ago (2016-06-24 20:18:49 UTC) #71
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/c9e8ada83949be0314cc2d1d90df7935c3dc9534
Cr-Commit-Position: refs/heads/master@{#401952}

Powered by Google App Engine
This is Rietveld 408576698