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

Issue 2640113004: Introduce Dolby Vision video codec and Demuxer support (Closed)

Created:
3 years, 11 months ago by erickung1
Modified:
3 years, 9 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mcasas+watch+vc_chromium.org, chromoting-reviews_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, lcwu+watch_chromium.org, jam, asvitkine+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, halliwell+watch_chromium.org, piman+watch_chromium.org, alokp+watch_chromium.org, apacible+watch_chromium.org, miu+watch_chromium.org, xjz+watch_chromium.org, erickung+watch_chromium.org, DaleCurtis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce Dolby Vision video codec and Demuxer support - Introduce DolbyVision codec and active profile 0, 4, 5 and 7. - new flag "enable_dolby_vision_demuxing" to enable Dolby Vision demuxing feature using MSE using mime type video/mp4. Currently the CL only supports profile 5 and is only enabled on Chromecast build. 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 BUG=481726 Review-Url: https://codereview.chromium.org/2640113004 Cr-Commit-Position: refs/heads/master@{#453762} Committed: https://chromium.googlesource.com/chromium/src/+/2cca0f26776baa99251145cc158b259c1c6fd4c7

Patch Set 1 #

Total comments: 70

Patch Set 2 : Address feedback except for annexb conversion #

Patch Set 3 : Update CL description #

Patch Set 4 : Rebase to TOT #

Patch Set 5 : fix CQ failure #

Total comments: 10

Patch Set 6 : Address wolenetz@'s comment #

Patch Set 7 : rebase to TOT #

Patch Set 8 : fix build break on Android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+673 lines, -30 lines) Patch
M chromecast/common/media/cast_media_client.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chromecast/media/base/media_codec_support.h View 1 2 3 4 5 1 chunk +9 lines, -1 line 0 comments Download
M chromecast/media/base/media_codec_support.cc View 1 2 3 4 6 chunks +33 lines, -5 lines 0 comments Download
M chromecast/media/cma/base/decoder_config_adapter.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/render_media_client.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M gpu/config/gpu_info.h View 1 2 3 1 chunk +5 lines, -1 line 0 comments Download
M gpu/ipc/common/gpu_info.mojom View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/ipc/common/gpu_info_struct_traits.cc View 1 2 3 2 chunks +20 lines, -0 lines 0 comments Download
M media/BUILD.gn View 1 2 3 3 chunks +10 lines, -0 lines 0 comments Download
M media/base/mime_util_internal.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M media/base/mime_util_internal.cc View 1 2 3 4 5 6 5 chunks +18 lines, -0 lines 0 comments Download
M media/base/mime_util_unittest.cc View 1 2 3 4 5 6 3 chunks +14 lines, -0 lines 0 comments Download
M media/base/video_codecs.h View 1 2 3 4 5 6 7 3 chunks +16 lines, -2 lines 0 comments Download
M media/base/video_codecs.cc View 1 2 3 4 5 4 chunks +112 lines, -0 lines 0 comments Download
M media/base/video_codecs_unittest.cc View 1 2 3 4 5 1 chunk +67 lines, -0 lines 0 comments Download
M media/base/video_decoder_config.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M media/filters/stream_parser_factory.cc View 1 2 3 3 chunks +25 lines, -5 lines 0 comments Download
M media/formats/mp4/avc.h View 1 3 chunks +9 lines, -1 line 0 comments Download
M media/formats/mp4/avc.cc View 1 4 chunks +9 lines, -5 lines 0 comments Download
M media/formats/mp4/avc_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/formats/mp4/box_definitions.cc View 1 2 3 4 5 6 5 chunks +72 lines, -4 lines 0 comments Download
A media/formats/mp4/dolby_vision.h View 1 1 chunk +48 lines, -0 lines 0 comments Download
A media/formats/mp4/dolby_vision.cc View 1 2 3 4 5 1 chunk +83 lines, -0 lines 0 comments Download
A media/formats/mp4/dolby_vision_unittest.cc View 1 1 chunk +68 lines, -0 lines 0 comments Download
M media/formats/mp4/fourccs.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M media/formats/mp4/mp4_stream_parser.cc View 1 chunk +2 lines, -1 line 0 comments Download
M media/media_options.gni View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M media/remoting/proto_enum_utils.cc View 1 2 3 4 chunks +10 lines, -0 lines 0 comments Download
M media/remoting/rpc.proto View 1 2 3 2 chunks +5 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 3 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 63 (38 generated)
erickung1
wolenetz@, please review the media change
3 years, 11 months ago (2017-01-19 22:25:31 UTC) #4
erickung1
halliwell@ please review the chromecast change. feedback from other people are welcome
3 years, 11 months ago (2017-01-19 22:26:08 UTC) #5
halliwell
chromecast/ lgtm https://codereview.chromium.org/2640113004/diff/1/chromecast/media/base/media_codec_support.cc File chromecast/media/base/media_codec_support.cc (right): https://codereview.chromium.org/2640113004/diff/1/chromecast/media/base/media_codec_support.cc#newcode77 chromecast/media/base/media_codec_support.cc:77: codec_profile == ::media::DOLBYVISION_PROFILE7) nit, prefer braces { ...
3 years, 11 months ago (2017-01-20 02:05:04 UTC) #7
wolenetz
initial comments. //media not yet reviewed. https://codereview.chromium.org/2640113004/diff/1/chromecast/media/base/media_codec_support.cc File chromecast/media/base/media_codec_support.cc (right): https://codereview.chromium.org/2640113004/diff/1/chromecast/media/base/media_codec_support.cc#newcode38 chromecast/media/base/media_codec_support.cc:38: // Shared library ...
3 years, 11 months ago (2017-01-24 21:52:24 UTC) #8
wolenetz
Looking pretty good overall. Lots of relatively small comments. Also, please add tests to media_canplaytype_browsertest ...
3 years, 11 months ago (2017-01-25 23:42:42 UTC) #9
wolenetz
You'll also need review from //tools and //gpu owners
3 years, 11 months ago (2017-01-25 23:44:26 UTC) #10
wolenetz
Also, the CL description seems over-specific to profile 5, when there are other profiles (0,1,4) ...
3 years, 11 months ago (2017-01-25 23:46:00 UTC) #11
erickung1
Please take a look Patch set 2. This patch set addresses most comments except for ...
3 years, 10 months ago (2017-02-03 18:18:32 UTC) #13
wolenetz
Thanks for updating - I'll look deeply at this in the morning. Just a quick ...
3 years, 10 months ago (2017-02-08 00:45:12 UTC) #14
wolenetz
On 2017/02/08 00:45:12, wolenetz wrote: > Thanks for updating - I'll look deeply at this ...
3 years, 10 months ago (2017-02-09 00:32:57 UTC) #15
erickung1
update CL description
3 years, 10 months ago (2017-02-10 19:43:24 UTC) #18
erickung1
Add dpranke@ to review tools/ Add jbauman@ to review gpu/ Thanks.
3 years, 10 months ago (2017-02-13 18:30:00 UTC) #21
jbauman
gpu/ lgtm assuming media people are happy with the VideoCodecProfile changes.
3 years, 10 months ago (2017-02-13 23:49:44 UTC) #22
Dirk Pranke
I'm not a histograms owner, you'll want asvitkine or isherman
3 years, 10 months ago (2017-02-13 23:53:06 UTC) #24
Ilya Sherman
histograms.xml lgtm
3 years, 10 months ago (2017-02-14 00:20:20 UTC) #25
wolenetz
A couple other comments: 1) CL title mismatches the first line of description. Please make ...
3 years, 10 months ago (2017-02-18 00:01:03 UTC) #35
erickung1
https://codereview.chromium.org/2640113004/diff/80001/chromecast/media/base/media_codec_support.h File chromecast/media/base/media_codec_support.h (right): https://codereview.chromium.org/2640113004/diff/80001/chromecast/media/base/media_codec_support.h#newcode30 chromecast/media/base/media_codec_support.h:30: // TODO(erickung): Removes |codec_profile| parameter by changing VideoCodec enum ...
3 years, 9 months ago (2017-02-27 17:33:10 UTC) #42
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/2640113004/140001
3 years, 9 months ago (2017-02-28 14:22:21 UTC) #51
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/374560)
3 years, 9 months ago (2017-02-28 14:31:27 UTC) #53
erickung1
wfh@ can you please help reviewing the following changes? Thanks. Missing LGTM from an OWNER ...
3 years, 9 months ago (2017-02-28 15:04:15 UTC) #55
erickung1
wfh@ can you please help reviewing the following changes? Thanks. Missing LGTM from an OWNER ...
3 years, 9 months ago (2017-02-28 15:04:17 UTC) #56
Will Harris
lgtm for mojo/ipc files.
3 years, 9 months ago (2017-02-28 17:56:53 UTC) #57
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/2640113004/140001
3 years, 9 months ago (2017-03-01 00:06:59 UTC) #59
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/2cca0f26776baa99251145cc158b259c1c6fd4c7
3 years, 9 months ago (2017-03-01 00:14:53 UTC) #62
wolenetz
3 years, 9 months ago (2017-03-08 20:08:12 UTC) #63
Message was sent while issue was closed.
On 2017/02/27 17:33:10, erickung1 wrote:
>
https://codereview.chromium.org/2640113004/diff/80001/chromecast/media/base/m...
> File chromecast/media/base/media_codec_support.h (right):
> 
>
https://codereview.chromium.org/2640113004/diff/80001/chromecast/media/base/m...
> chromecast/media/base/media_codec_support.h:30: // TODO(erickung): Removes
> |codec_profile| parameter by changing VideoCodec enum
> On 2017/02/18 00:01:02, wolenetz_OoO_Feb18-Mar5 wrote:
> > nit: s/Removes/Remove/
> 
> Done.
> 
>
https://codereview.chromium.org/2640113004/diff/80001/media/base/mime_util_in...
> File media/base/mime_util_internal.h (right):
> 
>
https://codereview.chromium.org/2640113004/diff/80001/media/base/mime_util_in...
> media/base/mime_util_internal.h:44: DolbyVision,
> On 2017/02/18 00:01:02, wolenetz_OoO_Feb18-Mar5 wrote:
> > nit: use MACRO_STYLE here for consistency (see
> >
>
https://chromium.googlesource.com/chromium/src/+/master/styleguide/c++/c++.md).
> > So, DOLBY_VISION (or DOLBYVISION)
> 
> Done.
> 
>
https://codereview.chromium.org/2640113004/diff/80001/media/base/video_codecs.h
> File media/base/video_codecs.h (right):
> 
>
https://codereview.chromium.org/2640113004/diff/80001/media/base/video_codecs...
> media/base/video_codecs.h:76: HEVCPROFILE_MAIN_STILL_PICTURE = 18,
> On 2017/02/18 00:01:03, wolenetz_OoO_Feb18-Mar5 wrote:
> > Was there unintentional deletion of HEVCPROFILE_MAX enum value here?
> 
> Done.
> 
>
https://codereview.chromium.org/2640113004/diff/80001/media/formats/mp4/dolby...
> File media/formats/mp4/dolby_vision.cc (right):
> 
>
https://codereview.chromium.org/2640113004/diff/80001/media/formats/mp4/dolby...
> media/formats/mp4/dolby_vision.cc:68: NOTREACHED();
> On 2017/02/18 00:01:03, wolenetz_OoO_Feb18-Mar5 wrote:
> > Are you sure you want to DCHECK(false) here? There could be a buggy stream
> that
> > isn't supported -> we shouldn't crash here, we should just return false and
> emit
> > parse failure (even on a debug build), right?
> 
> Done.
> 
>
https://codereview.chromium.org/2640113004/diff/80001/media/formats/mp4/dolby...
> media/formats/mp4/dolby_vision.cc:72: if (media_log.get()) {
> On 2017/02/18 00:01:03, wolenetz_OoO_Feb18-Mar5 wrote:
> > Why the conditioning of the DVLOG on media_log?
> 
> Done.

(post-vacation re-lgtm) :)

Powered by Google App Engine
This is Rietveld 408576698