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

Unified Diff: media/remoting/rpc/proto_enum_utils.cc

Issue 2571163002: Add PIXEL_FORMAT_I422. (Closed)
Patch Set: fix compilation error in video_frame_unittest.cc Created 4 years 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
Index: media/remoting/rpc/proto_enum_utils.cc
diff --git a/media/remoting/rpc/proto_enum_utils.cc b/media/remoting/rpc/proto_enum_utils.cc
index cea08c4fd9fd4985bafd785f81afc70a838c2b05..cefa2b5695bd94edba4c41d03a5604a055690e71 100644
--- a/media/remoting/rpc/proto_enum_utils.cc
+++ b/media/remoting/rpc/proto_enum_utils.cc
@@ -310,6 +310,7 @@ base::Optional<::media::VideoPixelFormat> ToMediaVideoPixelFormat(
switch (value) {
CASE_RETURN_OTHER(PIXEL_FORMAT_UNKNOWN);
CASE_RETURN_OTHER(PIXEL_FORMAT_I420);
+ CASE_RETURN_OTHER(PIXEL_FORMAT_I422);
erickung1 2016/12/14 19:42:26 any reason to add it here rather than add it at th
jcliang 2016/12/15 04:28:43 Nope. I put it here only because the name was simi
CASE_RETURN_OTHER(PIXEL_FORMAT_YV12);
CASE_RETURN_OTHER(PIXEL_FORMAT_YV16);
CASE_RETURN_OTHER(PIXEL_FORMAT_YV12A);
@@ -346,6 +347,7 @@ base::Optional<pb::VideoDecoderConfig::Format> ToProtoVideoDecoderConfigFormat(
switch (value) {
CASE_RETURN_OTHER(PIXEL_FORMAT_UNKNOWN);
CASE_RETURN_OTHER(PIXEL_FORMAT_I420);
+ CASE_RETURN_OTHER(PIXEL_FORMAT_I422);
CASE_RETURN_OTHER(PIXEL_FORMAT_YV12);
CASE_RETURN_OTHER(PIXEL_FORMAT_YV16);
CASE_RETURN_OTHER(PIXEL_FORMAT_YV12A);

Powered by Google App Engine
This is Rietveld 408576698