2 * $Logfile: /Freespace2/code/AC/convert.h $
7 * Header file for the conversion of standard animation files to our own ANIM format
10 * Revision 1.1 2002/05/03 03:28:12 root
14 * 2 10/23/98 6:03p Dave
16 * 1 10/23/98 5:34p Dave
18 * 2 10/07/98 10:52a Dave
21 * 1 10/07/98 10:48a Dave
23 * 7 6/24/98 10:43a Hoffoss
24 * Changed default to 15 FPS instead of 30 FPS.
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.
30 * 5 7/20/97 6:58p Lawrance
31 * supporting new RLE format
33 * 4 5/21/97 11:06a Lawrance
34 * enabling a user-defined transparent value
36 * 3 5/19/97 3:21p Lawrance
37 * add fps parm, version num to anim header
39 * 2 2/19/97 9:26p Lawrance
40 * added force_key_frame global
42 * 1 2/19/97 7:14p Lawrance
44 * 5 2/17/97 3:02p Hoffoss
45 * Added headers to files, and implemented key frame dialog stuff.
47 * 4 2/14/97 7:33p Lawrance
48 * added convert_avi_to_anim() function
50 * 3 2/14/97 3:28p Hoffoss
51 * Wrote functions to save an anim file.
53 * 2 2/13/97 5:55p Lawrance
54 * reading AVI / decompressing AVI functions in
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
69 #define ANIM_BUFFER_MAX 400000
70 #define ANIM_VERSION 2 // update this when save format changes
72 #define ANIM_DEFAULT_FPS 15
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
78 int convert_avi_to_anim(char* filename);
79 int convert_frames_to_anim(char *filename);
81 typedef struct rgb_triple {
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;
93 #endif /* __CONVERT_H__ */