1 
2 /*
3  * xanim_gif.h
4  *
5  * Copyright (C) 1990,1991,1992 by Mark Podlipec.
6  * All rights reserved.
7  *
8  * This software may be freely copied, modified and redistributed
9  * without fee provided that this copyright notice is preserved
10  * intact on all copies and modified copies.
11  *
12  * There is no warranty or other guarantee of fitness of this software.
13  * It is provided solely "as is". The author(s) disclaim(s) all
14  * responsibility and liability with respect to this software's usage
15  * or its effect upon hardware or computer systems.
16  *
17  */
18 
19 #include <stdio.h>
20 
21 #define LONG int
22 #define ULONG unsigned int
23 #define BYTE char
24 #define UBYTE unsigned char
25 #define SHORT short
26 #define USHORT unsigned short
27 #define WORD short int
28 #define UWORD unsigned short int
29 
30 #define TRUE 1
31 #define FALSE 0
32 
33 typedef struct
34 {
35  int width;
36  int height;
37  UBYTE m;
38  UBYTE cres;
39  UBYTE pixbits;
40  UBYTE bc;
41 } GIF_Screen_Hdr;
42 
43 typedef union
44 {
45  struct
46  {
47   UBYTE red;
48   UBYTE green;
49   UBYTE blue;
50   UBYTE pad;
51  } cmap;
52  ULONG pixel;
53 } GIF_Color;
54 
55 typedef struct
56 {
57  int left;
58  int top;
59  int width;
60  int height;
61  UBYTE m;
62  UBYTE i;
63  UBYTE pixbits;
64  UBYTE reserved;
65 } GIF_Image_Hdr;
66 
67 typedef struct
68 {
69  UBYTE valid;
70  UBYTE data;
71  UBYTE first;
72  UBYTE res;
73  int last;
74 } GIF_Table;
75 
76