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

Issue 100503006: Cleanup OPUS decoder. Remove extraneous transforms and copies. (Closed)

Created:
7 years ago by DaleCurtis
Modified:
7 years ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Cleanup OPUS decoder. Remove extraneous transforms and copies. Various cleanups: - Fixes start trimming after seeks. - Patches FFmpegDemuxer to workaround FFmpeg pre-stripping codec delay. - Switches decoding to float on all platforms. - Decodes directly into the AudioBuffer instead of making a copy. - Switches various error logs to actually be DLOG(ERROR). - Various tiny code cleanups. - Rolls DEPS for a couple more OPUS FFmpeg fixes. BUG=104241, 166752, 168524, 315165, 328207 TEST=opus decoding still works. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=240775

Patch Set 1 : Android. #

Total comments: 18

Patch Set 2 : Comments. Fix pre-skip. #

Total comments: 5

Patch Set 3 : Hacks hacks. #

Patch Set 4 : Patch demuxer. #

Total comments: 4

Patch Set 5 : Add DEPS for OPUS fixes. #

Total comments: 2

Patch Set 6 : Comments. #

Total comments: 2

Patch Set 7 : Comments. #

Patch Set 8 : Trimmings. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -109 lines) Patch
M DEPS View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
media/ffmpeg/ffmpeg_common.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M media/filters/audio_renderer_impl.cc View 1 2 3 4 5 6 7 1 chunk +16 lines, -2 lines 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
media/filters/opus_audio_decoder.h View 1 2 3 4 5 3 chunks +6 lines, -5 lines 0 comments Download
media/filters/opus_audio_decoder.cc View 1 2 3 4 5 14 chunks +97 lines, -98 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
DaleCurtis
7 years ago (2013-12-11 22:19:44 UTC) #1
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/100503006/diff/110001/media/ffmpeg/ffmpeg_common.cc File media/ffmpeg/ffmpeg_common.cc (right): https://codereview.chromium.org/100503006/diff/110001/media/ffmpeg/ffmpeg_common.cc#newcode291 media/ffmpeg/ffmpeg_common.cc:291: sample_format = kSampleFormatS16; This is probably a separate CL, ...
7 years ago (2013-12-11 23:30:02 UTC) #2
DaleCurtis
https://codereview.chromium.org/100503006/diff/110001/media/ffmpeg/ffmpeg_common.cc File media/ffmpeg/ffmpeg_common.cc (right): https://codereview.chromium.org/100503006/diff/110001/media/ffmpeg/ffmpeg_common.cc#newcode291 media/ffmpeg/ffmpeg_common.cc:291: sample_format = kSampleFormatS16; On 2013/12/11 23:30:02, acolwell wrote: > ...
7 years ago (2013-12-12 00:03:24 UTC) #3
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/100503006/diff/110001/media/ffmpeg/ffmpeg_common.cc File media/ffmpeg/ffmpeg_common.cc (right): https://codereview.chromium.org/100503006/diff/110001/media/ffmpeg/ffmpeg_common.cc#newcode316 media/ffmpeg/ffmpeg_common.cc:316: if (codec != kCodecOpus) { On 2013/12/12 00:03:24, DaleCurtis ...
7 years ago (2013-12-12 00:53:13 UTC) #4
DaleCurtis
https://codereview.chromium.org/100503006/diff/150001/media/filters/opus_audio_decoder.cc File media/filters/opus_audio_decoder.cc (right): https://codereview.chromium.org/100503006/diff/150001/media/filters/opus_audio_decoder.cc#newcode398 media/filters/opus_audio_decoder.cc:398: if (last_input_timestamp_ == kNoTimestamp() && On 2013/12/12 00:53:14, acolwell ...
7 years ago (2013-12-12 03:07:08 UTC) #5
DaleCurtis
https://codereview.chromium.org/100503006/diff/150001/media/filters/opus_audio_decoder.cc File media/filters/opus_audio_decoder.cc (right): https://codereview.chromium.org/100503006/diff/150001/media/filters/opus_audio_decoder.cc#newcode398 media/filters/opus_audio_decoder.cc:398: if (last_input_timestamp_ == kNoTimestamp() && On 2013/12/12 03:07:08, DaleCurtis ...
7 years ago (2013-12-12 04:12:12 UTC) #6
DaleCurtis
PTAL. This now includes the demuxer patch we discussed. All the test cases I have ...
7 years ago (2013-12-12 21:51:38 UTC) #7
vigneshv
lgtm Thanks for all the cleanup and perf fixes! LGTM % nits. https://codereview.chromium.org/100503006/diff/210001/media/filters/opus_audio_decoder.cc File media/filters/opus_audio_decoder.cc ...
7 years ago (2013-12-12 22:22:41 UTC) #8
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/100503006/diff/190001/media/filters/ffmpeg_demuxer.cc File media/filters/ffmpeg_demuxer.cc (right): https://codereview.chromium.org/100503006/diff/190001/media/filters/ffmpeg_demuxer.cc#newcode851 media/filters/ffmpeg_demuxer.cc:851: if (strcmp(glue_->format_context()->iformat->name, "ogg") == 0) { Add a TODO ...
7 years ago (2013-12-12 22:40:45 UTC) #9
DaleCurtis
https://codereview.chromium.org/100503006/diff/190001/media/filters/ffmpeg_demuxer.cc File media/filters/ffmpeg_demuxer.cc (right): https://codereview.chromium.org/100503006/diff/190001/media/filters/ffmpeg_demuxer.cc#newcode851 media/filters/ffmpeg_demuxer.cc:851: if (strcmp(glue_->format_context()->iformat->name, "ogg") == 0) { On 2013/12/12 22:40:46, ...
7 years ago (2013-12-12 23:36:04 UTC) #10
acolwell GONE FROM CHROMIUM
lgtm https://codereview.chromium.org/100503006/diff/220001/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/100503006/diff/220001/media/filters/audio_renderer_impl.cc#newcode406 media/filters/audio_renderer_impl.cc:406: if (state_ == kPrerolling) { nit: move this ...
7 years ago (2013-12-12 23:46:19 UTC) #11
DaleCurtis
https://codereview.chromium.org/100503006/diff/220001/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/100503006/diff/220001/media/filters/audio_renderer_impl.cc#newcode406 media/filters/audio_renderer_impl.cc:406: if (state_ == kPrerolling) { On 2013/12/12 23:46:19, acolwell ...
7 years ago (2013-12-13 03:19:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/100503006/240001
7 years ago (2013-12-13 03:23:35 UTC) #13
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=183967
7 years ago (2013-12-13 05:21:42 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/100503006/260001
7 years ago (2013-12-13 18:01:34 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/100503006/260001
7 years ago (2013-12-13 19:23:10 UTC) #16
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years ago (2013-12-13 22:07:55 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/100503006/260001
7 years ago (2013-12-13 22:20:46 UTC) #18
commit-bot: I haz the power
7 years ago (2013-12-13 22:24:26 UTC) #19
Message was sent while issue was closed.
Change committed as 240775

Powered by Google App Engine
This is Rietveld 408576698