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

Unified Diff: media/remoting/proto_enum_utils.cc

Issue 2640113004: Introduce Dolby Vision video codec and Demuxer support (Closed)
Patch Set: fix build break on Android Created 3 years, 10 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/media_options.gni ('k') | media/remoting/rpc.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/remoting/proto_enum_utils.cc
diff --git a/media/remoting/proto_enum_utils.cc b/media/remoting/proto_enum_utils.cc
index aaeeff33f44608695aa264ee4b8084d7df89ea03..cd52a04beaaefba30c7233a56df80f5308cbe075 100644
--- a/media/remoting/proto_enum_utils.cc
+++ b/media/remoting/proto_enum_utils.cc
@@ -223,6 +223,7 @@ base::Optional<VideoCodec> ToMediaVideoCodec(
CASE_RETURN_OTHER(kCodecVP8);
CASE_RETURN_OTHER(kCodecVP9);
CASE_RETURN_OTHER(kCodecHEVC);
+ CASE_RETURN_OTHER(kCodecDolbyVision);
}
return base::nullopt; // Not a 'default' to ensure compile-time checks.
}
@@ -241,6 +242,7 @@ base::Optional<pb::VideoDecoderConfig::Codec> ToProtoVideoDecoderConfigCodec(
CASE_RETURN_OTHER(kCodecVP8);
CASE_RETURN_OTHER(kCodecVP9);
CASE_RETURN_OTHER(kCodecHEVC);
+ CASE_RETURN_OTHER(kCodecDolbyVision);
}
return base::nullopt; // Not a 'default' to ensure compile-time checks.
}
@@ -270,6 +272,10 @@ base::Optional<VideoCodecProfile> ToMediaVideoCodecProfile(
CASE_RETURN_OTHER(HEVCPROFILE_MAIN);
CASE_RETURN_OTHER(HEVCPROFILE_MAIN10);
CASE_RETURN_OTHER(HEVCPROFILE_MAIN_STILL_PICTURE);
+ CASE_RETURN_OTHER(DOLBYVISION_PROFILE0);
+ CASE_RETURN_OTHER(DOLBYVISION_PROFILE4);
+ CASE_RETURN_OTHER(DOLBYVISION_PROFILE5);
+ CASE_RETURN_OTHER(DOLBYVISION_PROFILE7);
}
return base::nullopt; // Not a 'default' to ensure compile-time checks.
}
@@ -299,6 +305,10 @@ ToProtoVideoDecoderConfigProfile(VideoCodecProfile value) {
CASE_RETURN_OTHER(HEVCPROFILE_MAIN);
CASE_RETURN_OTHER(HEVCPROFILE_MAIN10);
CASE_RETURN_OTHER(HEVCPROFILE_MAIN_STILL_PICTURE);
+ CASE_RETURN_OTHER(DOLBYVISION_PROFILE0);
+ CASE_RETURN_OTHER(DOLBYVISION_PROFILE4);
+ CASE_RETURN_OTHER(DOLBYVISION_PROFILE5);
+ CASE_RETURN_OTHER(DOLBYVISION_PROFILE7);
}
return base::nullopt; // Not a 'default' to ensure compile-time checks.
}
« no previous file with comments | « media/media_options.gni ('k') | media/remoting/rpc.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698