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; |