开发者

The best way to use Video with QGraphicsScene

I am currently using Phonon VideoWidgets inside of a QGraphicsScene using a QGraphicsProxyWidget.

I have my viewport set to a QGLWidget.

However, it causes me big issues when I try to apply some transforms to the video such as a rotation that isn't evenly divisible by 90 degrees since then it 开发者_如何学Goslows my program down a lot.

After reading the few things I managed to find on the subject I found that it seems that when using a VideoWidget inside a QGraphicsProxyWidget it will do software transforms which would explain the massive slowdown.

So I was wondering if there is a better way to render the video.


If at all possible render your video to an opengl framebuffer or pixelbuffer, and have your window draw/transform the texture.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜