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

Unified Diff: chromecast/common/media/cma_param_traits.cc

Issue 1221903003: Change the video color space default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chromecast/common/media/cma_param_traits_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/common/media/cma_param_traits.cc
diff --git a/chromecast/common/media/cma_param_traits.cc b/chromecast/common/media/cma_param_traits.cc
index 8849be19f423e82b7eca41a4854d81b0aac1daf3..61006a9520b751d79a63b2ca94eb050582558387 100644
--- a/chromecast/common/media/cma_param_traits.cc
+++ b/chromecast/common/media/cma_param_traits.cc
@@ -79,6 +79,7 @@ void ParamTraits<media::VideoDecoderConfig>::Write(
WriteParam(m, p.codec());
WriteParam(m, p.profile());
WriteParam(m, p.format());
+ WriteParam(m, p.color_space());
WriteParam(m, p.coded_size());
WriteParam(m, p.visible_rect());
WriteParam(m, p.natural_size());
@@ -99,21 +100,22 @@ bool ParamTraits<media::VideoDecoderConfig>::Read(
media::VideoCodec codec;
media::VideoCodecProfile profile;
media::VideoFrame::Format format;
+ media::VideoFrame::ColorSpace color_space;
gfx::Size coded_size;
gfx::Rect visible_rect;
gfx::Size natural_size;
bool is_encrypted;
std::vector<uint8> extra_data;
if (!ReadParam(m, iter, &codec) || !ReadParam(m, iter, &profile) ||
- !ReadParam(m, iter, &format) || !ReadParam(m, iter, &coded_size) ||
- !ReadParam(m, iter, &visible_rect) ||
+ !ReadParam(m, iter, &format) || !ReadParam(m, iter, &color_space) ||
+ !ReadParam(m, iter, &coded_size) || !ReadParam(m, iter, &visible_rect) ||
!ReadParam(m, iter, &natural_size) ||
!ReadParam(m, iter, &is_encrypted) || !ReadParam(m, iter, &extra_data))
return false;
const uint8* extra_data_ptr = nullptr;
if (!extra_data.empty())
extra_data_ptr = &extra_data[0];
- *r = media::VideoDecoderConfig(codec, profile, format,
+ *r = media::VideoDecoderConfig(codec, profile, format, color_space,
coded_size, visible_rect, natural_size,
extra_data_ptr, extra_data.size(),
is_encrypted);
« no previous file with comments | « no previous file | chromecast/common/media/cma_param_traits_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698