开发者

The best way to use Video with QGraphicsScene

开发者 https://www.devze.com 2023-01-05 10:16 出处:网络
I am currently using Phonon VideoWidgets inside of a QGraphicsScene using a QGraphicsProxyWidget. I have my viewport set to a QGLWidget.

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

精彩评论

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