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

Issue 2572573007: Use passthrough decoder for (E)AC3 formats (Closed)

Created:
4 years ago by AndyWu
Modified:
3 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, agrieve+watch_chromium.org, alokp+watch_chromium.org, avayvod+watch_chromium.org, chromium-reviews, darin (slow to review), feature-media-reviews_chromium.org, mlamouri+watch-media_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use passthrough decoder for (E)AC3 formats This CL is part of enabling (E)AC3 passthrough feature. Use "Android raw decoder" for (E)AC3 audio formats. The decoder would only decrypt but not decode the audio bitstream, i.e. the output would be clean but compressed audio bitstream, not PCM. BUG=613385 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2572573007 Cr-Commit-Position: refs/heads/master@{#471893} Committed: https://chromium.googlesource.com/chromium/src/+/4131b4cb048807c5651f917bc77669545128ff5b

Patch Set 1 #

Patch Set 2 : Fix BUILD.gn #

Patch Set 3 : Fix AudioBuffer #

Total comments: 8

Patch Set 4 : Use passthrough decoder for (E)AC3 formats #

Patch Set 5 : Use BitReader to unpack header fileds #

Total comments: 6

Patch Set 6 : Rebase #

Patch Set 7 : Use passthrough decoder for (E)AC3 formats #

Total comments: 15

Patch Set 8 : Unit tests #

Patch Set 9 : Rebase #

Total comments: 8

Patch Set 10 : Fix unit tests #

Patch Set 11 : Sanity checks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+559 lines, -22 lines) Patch
M media/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -0 lines 0 comments Download
M media/base/android/java/src/org/chromium/media/MediaCodecUtil.java View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M media/base/android/media_codec_util.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M media/base/android/media_codec_util.cc View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -0 lines 0 comments Download
M media/base/audio_buffer.h View 1 2 3 4 5 6 7 4 chunks +29 lines, -0 lines 0 comments Download
M media/base/audio_buffer.cc View 1 2 3 4 5 6 7 12 chunks +70 lines, -6 lines 0 comments Download
M media/base/audio_buffer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
M media/base/mime_util_internal.cc View 1 2 3 4 5 2 chunks +8 lines, -2 lines 0 comments Download
M media/base/mime_util_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +18 lines, -4 lines 0 comments Download
M media/filters/android/media_codec_audio_decoder.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M media/filters/android/media_codec_audio_decoder.cc View 1 2 3 4 5 6 5 chunks +55 lines, -10 lines 0 comments Download
A media/formats/ac3/ac3_util.h View 1 2 3 4 5 6 7 1 chunk +32 lines, -0 lines 0 comments Download
A media/formats/ac3/ac3_util.cc View 1 2 3 4 5 6 7 1 chunk +205 lines, -0 lines 0 comments Download
A media/formats/ac3/ac3_util_unittest.cc View 1 2 3 4 5 6 7 1 chunk +58 lines, -0 lines 0 comments Download
M media/mojo/common/media_type_converters.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 53 (24 generated)
AndyWu
4 years ago (2016-12-14 00:20:26 UTC) #4
DaleCurtis
Won't have time to get to this this week. Have a couple days next week ...
4 years ago (2016-12-14 00:47:35 UTC) #5
DaleCurtis
Had some time for comments, AudioBuffer and Ac3Util both need unittests written. https://codereview.chromium.org/2572573007/diff/40001/media/base/ac3_util.cc File media/base/ac3_util.cc ...
4 years ago (2016-12-14 20:00:04 UTC) #6
AndyWu
I will check BitReader and update again. https://codereview.chromium.org/2572573007/diff/40001/media/base/ac3_util.cc File media/base/ac3_util.cc (right): https://codereview.chromium.org/2572573007/diff/40001/media/base/ac3_util.cc#newcode1 media/base/ac3_util.cc:1: // Copyright ...
4 years ago (2016-12-15 22:20:03 UTC) #7
chcunningham
https://codereview.chromium.org/2572573007/diff/80001/media/base/audio_buffer.cc File media/base/audio_buffer.cc (right): https://codereview.chromium.org/2572573007/diff/80001/media/base/audio_buffer.cc#newcode83 media/base/audio_buffer.cc:83: if (!IsBitstream(sample_format)) I feel like the interleaved code path ...
4 years ago (2016-12-16 22:03:14 UTC) #8
AndyWu
https://codereview.chromium.org/2572573007/diff/80001/media/base/audio_buffer.cc File media/base/audio_buffer.cc (right): https://codereview.chromium.org/2572573007/diff/80001/media/base/audio_buffer.cc#newcode83 media/base/audio_buffer.cc:83: if (!IsBitstream(sample_format)) I do make (E)AC3 as interleaved formats: ...
3 years, 7 months ago (2017-05-02 23:41:03 UTC) #9
chcunningham
Sorry for the delay, will take a look at this today.
3 years, 7 months ago (2017-05-04 18:59:05 UTC) #10
DaleCurtis
Mostly lg2m needs unittests for new AudioBuffer methods. Is this enabled in this CL? I ...
3 years, 7 months ago (2017-05-04 19:05:44 UTC) #11
chcunningham
Generally looks good. I need to take more time with the ac3 utils. > I ...
3 years, 7 months ago (2017-05-05 01:14:12 UTC) #12
chcunningham
https://codereview.chromium.org/2572573007/diff/120001/media/formats/ac3/ac3_util.cc File media/formats/ac3/ac3_util.cc (right): https://codereview.chromium.org/2572573007/diff/120001/media/formats/ac3/ac3_util.cc#newcode135 media/formats/ac3/ac3_util.cc:135: return 2 * kSyncFrameSizeInWordsFor44kHz[Ac3Header.ac3_frame_size_code()]; Can you document where the ...
3 years, 7 months ago (2017-05-05 18:57:19 UTC) #13
AndyWu
Thanks a lot for the review. :) Yes, this CL is only part of the ...
3 years, 7 months ago (2017-05-06 01:46:48 UTC) #14
chcunningham
+wolenetz - FYI on no-op appendWindow trimming for AC3 (see comments in AudioBuffer). LGTM https://codereview.chromium.org/2572573007/diff/120001/media/base/audio_buffer.cc ...
3 years, 7 months ago (2017-05-08 20:01:02 UTC) #16
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/2572573007/140001
3 years, 7 months ago (2017-05-08 20:20:08 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/413444) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 7 months ago (2017-05-08 20:23:45 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.chromium.org/2572573007/160001
3 years, 7 months ago (2017-05-08 21:12:22 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/430393)
3 years, 7 months ago (2017-05-08 21:33:16 UTC) #25
Tom Sepez
https://codereview.chromium.org/2572573007/diff/160001/media/base/audio_buffer.cc File media/base/audio_buffer.cc (right): https://codereview.chromium.org/2572573007/diff/160001/media/base/audio_buffer.cc#newcode166 media/base/audio_buffer.cc:166: CHECK_GT(frame_count, 0); // Otherwise looks like an EOF buffer. ...
3 years, 7 months ago (2017-05-08 21:50:18 UTC) #27
AndyWu
chcunningham@, any suggestions? https://codereview.chromium.org/2572573007/diff/160001/media/base/audio_buffer.cc File media/base/audio_buffer.cc (right): https://codereview.chromium.org/2572573007/diff/160001/media/base/audio_buffer.cc#newcode166 media/base/audio_buffer.cc:166: CHECK_GT(frame_count, 0); // Otherwise looks like ...
3 years, 7 months ago (2017-05-08 22:51:02 UTC) #28
Tom Sepez
https://codereview.chromium.org/2572573007/diff/160001/media/base/audio_buffer.cc File media/base/audio_buffer.cc (right): https://codereview.chromium.org/2572573007/diff/160001/media/base/audio_buffer.cc#newcode166 media/base/audio_buffer.cc:166: CHECK_GT(frame_count, 0); // Otherwise looks like an EOF buffer. ...
3 years, 7 months ago (2017-05-08 22:56:56 UTC) #29
AndyWu
https://codereview.chromium.org/2572573007/diff/160001/media/base/audio_buffer.cc File media/base/audio_buffer.cc (right): https://codereview.chromium.org/2572573007/diff/160001/media/base/audio_buffer.cc#newcode166 media/base/audio_buffer.cc:166: CHECK_GT(frame_count, 0); // Otherwise looks like an EOF buffer. ...
3 years, 7 months ago (2017-05-09 01:25:46 UTC) #30
Tom Sepez
lgtm
3 years, 7 months ago (2017-05-10 17:10:02 UTC) #35
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/2572573007/200001
3 years, 7 months ago (2017-05-10 17:15:39 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/450361)
3 years, 7 months ago (2017-05-10 20:19:10 UTC) #40
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/2572573007/200001
3 years, 7 months ago (2017-05-11 15:59:01 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/451872)
3 years, 7 months ago (2017-05-11 17:59:02 UTC) #44
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/2572573007/200001
3 years, 7 months ago (2017-05-15 16:52:16 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/228604)
3 years, 7 months ago (2017-05-15 17:51:44 UTC) #48
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/2572573007/200001
3 years, 7 months ago (2017-05-15 19:50:27 UTC) #50
commit-bot: I haz the power
3 years, 7 months ago (2017-05-15 20:53:59 UTC) #53
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/4131b4cb048807c5651f917bc776...

Powered by Google App Engine
This is Rietveld 408576698