Commit 684ea185 authored by commit-queue@webkit.org's avatar commit-queue@webkit.org
Browse files

2011-01-18 Victoria Kirst <vrk@chromium.org>

        Reviewed by Kenneth Russell.

        [chromium] Adding support for YV16 video frame formats.
        https://bugs.webkit.org/show_bug.cgi?id=52345

        * platform/graphics/chromium/VideoLayerChromium.cpp:
        (WebCore::VideoLayerChromium::determineTextureFormat):
        (WebCore::VideoLayerChromium::draw):
2011-01-18  Victoria Kirst  <vrk@chromium.org>

        Reviewed by Kenneth Russell.

        [chromium] Adding support for YV16 video frame formats.
        https://bugs.webkit.org/show_bug.cgi?id=52345

        * src/VideoFrameChromiumImpl.cpp:
        (WebKit::VideoFrameChromiumImpl::requiredTextureSize):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6f7d9fb7
2011-01-18 Victoria Kirst <vrk@chromium.org>
Reviewed by Kenneth Russell.
[chromium] Adding support for YV16 video frame formats.
https://bugs.webkit.org/show_bug.cgi?id=52345
* platform/graphics/chromium/VideoLayerChromium.cpp:
(WebCore::VideoLayerChromium::determineTextureFormat):
(WebCore::VideoLayerChromium::draw):
2011-01-18 David Hyatt <hyatt@apple.com>
 
Reviewed by Dan Bernstein.
......@@ -264,6 +264,7 @@ unsigned VideoLayerChromium::determineTextureFormat(VideoFrameChromium* frame)
{
switch (frame->format()) {
case VideoFrameChromium::YV12:
case VideoFrameChromium::YV16:
return GraphicsContext3D::LUMINANCE;
case VideoFrameChromium::RGBA:
return GraphicsContext3D::RGBA;
......@@ -330,6 +331,7 @@ void VideoLayerChromium::draw()
switch (m_frameFormat) {
case VideoFrameChromium::YV12:
case VideoFrameChromium::YV16:
drawYUV(sv);
break;
case VideoFrameChromium::RGBA:
......
2011-01-18 Victoria Kirst <vrk@chromium.org>
Reviewed by Kenneth Russell.
[chromium] Adding support for YV16 video frame formats.
https://bugs.webkit.org/show_bug.cgi?id=52345
* src/VideoFrameChromiumImpl.cpp:
(WebKit::VideoFrameChromiumImpl::requiredTextureSize):
2011-01-18 Adam Klein <adamk@chromium.org>
 
Reviewed by Darin Fisher.
......@@ -111,6 +111,7 @@ const IntSize VideoFrameChromiumImpl::requiredTextureSize(unsigned plane) const
{
switch (format()) {
case RGBA:
case YV16:
return IntSize(stride(plane), height());
case YV12:
if (plane == static_cast<unsigned>(yPlane))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment