Main Page   Modules   Data Structures   Data Fields   Related Pages  

MJpgAlleg - AVI movie

This file is to help load and play .avi files. More...

Functions

int play_movie_avi (BITMAP *bmp, int(*callback)())
 Play a movie from an avi file.

int open_movie_avi (AL_CONST char *file)
 Function to open an avi.

void close_movie_avi (void)
 Close the avi file and free the memory.

int update_movie_frame_avi (void)
 Jump to current frame in the avi file.


Detailed Description

This file is to help load and play .avi files.

Author:
Eduardo "Dudaskank"
Date:

Function Documentation

void close_movie_avi void   
 

Close the avi file and free the memory.

After close_movie() determines the type of the movie is a avi file, this function is called.

It will call avi_destroy() to destroy the datafile, and free the memory allocated to XviD interface.

Returns:
Nothing
See also:
close_movie(), close_movie_dat(), dec_stop_xvid()
Author:
Eduardo "Dudaskank"
Date:
  • Created : 30/09/2002
  • Updated : 08/03/2003

int open_movie_avi AL_CONST char *    file
 

Function to open an avi.

If the extension of file is .avi, this function is called.

It will open the avi file, and check if the video codec are supported. If supported, add the codec to the subtype of the movie.

It supports video encoded with XviD/DivX.

Returns:
1 on error, 0 ok
See also:
open_movie(), open_movie_dat()
Author:
Eduardo "Dudaskank"
Date:
  • Created : 30/09/2002
  • Updated : 04/04/2003

int play_movie_avi BITMAP *    bmp,
int(*    callback)()
 

Play a movie from an avi file.

This function is like play_fli(). The movie has been previously opened with open_movie(), and this function is called if the movie is in an avi file.

The bmp is the destination bitmap, and callback, if not NULL, will be called every time during the execution of the movie.

If callback returns non zero, the movie stops.

Returns:
1 on error, 0 ok
See also:
play_movie(), play_movie_dat()
Author:
Eduardo "Dudaskank"
Date:
  • Created : 01/10/2002
  • Updated : 04/04/2003

int update_movie_frame_avi void   
 

Jump to current frame in the avi file.

Call this for change to actual movie frame, if the movie is in a avi file.

Returns:
0 if ok, non zero if end of movie
See also:
update_movie_frame_dat()
Author:
Eduardo "Dudaskank"
Date:
  • Created : 30/09/2002
  • Updated : -


Generated on Mon Apr 7 00:19:25 2003 for MJpgAlleg by doxygen1.2.18