[Libva] vaapi, opengl and multiple threads
Christophe Oosterlynck
tiftof at gmail.com
Sun Jun 17 06:29:19 PDT 2012
Hi,
I'm writing vaapi support for Qt Mobility (qtmultimediakit) using
gstreamer-vaapi (http://gitorious.org/vaapi/gstreamer-vaapi). I've
succeeded at playing a video decoded using vaapi on an OpenGl texture in my
Qt OpenGl scene. I'm having troubles though with playing multiple videos
(black frames, random data in some parts of the video... ).
Each video is being decoded using vaapi in its own thread. The vaapi
surfaces are transferred to an OpenGl texture
using gst_vaapi_texture_put_surface (= vaCopySurfaceGlx wrapper) in the
main thread. The OpenGl context used in the main thread of Qt is shared
with vaapi. Is this the right way to do this? Or could I
call vaCopySurfaceGlx in the respective decoding threads?
Best regards,
Christophe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libva/attachments/20120617/5c50fb27/attachment.html>
More information about the Libva
mailing list