On Tue, Jun 25, 2002 at 02:06:00PM +0200, DI MASCIO ADRIEN wrote:
> Hi,
> 
> benchmark.cpp) but it always opens the video in a separate window. My 
> problem is that I would like to play the video in a QWidget of mine. I 
> tried to create the renderer specifying "myWidget->x11Display()" rather 
> than "XOpenDisplay(NULL)" but it still plays the video in an other window.

You will have to write your own renderer in this case.
But I'd like to warn you here - Qt seems to be very simple here -
Its designers decided that Qt shouldn't be used for movies 
(at least not on slower computers) and they support ONLY 32bits RGB
surfaces - so everything has to be converted into such huge bitmap -
which is moreover transfered several times inside nice C++ pipeline
via several constructors (at least this was my impression - if there are
some Qt experts let's feel free to correct me)

I guess the only way to solve this would be probably some tricky usage
of OpenGL for such widget - but if you want to get fluent efficient playback
Qt is definitely not your friend here...

> Is there a simple way (or at least, not too complicated) to do what I want ?

You could check avirecompress how to show image in Qt window
(samples/qtrecompress/qimagecontrol.cpp)

But as I've said - it's usable only for preview - unless you
have >1GHz box otherwise it will consume a lot of memory bandwidth
for larger movies...

-- 
  .''`.    Zdenek Kabelac  kabi@{debian.org, users.sf.net, fi.muni.cz}
 : :' :          Debian GNU/Linux maintainer - www.debian.{org,cz}
 `. `'  Modern processors are the most advanced heating systems around.
   `-                                     www.tomshardware.com

_______________________________________________
Avifile mailing list
[EMAIL PROTECTED]
http://prak.org/mailman/listinfo/avifile

Reply via email to