-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMOVIE.H
77 lines (58 loc) · 1.68 KB
/
MOVIE.H
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
73
74
75
76
77
#ifndef _MOVIE_H_
#define _MOVIE_H_
#include "JM_VL.H"
//==========================================================================
//
// UNIT: MOVIE.H
//
//==========================================================================
typedef struct
{
unsigned code;
long block_num;
long recsize;
}anim_frame;
typedef struct
{
unsigned short opt;
unsigned short offset;
unsigned short length;
} anim_chunk;
//-------------------------------------------------------------------------
// MovieStuff Anim Stucture...
//
//
// fname -- File Name of the Anim to be played..
// rep -- Number of repetitions to play the anim
// ticdelay -- Tic wait between frames
// maxmembuffer -- Maximum ammount to use as a ram buffer
// start_line -- Starting line of screen to copy to other pages
// end_line -- Ending line " " " " " " " "
//
typedef struct
{
char FName[13];
char rep;
char ticdelay;
unsigned long MaxMemBuffer;
short start_line;
short end_line;
memptr palette;
} MovieStuff_t;
//=========================================================================
//
// EXTERNS
//
//=========================================================================
extern memptr displaybuffer;
extern MovieStuff_t Movies[];
//===========================================================================
//
// Prototypes
//
//===========================================================================
void MOVIE_ShowFrame (char huge *inpic);
boolean MOVIE_Play(MovieStuff_t *MovieStuff);
void SetupMovie(MovieStuff_t *MovieStuff);
void ShutdownMovie(void);
#endif