1 /* $XConsortium: GifUtilsI.h /main/3 1996/05/09 03:42:55 drk $ */
9 /* Enumerated values */
10 enum op_t { DO_COLOR, DO_GREY };
12 /* Type definitions */
13 typedef unsigned char byte;
14 typedef unsigned long pixel;
21 unsigned short red, green, blue;
34 unsigned int f_ncells;
35 unsigned int f_nplanes;
36 unsigned long f_black;
37 unsigned long f_white;
42 int f_color_map_constructed;
48 int f_init_total_greys;
49 Boolean f_allow_reduced_colors;
50 Boolean f_color_reduction_used;
51 GifColors GifCMap[64];
52 unsigned long GifGMap[32];
55 /* Function prototypes */
57 /* Initializes a gif object structure */
58 enum _DtGrLoadStatus InitGifObject(
67 enum _DtGrColorModel colorModel,
68 Boolean allowReducedColors
71 /* Deletes resources associated with a gif object structure */
72 void DeleteGifObjectResources(
76 /* Converts a gif buffer to an X pixmap */
88 /* Creates a raw PPM-style image from a GIF buffer */
89 pixel **create_raw_image(
97 /* Creates an X pixmap from a raw PPM-style image */
108 /* Frees raw image data */
113 /* Allocates X pixels needed for the color cube */
118 /* Allocates X pixels needed for greyscale rendering */
123 #endif /* _DtGifUtilsI_h */
124 /* DON'T ADD ANYTHING AFTER THIS #endif */