> |  * 'ordinary' fullscreen renderer and puts 0 into yuv_fmt.
> |  */
> | IVideoRenderer* CreateFullscreenRenderer(IPlayerWidget*, void* dpy,
> |                                         int width, int height, bool sub = false);
> 
> This function looks exactly like what I need to display an AVI file on a
> SDL surface. But how to use it? What do I have to put in the first
> parameter - the player should not react to any actions in my
> application's window. dpy is a SDL display (of type SDL_surface), isn't
> it? And how is the sound handled? Do I have to repeatedly call something

Player class is rather standalone thing and should be used very carefully
in non-avifile projects - the API for player is likely to go through
some changes as the extensions are being add and it's not always
possible to maintian backward compatibility.

What should be usable relatively stable is the parsers - I guess
it's now compatbible for nearly 2 years (though extensions are 
also being added here - but the API here is relatively stable).

> to display the video? Do I need to do the synchronization on my own or
> does it spawn a thread which plays the file?

If you would have build your own player - then yes - if you will
use AviPlayer class then you have very limited amount of work
as this class creates it's own set of threads - but you also
limitied control of what you can do with movie.

It might be eventually better to express your wishes and probabaly
add support for them directly to aviplayer class.

> Does anyone have a minimalistic example of an AVI player playing a file
> on an SDL surface?

avibech is rather minimalistit - but it doesn't use player class - 
only parser and renderer.

> And where's the avifile documentation? There must be more than what I
> find in avifile/doc. Even README_DEVEL is not really helpful.

Yep - main problem of one-man project show :)...


-- 
  .''`.    Zdenek Kabelac  kabi@{debian.org, users.sf.net, fi.muni.cz}
 : :' :          Debian GNU/Linux maintainer - www.debian.{org,cz}
 `. `'                          Overclocker's house :)
   `-              http://www.bbspot.com/News/2002/08/house.html        

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

Reply via email to