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

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

Issue 1230593005: Reland: Change the video color space default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: big 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 13f1ce23be81e97474ee64804608832faf392be6..b4f41f1b3e07eaa46c2e1b1f9a8ce1eea0c7ad57 100644
--- a/media/mojo/interfaces/media_types.mojom
+++ b/media/mojo/interfaces/media_types.mojom
@@ -90,7 +90,7 @@ enum SampleFormat {
};
// See media/base/video_types.h for descriptions.
-// Kept in sync with media::VideoFrame::Format via static_asserts.
+// Kept in sync with media::VideoPixelFormat via static_asserts.
enum VideoFormat {
UNKNOWN = 0,
YV12,
@@ -104,6 +104,15 @@ enum VideoFormat {
FORMAT_MAX = XRGB,
};
+// Kept in sync with media::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