summaryrefslogtreecommitdiffstats
path: root/media/base/video_frame.cc
diff options
context:
space:
mode:
authorrileya@chromium.org <rileya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-03 02:25:58 +0000
committerrileya@chromium.org <rileya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-05-03 02:25:58 +0000
commit82faf5ea428558d05081b2d0dd308f1832b37c5b (patch)
tree11bec6c332858ee8a901fec7d4f103cc6e09f8bd /media/base/video_frame.cc
parentce8c2a80fddc4866d88dfba43b8d4c39ba1b0063 (diff)
downloadchromium_src-82faf5ea428558d05081b2d0dd308f1832b37c5b.zip
chromium_src-82faf5ea428558d05081b2d0dd308f1832b37c5b.tar.gz
chromium_src-82faf5ea428558d05081b2d0dd308f1832b37c5b.tar.bz2
Support videos with JPEG color range in GPU YUV convert path.
It's worth noting that the media_browsertests Yuv* tests compare video pixels with a reference image, but whether or not the hardware path is used, copying the pixels from the video into a canvas goes through the software path, so despite looking correct onscreen when GPU-accelerated, the JPEG color range video tests will still fail until the software path properly supports the JPEG color range. BUG=172898 Review URL: https://codereview.chromium.org/92703003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@268010 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/base/video_frame.cc')
-rw-r--r--media/base/video_frame.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/base/video_frame.cc b/media/base/video_frame.cc
index 3d01455..44f46d1 100644
--- a/media/base/video_frame.cc
+++ b/media/base/video_frame.cc
@@ -560,6 +560,7 @@ int VideoFrame::rows(size_t plane) const {
return height;
// Fallthrough.
case YV12:
+ case YV12J:
case I420:
if (plane == kYPlane)
return height;