|
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}
Total comments: 5
|
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
|
Total messages: 27 (10 generated)
|