Skip to content
  • commit-queue@webkit.org's avatar
    [GStreamer] [texmap] upload a video buffer into the video texture · 8db4259b
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=116042
    
    Patch by Víctor Manuel Jáquez Leal <vjaquez@igalia.com> on 2013-06-18
    Reviewed by Philippe Normand.
    
    This patch prepares more quickly the texture when the video frame is
    already in the GPU memory.
    
    It is done using a new buffer's metadata available in GStreamer 1.2,
    and its purpose is to upload buffers into a OpenGL texture.
    
    If the decoder provides buffers with this metadata, the buffer will be
    uploaded into the texture used for the video display and it will be
    rendered, avoiding a expensive mem copies. This is particularly useful
    for Full HD videos, where all the processing and display will be done
    in the GPU.
    
    No new tests, covered by existing tests.
    
    * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp:
    (WebCore::MediaPlayerPrivateGStreamerBase::MediaPlayerPrivateGStreamerBase):
    (WebCore::MediaPlayerPrivateGStreamerBase::updateTexture):
    * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.h:
    * platform/graphics/gstreamer/VideoSinkGStreamer.cpp:
    (webkitVideoSinkProposeAllocation):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@151673 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    8db4259b