[Interest] Running code in the scene graph renderer thread

Luca Carlon carlon.luca at gmail.com
Tue Apr 2 22:21:26 CEST 2013


Hi! I'm implementing a plugin for Qt Multimedia for playing video and audio
using hardware acceleration. When opening a content which includes video, I
need to instantiate an OpenGL texture and an EGLImageKHR. To do this I need
to be in the thread with the current OpenGL context, which should be the
renderer thread.

I did this in a custom QML component (in the updatePaintNode method), and
everything is working correctly: but how do I execute my code in the
renderer thread of the scene graph from a Qt Multimedia plugin? What
options do I have?

I quickly read the Qt Multimedia plugin for Android, but that is a little
different because the texture is instantiated by the SurfaceTexture java
class.

Thanks!
Luca
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130402/3edc9a49/attachment.html>


More information about the Interest mailing list