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

Unified Diff: media/base/video_types.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/base/video_types.h ('k') | media/remoting/proto/remoting_rpc_message.proto » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_types.cc
diff --git a/media/base/video_types.cc b/media/base/video_types.cc
index 0f2d540a1aaa2fbcaf19bcf31c89c963e217866f..25fdbf5049ab6e05d03c3fb16badcab896749498 100644
--- a/media/base/video_types.cc
+++ b/media/base/video_types.cc
@@ -64,6 +64,8 @@ std::string VideoPixelFormatToString(VideoPixelFormat format) {
return "PIXEL_FORMAT_Y8";
case PIXEL_FORMAT_Y16:
return "PIXEL_FORMAT_Y16";
+ case PIXEL_FORMAT_I422:
+ return "PIXEL_FORMAT_I422";
}
NOTREACHED() << "Invalid VideoPixelFormat provided: " << format;
return "";
@@ -88,6 +90,7 @@ bool IsYuvPlanar(VideoPixelFormat format) {
case PIXEL_FORMAT_YUV420P12:
case PIXEL_FORMAT_YUV422P12:
case PIXEL_FORMAT_YUV444P12:
+ case PIXEL_FORMAT_I422:
return true;
case PIXEL_FORMAT_UNKNOWN:
@@ -131,6 +134,7 @@ bool IsOpaque(VideoPixelFormat format) {
case PIXEL_FORMAT_YUV444P12:
case PIXEL_FORMAT_Y8:
case PIXEL_FORMAT_Y16:
+ case PIXEL_FORMAT_I422:
return true;
case PIXEL_FORMAT_YV12A:
case PIXEL_FORMAT_ARGB:
« no previous file with comments | « media/base/video_types.h ('k') | media/remoting/proto/remoting_rpc_message.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698