Re: [Interest] Performance Issues with vlc and QImage painting inside QML

2012-07-16 Thread Mark
On Mon, Jul 16, 2012 at 2:21 PM, Daniel Kreuter wrote: > Thanks for this link. > > When I understand the article right, then I can't move my > QDeclarativeItem class into a new Thread, because the paint method can > only be used inside of the GUI Thread. > > So how can I improve the performance of

Re: [Interest] Performance Issues with vlc and QImage painting inside QML

2012-07-16 Thread Daniel Kreuter
On Mon, Jul 16, 2012 at 3:06 PM, wrote: > > Things that I'd try: > > - different graphics backends (e.g. raster) > - use a opengl viewport (QGLWidget) > - follow e.g. http://doc.qt.nokia.com/4.8/qdeclarativeperformance.html > > The one working fine uses QWidget and QFrame for painting, but th

Re: [Interest] Performance Issues with vlc and QImage painting inside QML

2012-07-16 Thread kai.koehne
> When I understand the article right, then I can't move my > QDeclarativeItem class into a new Thread, because the paint method can > only be used inside of the GUI Thread. Yes. > So how can I improve the performance of the video playback inside of > QML? Using QWidget or the normal VLC player a

Re: [Interest] Performance Issues with vlc and QImage painting inside QML

2012-07-16 Thread Daniel Kreuter
Thanks for this link. When I understand the article right, then I can't move my QDeclarativeItem class into a new Thread, because the paint method can only be used inside of the GUI Thread. So how can I improve the performance of the video playback inside of QML? Using QWidget or the normal VLC p

Re: [Interest] Performance Issues with vlc and QImage painting inside QML

2012-07-16 Thread kai.koehne
> My first thought was, to subclass QThread as well and let the video > player run in an own thread, but you can't subclass QDeclarativeItem > and QThread in the same class. I can't comment on your original problem, but you don't have to (and don't need to) subclass QThread: http://qt-project.or

Re: [Interest] Performance Issues with vlc and QImage painting inside QML

2012-07-16 Thread kai.koehne
> My first thought was, to subclass QThread as well and let the video > player run in an own thread, but you can't subclass QDeclarativeItem > and QThread in the same class. I can't comment on your original problem, but you don't have to (and don't need to) subclass QThread: Any suggestions?

[Interest] Performance Issues with vlc and QImage painting inside QML

2012-07-16 Thread Daniel Kreuter
Hi, I'm painting my videos in QImage with the vlc api. On modern hardware like notebooks or desktops everything's fine, but when I run the program on a slower hardware, the video's get really slow. Because I'm using QML my only choice so far is to subclass QDeclarativeItem and paint each Image of