summaryrefslogtreecommitdiffstats
path: root/cc/resources
diff options
context:
space:
mode:
authorsandersd@chromium.org <sandersd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-03 08:46:01 +0000
committersandersd@chromium.org <sandersd@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-03 08:46:01 +0000
commit4b0cc73193fb82c7c1eca748da7964ec9c8f7aa8 (patch)
tree7aea5f30cecb761ac6134f082987cf2238189f2d /cc/resources
parent195c092d2df1eb9a677fed0fb1ce314944304d60 (diff)
downloadchromium_src-4b0cc73193fb82c7c1eca748da7964ec9c8f7aa8.zip
chromium_src-4b0cc73193fb82c7c1eca748da7964ec9c8f7aa8.tar.gz
chromium_src-4b0cc73193fb82c7c1eca748da7964ec9c8f7aa8.tar.bz2
Support for YUV 4:4:4 subsampling.
Plumb a new VideoFrame format (YV24) through the stack and add a conversion using libyuv to the software path. BUG=104711 Review URL: https://codereview.chromium.org/289373011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274434 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources')
-rw-r--r--cc/resources/video_resource_updater.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/cc/resources/video_resource_updater.cc b/cc/resources/video_resource_updater.cc
index f971ae8..1d93aeb 100644
--- a/cc/resources/video_resource_updater.cc
+++ b/cc/resources/video_resource_updater.cc
@@ -65,6 +65,7 @@ bool VideoResourceUpdater::VerifyFrame(
case media::VideoFrame::YV12A:
case media::VideoFrame::YV16:
case media::VideoFrame::YV12J:
+ case media::VideoFrame::YV24:
case media::VideoFrame::NATIVE_TEXTURE:
#if defined(VIDEO_HOLE)
case media::VideoFrame::HOLE:
@@ -111,12 +112,14 @@ VideoFrameExternalResources VideoResourceUpdater::CreateForSoftwarePlanes(
input_frame_format == media::VideoFrame::I420 ||
input_frame_format == media::VideoFrame::YV12A ||
input_frame_format == media::VideoFrame::YV12J ||
- input_frame_format == media::VideoFrame::YV16);
+ input_frame_format == media::VideoFrame::YV16 ||
+ input_frame_format == media::VideoFrame::YV24);
if (input_frame_format != media::VideoFrame::YV12 &&
input_frame_format != media::VideoFrame::I420 &&
input_frame_format != media::VideoFrame::YV12A &&
input_frame_format != media::VideoFrame::YV12J &&
- input_frame_format != media::VideoFrame::YV16)
+ input_frame_format != media::VideoFrame::YV16 &&
+ input_frame_format != media::VideoFrame::YV24)
return VideoFrameExternalResources();
bool software_compositor = context_provider_ == NULL;