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

Unified Diff: cc/resources/video_resource_updater.cc

Issue 88403004: Add plumbing for video pixel formats with JPEG color range. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: \ Created 7 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/simd/convert_yuv_to_rgb.h » ('j') | media/base/yuv_convert.h » ('J')
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 8130fd58f2100a1dd577a1e9c393dc1ce703969b..d3f67a852cac8eaad650c04edf53266fe7477eb9 100644
--- a/cc/resources/video_resource_updater.cc
+++ b/cc/resources/video_resource_updater.cc
@@ -69,6 +69,7 @@ bool VideoResourceUpdater::VerifyFrame(
case media::VideoFrame::YV12:
case media::VideoFrame::YV12A:
case media::VideoFrame::YV16:
+ case media::VideoFrame::YV12J:
case media::VideoFrame::NATIVE_TEXTURE:
#if defined(GOOGLE_TV)
case media::VideoFrame::HOLE:
@@ -99,6 +100,7 @@ static gfx::Size SoftwarePlaneDimension(
switch (input_frame_format) {
case media::VideoFrame::YV12:
case media::VideoFrame::YV12A:
+ case media::VideoFrame::YV12J:
return gfx::ToFlooredSize(gfx::ScaleSize(coded_size, 0.5f, 0.5f));
case media::VideoFrame::YV16:
return gfx::ToFlooredSize(gfx::ScaleSize(coded_size, 0.5f, 1.f));
« no previous file with comments | « no previous file | media/base/simd/convert_yuv_to_rgb.h » ('j') | media/base/yuv_convert.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698