summaryrefslogtreecommitdiff
path: root/Movie.c
diff options
context:
space:
mode:
authorerdgeist <>2003-05-13 12:05:12 +0000
committererdgeist <>2003-05-13 12:05:12 +0000
commit866f0ad8030ea2ceea22a4d61e6ff0006546c3fa (patch)
tree54f3af1248bce246e1dd92b196b818271d21f2f6 /Movie.c
Here we go
Diffstat (limited to 'Movie.c')
-rwxr-xr-xMovie.c72
1 files changed, 72 insertions, 0 deletions
diff --git a/Movie.c b/Movie.c
new file mode 100755
index 0000000..b9e9bab
--- /dev/null
+++ b/Movie.c
@@ -0,0 +1,72 @@
1#include <time.h>
2
3struct Frame;
4struct Movie;
5
6typedef struct Frame Frame;
7typedef struct Movie Movie;
8
9struct Frame {
10 unsigned long *framedata;
11 Frame *next;
12};
13
14struct Movie {
15 Frame *Movie;
16 Movie *next;
17 int rate;
18 time_t starttime;
19};
20
21static Movie *movie_list;
22static Movie *current;
23
24void Movie_init( int points ) {
25 movie_list = (Movie*)0;
26 current = (Movie*)0;
27}
28
29void Movie_destroy( void ) {
30 Movie *tmp = movie_list;
31
32 current = (Movie*)0;
33 while( tmp ) {
34 Movie *next = tmp->next;
35 Movie_unloadmovie( tmp );
36 tmp = next;
37 }
38}
39
40Movie *Movie_loadmovie( char *filename ) {
41
42}
43
44void Movie_unloadmovie( Movie *movie ) {
45 Movie *tmp = movie_list;
46 if( current == movie )
47 current = (Movie*)0;
48
49 while( tmp && ( tmp != movie ))
50 tmp = tmp->next;
51
52 if( tmp) {
53
54 free( tmp );
55 }
56}
57
58void Movie_playmovie( Movie *movie, int rate ) {
59
60}
61
62void Movie_stamptime( void ) {
63
64}
65
66int Movie_checkframe( ) {
67 return 1;
68}
69
70unsigned long Movie_getpixelcolor( int x, int y, int z) {
71
72}