]> icculus.org git repositories - taylor/freespace2.git/blob - include/convert.h
proper padding of PXO stats struct for FS2 demo
[taylor/freespace2.git] / include / convert.h
1 /*
2  * Copyright (C) Volition, Inc. 1999.  All rights reserved.
3  *
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
6  * the source.
7  */
8
9 /*
10  * $Logfile: /Freespace2/code/AC/convert.h $
11  * $Revision$
12  * $Date$
13  * $Author$
14  *
15  * Header file for the conversion of standard animation files to our own ANIM format
16  *
17  * $Log$
18  * Revision 1.2  2002/06/09 04:41:12  relnev
19  * added copyright header
20  *
21  * Revision 1.1.1.1  2002/05/03 03:28:12  root
22  * Initial import.
23  *
24  * 
25  * 2     10/23/98 6:03p Dave
26  * 
27  * 1     10/23/98 5:34p Dave
28  * 
29  * 2     10/07/98 10:52a Dave
30  * Initial checkin.
31  * 
32  * 1     10/07/98 10:48a Dave
33  * 
34  * 7     6/24/98 10:43a Hoffoss
35  * Changed default to 15 FPS instead of 30 FPS.
36  * 
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.
40  * 
41  * 5     7/20/97 6:58p Lawrance
42  * supporting new RLE format
43  * 
44  * 4     5/21/97 11:06a Lawrance
45  * enabling a user-defined transparent value
46  * 
47  * 3     5/19/97 3:21p Lawrance
48  * add fps parm, version num to anim header
49  * 
50  * 2     2/19/97 9:26p Lawrance
51  * added force_key_frame global
52  * 
53  * 1     2/19/97 7:14p Lawrance
54  * 
55  * 5     2/17/97 3:02p Hoffoss
56  * Added headers to files, and implemented key frame dialog stuff.
57  * 
58  * 4     2/14/97 7:33p Lawrance
59  * added convert_avi_to_anim() function
60  * 
61  * 3     2/14/97 3:28p Hoffoss
62  * Wrote functions to save an anim file.
63  * 
64  * 2     2/13/97 5:55p Lawrance
65  * reading AVI / decompressing AVI functions in
66  *
67  * $NoKeywords: $
68  */
69
70 #include "pstypes.h"
71
72 #ifndef __CONVERT_H__
73 #define __CONVERT_H__
74
75 // !!IMPORTANT!!
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
79
80 #define ANIM_BUFFER_MAX 400000
81 #define ANIM_VERSION            2                               // update this when save format changes
82
83 #define ANIM_DEFAULT_FPS        15
84
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
88
89 int convert_avi_to_anim(char* filename);
90 int convert_frames_to_anim(char *filename);
91
92 typedef struct rgb_triple {
93         ubyte   r, g, b;
94 } rgb_triple;
95
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;
102
103
104 #endif /* __CONVERT_H__ */
105