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

Issue 2333663003: Add color metadata info to VideoDecoderConfig. (Closed)

Created:
4 years, 3 months ago by servolk
Modified:
4 years, 2 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add color metadata info to VideoDecoderConfig. Also implemented reading color metadata from the Colour element in WebM containers. BUG=645626 Committed: https://crrev.com/e21ae6e132cd646d0fc8f3aeda071e0d2e5bc4f3 Cr-Commit-Position: refs/heads/master@{#420511}

Patch Set 1 #

Patch Set 2 : Refactor color metadata structs #

Patch Set 3 : buildfix #

Patch Set 4 : Added a unit test #

Patch Set 5 : Applied git cl format #

Patch Set 6 : buildfix #

Total comments: 11

Patch Set 7 : Use gfx::ColorSpace instead of WebM definitions #

Patch Set 8 : Move webm-specific structure to webm parser #

Total comments: 9

Patch Set 9 : Added HLG transforms in color_transform.cc #

Patch Set 10 : Make ColorSpace info non-optional in VideoDecoderConfig + added new enum values in tests #

Patch Set 11 : Rebase on top of 2342963003 #

Patch Set 12 : Remove resolution-based init for color_space_info_ #

Total comments: 4

Patch Set 13 : Use static_asserts for keeping enums in sync #

Total comments: 7

Patch Set 14 : Improved RangeID enum comments #

Patch Set 15 : Fixed typo (RBG -> RGB) #

Total comments: 2

Patch Set 16 : Commented the RangeID comment as suggested #

Unified diffs Side-by-side diffs Delta from patch set Stats (+929 lines, -68 lines) Patch
M media/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
A media/base/hdr_metadata.h View 1 2 3 4 5 6 7 1 chunk +42 lines, -0 lines 0 comments Download
A media/base/hdr_metadata.cc View 1 2 3 4 5 6 7 1 chunk +15 lines, -0 lines 0 comments Download
M media/base/video_decoder_config.h View 1 2 3 4 5 6 7 8 9 4 chunks +15 lines, -1 line 0 comments Download
M media/base/video_decoder_config.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +33 lines, -0 lines 0 comments Download
A media/formats/webm/webm_colour_parser.h View 1 2 3 4 5 6 7 1 chunk +89 lines, -0 lines 0 comments Download
A media/formats/webm/webm_colour_parser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +529 lines, -0 lines 0 comments Download
M media/formats/webm/webm_constants.h View 1 2 3 4 5 6 7 8 7 chunks +25 lines, -0 lines 0 comments Download
M media/formats/webm/webm_parser.cc View 1 2 3 4 2 chunks +86 lines, -59 lines 0 comments Download
M media/formats/webm/webm_stream_parser_unittest.cc View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
M media/formats/webm/webm_video_client.h View 1 3 chunks +6 lines, -0 lines 0 comments Download
M media/formats/webm/webm_video_client.cc View 1 2 3 4 5 6 7 2 chunks +21 lines, -0 lines 0 comments Download
M media/test/data/README View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
A media/test/data/colour.webm View 1 2 3 Binary file 0 comments Download
M ui/gfx/color_space.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +15 lines, -6 lines 0 comments Download
M ui/gfx/color_transform.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/color_transform_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 92 (60 generated)
servolk
4 years, 3 months ago (2016-09-14 16:44:09 UTC) #33
hubbe
https://codereview.chromium.org/2333663003/diff/100001/media/base/hdr_metadata.h File media/base/hdr_metadata.h (right): https://codereview.chromium.org/2333663003/diff/100001/media/base/hdr_metadata.h#newcode24 media/base/hdr_metadata.h:24: enum class MatrixCoefficients : std::uint64_t { Plase use gfx::ColorSpace
4 years, 3 months ago (2016-09-14 17:34:17 UTC) #34
halliwell
https://codereview.chromium.org/2333663003/diff/100001/media/base/hdr_metadata.cc File media/base/hdr_metadata.cc (right): https://codereview.chromium.org/2333663003/diff/100001/media/base/hdr_metadata.cc#newcode7 media/base/hdr_metadata.cc:7: #include "base/logging.h" nit, unnecessary https://codereview.chromium.org/2333663003/diff/100001/media/base/hdr_metadata.h File media/base/hdr_metadata.h (right): https://codereview.chromium.org/2333663003/diff/100001/media/base/hdr_metadata.h#newcode260 ...
4 years, 3 months ago (2016-09-14 18:58:41 UTC) #35
servolk
https://codereview.chromium.org/2333663003/diff/100001/media/base/hdr_metadata.cc File media/base/hdr_metadata.cc (right): https://codereview.chromium.org/2333663003/diff/100001/media/base/hdr_metadata.cc#newcode7 media/base/hdr_metadata.cc:7: #include "base/logging.h" On 2016/09/14 18:58:40, halliwell wrote: > nit, ...
4 years, 3 months ago (2016-09-14 22:34:35 UTC) #36
hubbe
https://codereview.chromium.org/2333663003/diff/100001/media/base/hdr_metadata.h File media/base/hdr_metadata.h (right): https://codereview.chromium.org/2333663003/diff/100001/media/base/hdr_metadata.h#newcode24 media/base/hdr_metadata.h:24: enum class MatrixCoefficients : std::uint64_t { On 2016/09/14 22:34:35, ...
4 years, 3 months ago (2016-09-14 22:41:25 UTC) #37
servolk
https://codereview.chromium.org/2333663003/diff/100001/media/base/hdr_metadata.h File media/base/hdr_metadata.h (right): https://codereview.chromium.org/2333663003/diff/100001/media/base/hdr_metadata.h#newcode260 media/base/hdr_metadata.h:260: float PrimaryRChromaticityX = 0; On 2016/09/14 18:58:40, halliwell wrote: ...
4 years, 3 months ago (2016-09-15 01:50:03 UTC) #43
servolk
On 2016/09/14 22:41:25, hubbe wrote: > https://codereview.chromium.org/2333663003/diff/100001/media/base/hdr_metadata.h > File media/base/hdr_metadata.h (right): > > https://codereview.chromium.org/2333663003/diff/100001/media/base/hdr_metadata.h#newcode24 > ...
4 years, 3 months ago (2016-09-15 01:53:46 UTC) #45
hubbe
I'm currently in the middle of the work to move from the old colorspace enum ...
4 years, 3 months ago (2016-09-15 17:25:52 UTC) #48
hubbe
https://codereview.chromium.org/2333663003/diff/140001/media/base/video_decoder_config.h File media/base/video_decoder_config.h (right): https://codereview.chromium.org/2333663003/diff/140001/media/base/video_decoder_config.h#newcode137 media/base/video_decoder_config.h:137: base::Optional<gfx::ColorSpace> color_space_info_; I don't think this needs to be ...
4 years, 3 months ago (2016-09-15 17:30:10 UTC) #49
servolk
https://codereview.chromium.org/2333663003/diff/140001/media/base/video_decoder_config.h File media/base/video_decoder_config.h (right): https://codereview.chromium.org/2333663003/diff/140001/media/base/video_decoder_config.h#newcode137 media/base/video_decoder_config.h:137: base::Optional<gfx::ColorSpace> color_space_info_; On 2016/09/15 17:30:10, hubbe wrote: > I ...
4 years, 3 months ago (2016-09-15 20:29:04 UTC) #50
hubbe
https://codereview.chromium.org/2333663003/diff/140001/media/base/video_decoder_config.h File media/base/video_decoder_config.h (right): https://codereview.chromium.org/2333663003/diff/140001/media/base/video_decoder_config.h#newcode137 media/base/video_decoder_config.h:137: base::Optional<gfx::ColorSpace> color_space_info_; On 2016/09/15 20:29:03, servolk wrote: > On ...
4 years, 3 months ago (2016-09-15 20:42:54 UTC) #51
hubbe
https://codereview.chromium.org/2333663003/diff/140001/ui/gfx/color_space.h File ui/gfx/color_space.h (right): https://codereview.chromium.org/2333663003/diff/140001/ui/gfx/color_space.h#newcode73 ui/gfx/color_space.h:73: ARIB_STD_B67 = 18, // AKA hybrid-log gamma, HLG On ...
4 years, 3 months ago (2016-09-15 20:46:12 UTC) #52
servolk
https://codereview.chromium.org/2333663003/diff/140001/media/base/video_decoder_config.h File media/base/video_decoder_config.h (right): https://codereview.chromium.org/2333663003/diff/140001/media/base/video_decoder_config.h#newcode137 media/base/video_decoder_config.h:137: base::Optional<gfx::ColorSpace> color_space_info_; On 2016/09/15 20:42:53, hubbe wrote: > On ...
4 years, 3 months ago (2016-09-15 23:12:41 UTC) #55
servolk
On 2016/09/15 23:12:41, servolk wrote: > https://codereview.chromium.org/2333663003/diff/140001/media/base/video_decoder_config.h > File media/base/video_decoder_config.h (right): > > https://codereview.chromium.org/2333663003/diff/140001/media/base/video_decoder_config.h#newcode137 > ...
4 years, 3 months ago (2016-09-21 20:11:52 UTC) #60
hubbe
LGTM, although I have not verified that the parser code actually follows the standards.. https://codereview.chromium.org/2333663003/diff/220001/media/formats/webm/webm_colour_parser.cc ...
4 years, 3 months ago (2016-09-21 20:25:44 UTC) #61
servolk
https://codereview.chromium.org/2333663003/diff/220001/media/formats/webm/webm_colour_parser.cc File media/formats/webm/webm_colour_parser.cc (right): https://codereview.chromium.org/2333663003/diff/220001/media/formats/webm/webm_colour_parser.cc#newcode298 media/formats/webm/webm_colour_parser.cc:298: On 2016/09/21 20:25:44, hubbe wrote: > Since these should ...
4 years, 3 months ago (2016-09-21 20:53:22 UTC) #62
hubbe
On 2016/09/21 20:53:22, servolk wrote: > https://codereview.chromium.org/2333663003/diff/220001/media/formats/webm/webm_colour_parser.cc > File media/formats/webm/webm_colour_parser.cc (right): > > https://codereview.chromium.org/2333663003/diff/220001/media/formats/webm/webm_colour_parser.cc#newcode298 > ...
4 years, 3 months ago (2016-09-21 20:59:53 UTC) #63
servolk
https://codereview.chromium.org/2333663003/diff/220001/media/formats/webm/webm_colour_parser.cc File media/formats/webm/webm_colour_parser.cc (right): https://codereview.chromium.org/2333663003/diff/220001/media/formats/webm/webm_colour_parser.cc#newcode298 media/formats/webm/webm_colour_parser.cc:298: On 2016/09/21 20:53:22, servolk wrote: > On 2016/09/21 20:25:44, ...
4 years, 3 months ago (2016-09-21 21:11:27 UTC) #64
servolk
https://codereview.chromium.org/2333663003/diff/220001/media/formats/webm/webm_colour_parser.cc File media/formats/webm/webm_colour_parser.cc (right): https://codereview.chromium.org/2333663003/diff/220001/media/formats/webm/webm_colour_parser.cc#newcode298 media/formats/webm/webm_colour_parser.cc:298: On 2016/09/21 21:11:27, servolk wrote: > On 2016/09/21 20:53:22, ...
4 years, 3 months ago (2016-09-21 22:05:06 UTC) #65
servolk
On 2016/09/21 22:05:06, servolk wrote: > https://codereview.chromium.org/2333663003/diff/220001/media/formats/webm/webm_colour_parser.cc > File media/formats/webm/webm_colour_parser.cc (right): > > https://codereview.chromium.org/2333663003/diff/220001/media/formats/webm/webm_colour_parser.cc#newcode298 > ...
4 years, 3 months ago (2016-09-22 19:18:10 UTC) #70
danakj
https://codereview.chromium.org/2333663003/diff/240001/ui/gfx/color_space.h File ui/gfx/color_space.h (right): https://codereview.chromium.org/2333663003/diff/240001/ui/gfx/color_space.h#newcode120 ui/gfx/color_space.h:120: // correspond to the h264 spec. Chrome-specific values can ...
4 years, 3 months ago (2016-09-22 20:03:49 UTC) #71
servolk
https://codereview.chromium.org/2333663003/diff/240001/ui/gfx/color_space.h File ui/gfx/color_space.h (right): https://codereview.chromium.org/2333663003/diff/240001/ui/gfx/color_space.h#newcode120 ui/gfx/color_space.h:120: // correspond to the h264 spec. Chrome-specific values can ...
4 years, 3 months ago (2016-09-22 20:07:56 UTC) #72
danakj
https://codereview.chromium.org/2333663003/diff/240001/ui/gfx/color_space.h File ui/gfx/color_space.h (right): https://codereview.chromium.org/2333663003/diff/240001/ui/gfx/color_space.h#newcode120 ui/gfx/color_space.h:120: // correspond to the h264 spec. Chrome-specific values can ...
4 years, 3 months ago (2016-09-22 20:30:03 UTC) #73
servolk
https://codereview.chromium.org/2333663003/diff/240001/ui/gfx/color_space.h File ui/gfx/color_space.h (right): https://codereview.chromium.org/2333663003/diff/240001/ui/gfx/color_space.h#newcode120 ui/gfx/color_space.h:120: // correspond to the h264 spec. Chrome-specific values can ...
4 years, 3 months ago (2016-09-22 20:59:47 UTC) #74
servolk
https://codereview.chromium.org/2333663003/diff/240001/ui/gfx/color_space.h File ui/gfx/color_space.h (right): https://codereview.chromium.org/2333663003/diff/240001/ui/gfx/color_space.h#newcode120 ui/gfx/color_space.h:120: // correspond to the h264 spec. Chrome-specific values can ...
4 years, 3 months ago (2016-09-22 21:09:56 UTC) #76
danakj
LGTM % hubbe
4 years, 3 months ago (2016-09-22 21:11:50 UTC) #77
hubbe
https://codereview.chromium.org/2333663003/diff/280001/ui/gfx/color_space.h File ui/gfx/color_space.h (right): https://codereview.chromium.org/2333663003/diff/280001/ui/gfx/color_space.h#newcode120 ui/gfx/color_space.h:120: // correspond to the h264 spec. Chrome-specific values can ...
4 years, 3 months ago (2016-09-22 22:14:18 UTC) #80
servolk
https://codereview.chromium.org/2333663003/diff/280001/ui/gfx/color_space.h File ui/gfx/color_space.h (right): https://codereview.chromium.org/2333663003/diff/280001/ui/gfx/color_space.h#newcode120 ui/gfx/color_space.h:120: // correspond to the h264 spec. Chrome-specific values can ...
4 years, 3 months ago (2016-09-22 22:34:39 UTC) #82
hubbe
lgtm
4 years, 3 months ago (2016-09-22 22:37:57 UTC) #84
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/2333663003/300001
4 years, 3 months ago (2016-09-22 22:51:17 UTC) #88
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 3 months ago (2016-09-23 00:53:22 UTC) #90
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 00:55:13 UTC) #92
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/e21ae6e132cd646d0fc8f3aeda071e0d2e5bc4f3
Cr-Commit-Position: refs/heads/master@{#420511}

Powered by Google App Engine
This is Rietveld 408576698