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

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

Issue 2571163002: Add PIXEL_FORMAT_I422. (Closed)
Patch Set: move switch cases to align with the enum value order 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
« no previous file with comments | « media/remoting/proto/remoting_rpc_message.proto ('k') | media/renderers/skcanvas_video_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6a8ef8ea437fbec03c7feb04eed920661e366f13 100644
--- a/media/remoting/rpc/proto_enum_utils.cc
+++ b/media/remoting/rpc/proto_enum_utils.cc
@@ -335,6 +335,7 @@ base::Optional<::media::VideoPixelFormat> ToMediaVideoPixelFormat(
CASE_RETURN_OTHER(PIXEL_FORMAT_YUV444P12);
CASE_RETURN_OTHER(PIXEL_FORMAT_Y8);
CASE_RETURN_OTHER(PIXEL_FORMAT_Y16);
+ CASE_RETURN_OTHER(PIXEL_FORMAT_I422);
}
return base::nullopt; // Not a 'default' to ensure compile-time checks.
}
@@ -371,6 +372,7 @@ base::Optional<pb::VideoDecoderConfig::Format> ToProtoVideoDecoderConfigFormat(
CASE_RETURN_OTHER(PIXEL_FORMAT_YUV444P12);
CASE_RETURN_OTHER(PIXEL_FORMAT_Y8);
CASE_RETURN_OTHER(PIXEL_FORMAT_Y16);
+ CASE_RETURN_OTHER(PIXEL_FORMAT_I422);
}
return base::nullopt; // Not a 'default' to ensure compile-time checks.
}
« no previous file with comments | « media/remoting/proto/remoting_rpc_message.proto ('k') | media/renderers/skcanvas_video_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698