]> icculus.org git repositories - taylor/freespace2.git/blob - include/convert.h
Initial revision
[taylor/freespace2.git] / include / convert.h
1 /*
2  * $Logfile: /Freespace2/code/AC/convert.h $
3  * $Revision$
4  * $Date$
5  * $Author$
6  *
7  * Header file for the conversion of standard animation files to our own ANIM format
8  *
9  * $Log$
10  * Revision 1.1  2002/05/03 03:28:12  root
11  * Initial revision
12  *
13  * 
14  * 2     10/23/98 6:03p Dave
15  * 
16  * 1     10/23/98 5:34p Dave
17  * 
18  * 2     10/07/98 10:52a Dave
19  * Initial checkin.
20  * 
21  * 1     10/07/98 10:48a Dave
22  * 
23  * 7     6/24/98 10:43a Hoffoss
24  * Changed default to 15 FPS instead of 30 FPS.
25  * 
26  * 6     4/10/98 5:20p John
27  * Changed RGB in lighting structure to be ubytes.  Removed old
28  * not-necessary 24 bpp software stuff.
29  * 
30  * 5     7/20/97 6:58p Lawrance
31  * supporting new RLE format
32  * 
33  * 4     5/21/97 11:06a Lawrance
34  * enabling a user-defined transparent value
35  * 
36  * 3     5/19/97 3:21p Lawrance
37  * add fps parm, version num to anim header
38  * 
39  * 2     2/19/97 9:26p Lawrance
40  * added force_key_frame global
41  * 
42  * 1     2/19/97 7:14p Lawrance
43  * 
44  * 5     2/17/97 3:02p Hoffoss
45  * Added headers to files, and implemented key frame dialog stuff.
46  * 
47  * 4     2/14/97 7:33p Lawrance
48  * added convert_avi_to_anim() function
49  * 
50  * 3     2/14/97 3:28p Hoffoss
51  * Wrote functions to save an anim file.
52  * 
53  * 2     2/13/97 5:55p Lawrance
54  * reading AVI / decompressing AVI functions in
55  *
56  * $NoKeywords: $
57  */
58
59 #include "pstypes.h"
60
61 #ifndef __CONVERT_H__
62 #define __CONVERT_H__
63
64 // !!IMPORTANT!!
65 // ANIM_HEADER_SIZE is the size (in bytes) of the header.  If the header format changes, you
66 // must update this number.
67 #define ANIM_HEADER_SIZE        790
68
69 #define ANIM_BUFFER_MAX 400000
70 #define ANIM_VERSION            2                               // update this when save format changes
71
72 #define ANIM_DEFAULT_FPS        15
73
74 // specify the different types of compression that can be used (Compression_type is assigned one of these values)
75 #define CUSTOM_DELTA_RLE        0
76 #define STD_DELTA_RLE           1
77
78 int convert_avi_to_anim(char* filename);
79 int convert_frames_to_anim(char *filename);
80
81 typedef struct rgb_triple {
82         ubyte   r, g, b;
83 } rgb_triple;
84
85 extern int                      key_frame_rate;
86 extern int                      force_key_frame;
87 extern int                      Default_fps;
88 extern rgb_triple       Xparent_color;
89 extern int                      Use_custom_xparent_color;
90 extern int                      Compression_type;
91
92
93 #endif /* __CONVERT_H__ */
94