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

Unified Diff: cc/resources/video_resource_updater.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 | « no previous file | media/base/video_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/video_resource_updater.cc
diff --git a/cc/resources/video_resource_updater.cc b/cc/resources/video_resource_updater.cc
index 2ea3f4691eaeee32cbf94f12bde5951088415aeb..177d3f80fae32fe24baa2e658e331bf528e985b0 100644
--- a/cc/resources/video_resource_updater.cc
+++ b/cc/resources/video_resource_updater.cc
@@ -91,6 +91,7 @@ VideoFrameExternalResources::ResourceType ResourceTypeForVideoFrame(
case media::PIXEL_FORMAT_YUV444P12:
case media::PIXEL_FORMAT_Y8:
case media::PIXEL_FORMAT_Y16:
+ case media::PIXEL_FORMAT_I422:
case media::PIXEL_FORMAT_UNKNOWN:
break;
}
@@ -406,6 +407,7 @@ VideoFrameExternalResources VideoResourceUpdater::CreateForSoftwarePlanes(
case media::PIXEL_FORMAT_MJPEG:
case media::PIXEL_FORMAT_MT21:
case media::PIXEL_FORMAT_Y8:
+ case media::PIXEL_FORMAT_I422:
bits_per_channel = 8;
break;
case media::PIXEL_FORMAT_YUV420P9:
« no previous file with comments | « no previous file | media/base/video_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698