Main Page   Modules   Data Structures   Data Fields   Related Pages  

MJpgAlleg - DAT movie

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

Functions

int play_movie_dat (BITMAP *bmp, int(*callback)())
 Play a movie from a datafile.

int open_movie_dat (AL_CONST char *file)
 Function to open a datafile.

void close_movie_dat (void)
 Close the datafile and free the memory.

int update_movie_frame_dat (void)
 Jump to current frame in a datafile.


Detailed Description

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

Author:
Eduardo "Dudaskank"
Date:

Function Documentation

void close_movie_dat void   
 

Close the datafile and free the memory.

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

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

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

int open_movie_dat AL_CONST char *    file
 

Function to open a datafile.

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

It will open the datafile, search for the subtype of the movie (jpg or m4v), search the sample and search for a object of type 'INFO', with information about dimensions of frame, fps, description, etc.

Because version 1.0 don't have the width and the height of the frames, if these variables aren't presents, the function tries to determine the dimensions of the frame using load_memory_jpeg().

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

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

Play a movie from a datafile.

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 a datafile.

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_avi()
Author:
Eduardo "Dudaskank"
Date:
  • Created : 01/10/2002
  • Updated : 04/04/2003

int update_movie_frame_dat void   
 

Jump to current frame in a datafile.

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

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


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