tags:

views:

158

answers:

2

I want to play YUV video sequence by using Qt. Now I am using QPixmap, by using DrawPixel on QPixmap pixel by pixel. However, it can't play the video in real-time. How can I do to improve the speed?

A: 

Pixel by pixel is about the slowest method to create a picture. It would improve performance a lot if you processed the image data before and used QPixmap's loadFromData() method.

gre
+1  A: 

Did you try using the Phonon classes like VideoPlayer?

Take a look at this:

http://doc.trolltech.com/4.6/phonon-videoplayer.html

Vitor Py