blob: b9e9bab8a6099c48ed92c905368727fe53add48f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
#include <time.h>
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) {
}
|