On Sun, Jul 28, 2002 at 11:06:33AM +0200, Christoph Hinterm�ller wrote:
> Hi
> I've two questions about avifile library.
> I want to extend my offscreenrender module, i've written for a program, so
> that it is capable of directly writing encoded AVI and MPEG.
> How to code it i think i've got from the avimake sample.
> But if i transpose this sampe to my needs, does addFrame member from the
> outputstream class return immediately when passing the frame or does it wait
> until the Frame is encoded (is encoding multithreaded like the player or
> not??)
no encoding is not multithreaded - it would be somawhat more complicated
as you need previous images so using multiple threads makes this process
somewhat harder - so AddFrame will wait till image is encoded
and stored in the file buffer.
> Second assuming multithreading, is it possible to detect during encoding
> whether a frame was dropped in order to reduce (GL rendering) framerate
> dynamically or at least place a info message on a message display??
dropped frames usually means the encoded lenght is 0 - so
in that case you don't have to refresh image - and as I said there
is no multithreading in the encoding.
--
.''`. 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