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

Issue 1221903003: Change the video color space default. (Closed)

Created:
5 years, 5 months ago by watk
Modified:
5 years, 5 months ago
Reviewers:
bbudge, CodeByThePound, gunsch, DaleCurtis, lcwu1, codebythepound
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, Aaron Boodman, lcwu+watch_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, feature-media-reviews_chromium.org, darin-cc_chromium.org, mkwst+moarreviews-renderer_chromium.org, gunsch+watch_chromium.org, darin (slow to review), ben+mojo_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change the video color space default. Previously video without color space metadata was assumed to be in Rec601. Now the default depends on the kind of playback. Normal src= defaults to Rec601 for SD sized video (<720 pixels high), and Rec709 for HD. MSE will always default to Rec709. Using a size based heuristic doesn't make sense for MSE where it is common for the resolution to change mid playback. This CL doesn't change the meaning of COLOR_SPACE_UNSPECIFIED. Instead, it adds a color space field to VideoDecoderConfig, and updates the video decoders to use this as the default if they don't find a more authoritative value in the bitstream. This also fixes a (year old!) bug causing the blackwhite tests to always succeed, renames the rec709 blackwhite test file to match the name in blackwhite.html, and re-encodes it to contain the color space metadata (previously it had none). BUG=333619 Committed: https://crrev.com/4dc6c2ad0e595a5e0b543e8e1b8961ee0d742a32 Cr-Commit-Position: refs/heads/master@{#338110}

Patch Set 1 #

Patch Set 2 : Disable the JPEG blackwhite test #

Total comments: 5

Patch Set 3 : Dale's comments #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -107 lines) Patch
M chromecast/common/media/cma_param_traits.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M chromecast/common/media/cma_param_traits_macros.h View 2 chunks +4 lines, -1 line 0 comments Download
M chromecast/media/cma/ipc_streamer/video_decoder_config_marshaller.cc View 5 chunks +6 lines, -1 line 0 comments Download
M chromecast/media/cma/pipeline/audio_video_pipeline_impl_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/media/cma/test/demuxer_stream_for_test.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chromecast/media/cma/test/mock_frame_provider.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/media/media_browsertest.cc View 1 3 chunks +8 lines, -4 lines 0 comments Download
M content/renderer/pepper/video_decoder_shim.cc View 1 2 2 chunks +15 lines, -17 lines 0 comments Download
M media/base/test_helpers.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M media/base/video_decoder_config.h View 1 2 2 chunks +15 lines, -8 lines 0 comments Download
M media/base/video_decoder_config.cc View 1 2 3 chunks +3 lines, -33 lines 0 comments Download
M media/base/video_frame.h View 1 chunk +3 lines, -3 lines 0 comments Download
M media/ffmpeg/ffmpeg_common.h View 1 chunk +5 lines, -2 lines 0 comments Download
M media/ffmpeg/ffmpeg_common.cc View 1 2 3 2 chunks +30 lines, -10 lines 0 comments Download
M media/filters/decrypting_demuxer_stream.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 chunk +9 lines, -4 lines 0 comments Download
M media/filters/ffmpeg_video_decoder_unittest.cc View 7 chunks +9 lines, -3 lines 0 comments Download
M media/filters/vpx_video_decoder.cc View 2 chunks +6 lines, -1 line 0 comments Download
M media/formats/mp2t/es_adapter_video_unittest.cc View 1 chunk +3 lines, -8 lines 0 comments Download
M media/formats/mp2t/es_parser_h264.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M media/formats/mp4/mp4_stream_parser.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M media/formats/webm/webm_video_client.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M media/mojo/interfaces/media_types.mojom View 2 chunks +10 lines, -0 lines 0 comments Download
M media/mojo/services/media_type_converters.cc View 3 chunks +19 lines, -1 line 0 comments Download
A media/test/data/blackwhite_yuv420p_rec709.mp4 View Binary file 0 comments Download

Messages

Total messages: 27 (10 generated)
watk
5 years, 5 months ago (2015-07-06 22:25:55 UTC) #2
DaleCurtis
https://codereview.chromium.org/1221903003/diff/20001/content/renderer/pepper/video_decoder_shim.cc File content/renderer/pepper/video_decoder_shim.cc (right): https://codereview.chromium.org/1221903003/diff/20001/content/renderer/pepper/video_decoder_shim.cc#newcode864 content/renderer/pepper/video_decoder_shim.cc:864: // XXX: Should we change this default too? Maybe ...
5 years, 5 months ago (2015-07-06 22:36:15 UTC) #3
watk
bbudge@, PTAL at video_decoder_shim.cc. I'm not sure whether we should be changing the default for ...
5 years, 5 months ago (2015-07-06 23:15:58 UTC) #5
bbudge
video_decoder_shim.cc LGTM but adding Mike to confirm.
5 years, 5 months ago (2015-07-07 00:26:00 UTC) #7
DaleCurtis
lgtm
5 years, 5 months ago (2015-07-07 01:05:33 UTC) #8
watk
Friendly ping lcwu@
5 years, 5 months ago (2015-07-08 18:19:53 UTC) #9
CodeByThePound
Change to video_decoder_shim.cc LGTM also.
5 years, 5 months ago (2015-07-08 19:29:26 UTC) #10
lcwu1
Sorry for my delay in reviewing this CL. It's been hectic for me the last ...
5 years, 5 months ago (2015-07-08 21:23:44 UTC) #12
gunsch
chromecast/ lgtm (only reviewed the changes in chromecast/)
5 years, 5 months ago (2015-07-08 21:26:13 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1221903003/40001
5 years, 5 months ago (2015-07-08 21:29:19 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/43132) ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 5 months ago (2015-07-08 21:32:37 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1221903003/60001
5 years, 5 months ago (2015-07-08 22:37:31 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/57084) (exceeded global retry quota)
5 years, 5 months ago (2015-07-09 00:08:09 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1221903003/60001
5 years, 5 months ago (2015-07-09 18:08:45 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 5 months ago (2015-07-09 19:16:33 UTC) #25
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/4dc6c2ad0e595a5e0b543e8e1b8961ee0d742a32 Cr-Commit-Position: refs/heads/master@{#338110}
5 years, 5 months ago (2015-07-09 19:17:30 UTC) #26
amineer_google
5 years, 5 months ago (2015-07-09 20:17:09 UTC) #27
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.chromium.org/1228843003/ by amineer@google.com.

The reason for reverting is: Causing official continuous builds to fail with the
following:

../../media/cast/sender/h264_vt_encoder_unittest.cc:308:22: error: no matching
constructor for initialization of 'media::VideoDecoderConfig'
  VideoDecoderConfig config(kCodecH264, H264PROFILE_MAIN, frame_->format(),
                     ^      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../media/base/video_decoder_config.h:78:3: note: candidate constructor not
viable: requires 10 arguments, but 9 were provided
  VideoDecoderConfig(VideoCodec codec,
  ^
../../media/base/video_decoder_config.h:70:20: note: candidate constructor (the
implicit copy constructor) not viable: requires 1 argument, but 9 were provided
class MEDIA_EXPORT VideoDecoderConfig {
                   ^
../../media/base/video_decoder_config.h:74:3: note: candidate constructor not
viable: requires 0 arguments, but 9 were provided
  VideoDecoderConfig();
  ^
1 error generated..

Powered by Google App Engine
This is Rietveld 408576698