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

Issue 2365103002: Send the h264 SPS and PPS configuration parameters to AVDA (Closed)

Created:
4 years, 3 months ago by watk
Modified:
4 years, 2 months ago
CC:
liberato (no reviews please), chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, avayvod+watch_chromium.org, mlamouri+watch-media_chromium.org, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Send the h264 SPS and PPS configuration parameters to AVDA Previously we relied on MediaCodec's ability to get these from the bitstream. But in at least one case (see bug) MediaCodec works more reliably when we pass these when initializing it. BUG=649185 Committed: https://crrev.com/18e1a10a685a93bbcd528da9d61387341fb8484b Cr-Commit-Position: refs/heads/master@{#426091}

Patch Set 1 #

Patch Set 2 : Move parsing #

Patch Set 3 : Fix unittests #

Patch Set 4 : Fix array init syntax #

Total comments: 6

Patch Set 5 : Make it a non-member function #

Total comments: 3

Patch Set 6 : actually fix array init syntax #

Patch Set 7 : constexpr #

Patch Set 8 : rename extra_data to avcc #

Patch Set 9 : Moved parsing to the renderer #

Total comments: 3

Patch Set 10 : formatting #

Patch Set 11 : ifdef ExtractSpsAndPps for Android so it's not an unused function #

Patch Set 12 : Condition the SPS/PPS passing on PROPRIETARY_CODECS too #

Patch Set 13 : Shot in the dark #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -28 lines) Patch
M media/base/android/sdk_media_codec_bridge.h View 1 2 3 4 5 6 7 8 9 1 chunk +11 lines, -8 lines 0 comments Download
M media/base/android/sdk_media_codec_bridge.cc View 1 2 3 4 5 6 7 2 chunks +23 lines, -7 lines 0 comments Download
M media/base/android/sdk_media_codec_bridge_unittest.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -5 lines 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +46 lines, -4 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -4 lines 0 comments Download
M media/gpu/ipc/common/media_param_traits_macros.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M media/video/video_decode_accelerator.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 78 (42 generated)
watk
PTAL sandersd FYI liberato
4 years, 3 months ago (2016-09-24 01:07:29 UTC) #4
Pawel Osciak
Could we perhaps use base::H264Parser in AVDA itself (like VAVDA and other VDAs do) to ...
4 years, 2 months ago (2016-09-26 11:07:13 UTC) #8
watk
On 2016/09/26 11:07:13, Pawel Osciak wrote: > Could we perhaps use base::H264Parser in AVDA itself ...
4 years, 2 months ago (2016-09-26 18:03:50 UTC) #9
watk
PTAL
4 years, 2 months ago (2016-09-26 20:22:13 UTC) #15
watk
On 2016/09/26 20:22:13, watk wrote: > PTAL ping
4 years, 2 months ago (2016-09-27 19:10:02 UTC) #18
sandersd (OOO until July 31)
lgtm, just nits. https://codereview.chromium.org/2365103002/diff/80001/media/base/android/video_decoder_job.cc File media/base/android/video_decoder_job.cc (right): https://codereview.chromium.org/2365103002/diff/80001/media/base/android/video_decoder_job.cc#newcode140 media/base/android/video_decoder_job.cc:140: const std::vector<uint8_t> csd; empty_csd? https://codereview.chromium.org/2365103002/diff/80001/media/gpu/android_video_decode_accelerator.cc File ...
4 years, 2 months ago (2016-09-27 20:03:16 UTC) #19
watk
Thanks, dcheng@ PTAL at media_param_traits_macros.h https://codereview.chromium.org/2365103002/diff/80001/media/base/android/video_decoder_job.cc File media/base/android/video_decoder_job.cc (right): https://codereview.chromium.org/2365103002/diff/80001/media/base/android/video_decoder_job.cc#newcode140 media/base/android/video_decoder_job.cc:140: const std::vector<uint8_t> csd; On ...
4 years, 2 months ago (2016-09-27 21:44:36 UTC) #23
dcheng
https://codereview.chromium.org/2365103002/diff/100001/media/gpu/android_video_decode_accelerator.cc File media/gpu/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/2365103002/diff/100001/media/gpu/android_video_decode_accelerator.cc#newcode144 media/gpu/android_video_decode_accelerator.cc:144: const std::array<uint8_t, 4> prefix = {0, 0, 0, 1}; ...
4 years, 2 months ago (2016-09-27 22:41:15 UTC) #26
watk
On 2016/09/27 22:41:15, dcheng wrote: > https://codereview.chromium.org/2365103002/diff/100001/media/gpu/android_video_decode_accelerator.cc > File media/gpu/android_video_decode_accelerator.cc (right): > > https://codereview.chromium.org/2365103002/diff/100001/media/gpu/android_video_decode_accelerator.cc#newcode144 > ...
4 years, 2 months ago (2016-09-27 22:43:20 UTC) #27
watk
To expand upon that ^. We are now parsing extra_data in AVDA which is running ...
4 years, 2 months ago (2016-09-27 22:56:03 UTC) #30
watk
Friendly ping
4 years, 2 months ago (2016-09-29 19:24:23 UTC) #33
dcheng
On 2016/09/27 22:56:03, watk wrote: > To expand upon that ^. We are now parsing ...
4 years, 2 months ago (2016-09-30 06:48:07 UTC) #34
Pawel Osciak
On 2016/09/30 06:48:07, dcheng wrote: > On 2016/09/27 22:56:03, watk wrote: > > To expand ...
4 years, 2 months ago (2016-09-30 07:22:29 UTC) #35
sandersd (OOO until July 31)
> I'm not sure why we need to pass extra data separately here. Do we ...
4 years, 2 months ago (2016-09-30 17:32:15 UTC) #36
Pawel Osciak
On 2016/09/30 17:32:15, sandersd wrote: > > I'm not sure why we need to pass ...
4 years, 2 months ago (2016-10-03 07:06:05 UTC) #37
sandersd (OOO until July 31)
I'll provide short replies inline, but it sounds like we should schedule a discussion to ...
4 years, 2 months ago (2016-10-03 17:48:27 UTC) #38
watk
Dcheng@, should we be worried about letting the renderer send a vector to the gpu ...
4 years, 2 months ago (2016-10-04 18:50:26 UTC) #39
dcheng
On 2016/10/04 18:50:26, watk wrote: > Dcheng@, should we be worried about letting the renderer ...
4 years, 2 months ago (2016-10-04 19:18:57 UTC) #40
sandersd (OOO until July 31)
On 2016/10/04 19:18:57, dcheng wrote: > On 2016/10/04 18:50:26, watk wrote: > > Dcheng@, should ...
4 years, 2 months ago (2016-10-04 19:37:49 UTC) #41
watk
On 2016/10/04 19:37:49, sandersd wrote: > On 2016/10/04 19:18:57, dcheng wrote: > > On 2016/10/04 ...
4 years, 2 months ago (2016-10-07 20:49:36 UTC) #42
dcheng
On 2016/10/07 20:49:36, watk wrote: > On 2016/10/04 19:37:49, sandersd wrote: > > On 2016/10/04 ...
4 years, 2 months ago (2016-10-07 21:19:20 UTC) #43
watk
Ok, extra_data renamed to avcc in the VDA interface. PTAL posciak@
4 years, 2 months ago (2016-10-07 22:40:12 UTC) #46
watk
Forgot to say: thanks for the info dcheng@.
4 years, 2 months ago (2016-10-07 22:40:34 UTC) #47
watk
Talked offline with dcheng@. He'd prefer we didn't run new parsing in the gpu process. ...
4 years, 2 months ago (2016-10-08 00:05:43 UTC) #50
watk
Moved the parsing back to the renderer.
4 years, 2 months ago (2016-10-11 20:58:39 UTC) #51
dcheng
https://codereview.chromium.org/2365103002/diff/180001/media/gpu/android_video_decode_accelerator.cc File media/gpu/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/2365103002/diff/180001/media/gpu/android_video_decode_accelerator.cc#newcode389 media/gpu/android_video_decode_accelerator.cc:389: codec_config_->csd1_ = config.pps; Is there anything interesting for the ...
4 years, 2 months ago (2016-10-12 05:57:13 UTC) #52
watk
On 2016/10/12 05:57:13, dcheng wrote: > https://codereview.chromium.org/2365103002/diff/180001/media/gpu/android_video_decode_accelerator.cc > File media/gpu/android_video_decode_accelerator.cc (right): > > https://codereview.chromium.org/2365103002/diff/180001/media/gpu/android_video_decode_accelerator.cc#newcode389 > ...
4 years, 2 months ago (2016-10-17 19:06:51 UTC) #53
dcheng
LGTM https://codereview.chromium.org/2365103002/diff/180001/media/base/android/sdk_media_codec_bridge.h File media/base/android/sdk_media_codec_bridge.h (right): https://codereview.chromium.org/2365103002/diff/180001/media/base/android/sdk_media_codec_bridge.h#newcode145 media/base/android/sdk_media_codec_bridge.h:145: csd0, // Codec specific data. See MediaCodec docs. ...
4 years, 2 months ago (2016-10-17 22:39:49 UTC) #54
watk
Thanks! https://codereview.chromium.org/2365103002/diff/180001/media/base/android/sdk_media_codec_bridge.h File media/base/android/sdk_media_codec_bridge.h (right): https://codereview.chromium.org/2365103002/diff/180001/media/base/android/sdk_media_codec_bridge.h#newcode145 media/base/android/sdk_media_codec_bridge.h:145: csd0, // Codec specific data. See MediaCodec docs. ...
4 years, 2 months ago (2016-10-17 22:47:17 UTC) #55
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/2365103002/200001
4 years, 2 months ago (2016-10-17 22:48:00 UTC) #58
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/218210) chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 2 months ago (2016-10-17 23:03:13 UTC) #60
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/2365103002/260001
4 years, 2 months ago (2016-10-18 19:53:43 UTC) #71
commit-bot: I haz the power
Exceeded global retry quota
4 years, 2 months ago (2016-10-18 21:45:31 UTC) #73
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/2365103002/260001
4 years, 2 months ago (2016-10-18 21:48:44 UTC) #75
commit-bot: I haz the power
Committed patchset #13 (id:260001)
4 years, 2 months ago (2016-10-18 23:54:54 UTC) #76
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:04:50 UTC) #78
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/18e1a10a685a93bbcd528da9d61387341fb8484b
Cr-Commit-Position: refs/heads/master@{#426091}

Powered by Google App Engine
This is Rietveld 408576698