3 <H2>Information from source codes</H2>
10 ../src/gifFileWrite.c:
32 typedef struct gifFileHeader {
40 #define scdGCTcres (0x70)
41 #define scdGCTsort (0x08)
42 #define scdGCTsize (0x07)
46 typedef struct gifFileScreenDesc {
47 unsigned short scwidth;
48 unsigned short scheight;
57 #define imdInterlace (0x40)
58 #define imdLCTsort (0x20)
59 #define imdRESV (0x18)
60 #define imdLCTsize (0x07)
64 typedef struct gifFileImageDesc {
68 unsigned short imwidth;
69 unsigned short imheight;
73 typedef struct gifFileColorTable {
79 typedef struct gifFileImageDefinition {
80 gifFileImageDesc Desc;
81 gifFileColorTable* LCT;
82 } gifFileImageDefinition;
84 typedef struct gifFileCtrlExtensions {
91 } gifFileCtrlExtensions;
93 typedef struct gifFileCommentExtensions {
96 } gifFileCommentExtensions;
98 typedef struct gifFileTextExtensions {
104 unsigned char txwidth;
105 unsigned char txheight;
106 unsigned char cewidth;
107 unsigned char ceheight;
109 unsigned short bgclr;
110 } gifFileTextExtensions;
112 typedef struct gifFileApplicationExtensions {
118 } gifFileApplicationExtensions;
121 typedef struct gifFile {
122 gifFileHeader Header;
123 gifFileScreenDesc ScrDesc;
124 gifFileColorTable* GCT;
126 gifFileImageDefinition* ImageDef;
133 #define OUT_OF_MEMORY -10
134 #define BAD_CODE_SIZE -20
135 #define READ_ERROR -1
136 #define WRITE_ERROR -2
137 #define OPEN_ERROR -3
138 #define CREATE_ERROR -4
143 #define IMPORT extern
145 #define FAST register
148 typedef unsigned short UWORD;
150 typedef unsigned char UTINY;
152 typedef unsigned long ULONG;
157 #include "mrcImage.h"
158 /* prototype begin */
159 extern int lmrc2gif(char* out, mrcImage* in, ColorMapObject* ColorMap, long mode);
160 extern int lmrc2gifColor(char* out, mrcImage* r, mrcImage* g, mrcImage* b, ColorMapObject* ColorMap, int n, int nr, int ng, int nb, long mode);
162 extern ColorMapObject* gifColorMapInit(int n, long mode);
163 extern ColorMapObject* gifColorMapGrey(ColorMapObject* ColorMap, int n);
164 extern ColorMapObject* gifColorMapColor(ColorMapObject* ColorMap, int n, int nr, int ng, int nb);
167 #endif /* GIF_FILE_H */