From 866f0ad8030ea2ceea22a4d61e6ff0006546c3fa Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 13 May 2003 12:05:12 +0000 Subject: Here we go --- Movie.c | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100755 Movie.c (limited to 'Movie.c') diff --git a/Movie.c b/Movie.c new file mode 100755 index 0000000..b9e9bab --- /dev/null +++ b/Movie.c @@ -0,0 +1,72 @@ +#include + +struct Frame; +struct Movie; + +typedef struct Frame Frame; +typedef struct Movie Movie; + +struct Frame { + unsigned long *framedata; + Frame *next; +}; + +struct Movie { + Frame *Movie; + Movie *next; + int rate; + time_t starttime; +}; + +static Movie *movie_list; +static Movie *current; + +void Movie_init( int points ) { + movie_list = (Movie*)0; + current = (Movie*)0; +} + +void Movie_destroy( void ) { + Movie *tmp = movie_list; + + current = (Movie*)0; + while( tmp ) { + Movie *next = tmp->next; + Movie_unloadmovie( tmp ); + tmp = next; + } +} + +Movie *Movie_loadmovie( char *filename ) { + +} + +void Movie_unloadmovie( Movie *movie ) { + Movie *tmp = movie_list; + if( current == movie ) + current = (Movie*)0; + + while( tmp && ( tmp != movie )) + tmp = tmp->next; + + if( tmp) { + + free( tmp ); + } +} + +void Movie_playmovie( Movie *movie, int rate ) { + +} + +void Movie_stamptime( void ) { + +} + +int Movie_checkframe( ) { + return 1; +} + +unsigned long Movie_getpixelcolor( int x, int y, int z) { + +} -- cgit v1.2.3