2 * Copyright (C) Volition, Inc. 1999. All rights reserved.
4 * All source code herein is the property of Volition, Inc. You may not sell
5 * or otherwise commercially exploit the source or things you created based on
10 * $Logfile: /Freespace2/code/AC/convert.h $
15 * Header file for the conversion of standard animation files to our own ANIM format
18 * Revision 1.2 2002/06/09 04:41:12 relnev
19 * added copyright header
21 * Revision 1.1.1.1 2002/05/03 03:28:12 root
25 * 2 10/23/98 6:03p Dave
27 * 1 10/23/98 5:34p Dave
29 * 2 10/07/98 10:52a Dave
32 * 1 10/07/98 10:48a Dave
34 * 7 6/24/98 10:43a Hoffoss
35 * Changed default to 15 FPS instead of 30 FPS.
37 * 6 4/10/98 5:20p John
38 * Changed RGB in lighting structure to be ubytes. Removed old
39 * not-necessary 24 bpp software stuff.
41 * 5 7/20/97 6:58p Lawrance
42 * supporting new RLE format
44 * 4 5/21/97 11:06a Lawrance
45 * enabling a user-defined transparent value
47 * 3 5/19/97 3:21p Lawrance
48 * add fps parm, version num to anim header
50 * 2 2/19/97 9:26p Lawrance
51 * added force_key_frame global
53 * 1 2/19/97 7:14p Lawrance
55 * 5 2/17/97 3:02p Hoffoss
56 * Added headers to files, and implemented key frame dialog stuff.
58 * 4 2/14/97 7:33p Lawrance
59 * added convert_avi_to_anim() function
61 * 3 2/14/97 3:28p Hoffoss
62 * Wrote functions to save an anim file.
64 * 2 2/13/97 5:55p Lawrance
65 * reading AVI / decompressing AVI functions in
76 // ANIM_HEADER_SIZE is the size (in bytes) of the header. If the header format changes, you
77 // must update this number.
78 #define ANIM_HEADER_SIZE 790
80 #define ANIM_BUFFER_MAX 400000
81 #define ANIM_VERSION 2 // update this when save format changes
83 #define ANIM_DEFAULT_FPS 15
85 // specify the different types of compression that can be used (Compression_type is assigned one of these values)
86 #define CUSTOM_DELTA_RLE 0
87 #define STD_DELTA_RLE 1
89 int convert_avi_to_anim(char* filename);
90 int convert_frames_to_anim(char *filename);
92 typedef struct rgb_triple {
96 extern int key_frame_rate;
97 extern int force_key_frame;
98 extern int Default_fps;
99 extern rgb_triple Xparent_color;
100 extern int Use_custom_xparent_color;
101 extern int Compression_type;
104 #endif /* __CONVERT_H__ */