2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: GifUtilsI.h /main/3 1996/05/09 03:42:55 drk $ */
24 #ifndef _DtGifUtilsI_h
25 #define _DtGifUtilsI_h
29 #include "GraphicsP.h"
31 /* Enumerated values */
32 enum op_t { DO_COLOR, DO_GREY };
34 /* Type definitions */
35 typedef unsigned char byte;
36 typedef unsigned long pixel;
43 unsigned short red, green, blue;
56 unsigned int f_ncells;
57 unsigned int f_nplanes;
58 unsigned long f_black;
59 unsigned long f_white;
64 int f_color_map_constructed;
70 int f_init_total_greys;
71 Boolean f_allow_reduced_colors;
72 Boolean f_color_reduction_used;
73 GifColors GifCMap[64];
74 unsigned long GifGMap[32];
77 /* Function prototypes */
79 /* Initializes a gif object structure */
80 enum _DtGrLoadStatus InitGifObject(
89 enum _DtGrColorModel colorModel,
90 Boolean allowReducedColors
93 /* Deletes resources associated with a gif object structure */
94 void DeleteGifObjectResources(
98 /* Converts a gif buffer to an X pixmap */
110 /* Creates a raw PPM-style image from a GIF buffer */
111 pixel **create_raw_image(
119 /* Creates an X pixmap from a raw PPM-style image */
120 Pixmap create_pixmap(
130 /* Frees raw image data */
135 /* Allocates X pixels needed for the color cube */
140 /* Allocates X pixels needed for greyscale rendering */
145 #endif /* _DtGifUtilsI_h */
146 /* DON'T ADD ANYTHING AFTER THIS #endif */