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

Unified Diff: media/mojo/interfaces/media_types.mojom

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 | « media/formats/webm/webm_video_client.cc ('k') | media/mojo/services/media_type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/interfaces/media_types.mojom
diff --git a/media/mojo/interfaces/media_types.mojom b/media/mojo/interfaces/media_types.mojom
index ff87cec727fb8e920b50fb570c97c69afa26423d..6944a3a3ac1c314b074dde5b366b6063733f161f 100644
--- a/media/mojo/interfaces/media_types.mojom
+++ b/media/mojo/interfaces/media_types.mojom
@@ -104,6 +104,15 @@ enum VideoFormat {
FORMAT_MAX = XRGB,
};
+// Kept in sync with media::VideoFrame::ColorSpace via static_asserts.
+enum ColorSpace {
+ UNSPECIFIED = 0,
+ JPEG = 1,
+ HD_REC709 = 2,
+ SD_REC601 = 3,
+ MAX = SD_REC601,
+};
+
// See media/base/video_decoder_config.h for descriptions.
// Kept in sync with media::VideoCodec via static_asserts.
enum VideoCodec {
@@ -164,6 +173,7 @@ struct VideoDecoderConfig {
VideoCodec codec;
VideoCodecProfile profile;
VideoFormat format;
+ ColorSpace color_space;
Size coded_size;
Rect visible_rect;
Size natural_size;
« no previous file with comments | « media/formats/webm/webm_video_client.cc ('k') | media/mojo/services/media_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698