1 John Ellson (ellson@graphviz.org) Oct 31, 1997
3 ==============================================================================
5 /********************************************/
6 /* gd interface to freetype library */
8 /* John Ellson ellson@graphviz.org */
9 /********************************************/
11 ==============================================================================
14 This is a header file for gd font, generated using
15 bdftogd version 0.51 by Jan Pazdziora, adelton@fi.muni.cz
17 -Misc-Fixed-Bold-R-Normal-Sans-15-140-75-75-C-90-ISO8859-2
18 at Mon Jan 26 14:45:58 1998.
19 The original bdf was holding following copyright:
20 "Libor Skarvada, libor@informatics.muni.cz"
23 ==============================================================================
26 * gd_jpeg.c: Read and write JPEG (JFIF) format image files using the
27 * gd graphics library (http://www.libgd.org).
29 * This software is based in part on the work of the Independent JPEG
30 * Group. For more information on the IJG JPEG software (and JPEG
31 * documentation, etc.), see ftp://ftp.uu.net/graphics/jpeg/.
33 * NOTE: IJG 12-bit JSAMPLE (BITS_IN_JSAMPLE == 12) mode is not
34 * supported at all on read in gd 2.0, and is not supported on write
35 * except for palette images, which is sort of pointless (TBB). Even that
36 * has never been tested according to DB.
38 * Copyright 2000 Doug Becker, mailto:thebeckers@home.com
40 * Modification 4/18/00 TBB: JPEG_DEBUG rather than just DEBUG,
41 * so VC++ builds don't spew to standard output, causing
42 * major CGI brain damage
44 * 2.0.10: more efficient gdImageCreateFromJpegCtx, thanks to
47 ==============================================================================
49 /*---------------------------------------------------------------------------
50 gd_png.c Copyright 1999 Greg Roelofs and Thomas Boutell
51 ---------------------------------------------------------------------------*/
53 ==============================================================================
55 /* Code drawn from ppmtogif.c, from the pbmplus package
57 ** Based on GIFENCOD by David Rowley <mgardi@watdscu.waterloo.edu>. A
58 ** Lempel-Zim compression based on "compress".
60 ** Modified by Marcel Wijkstra <wijkstra@fwi.uva.nl>
62 ** Copyright (C) 1989 by Jef Poskanzer.
64 ** Permission to use, copy, modify, and distribute this software and its
65 ** documentation for any purpose and without fee is hereby granted, provided
66 ** that the above copyright notice appear in all copies and that both that
67 ** copyright notice and this permission notice appear in supporting
68 ** documentation. This software is provided "as is" without express or
71 ** The Graphics Interchange Format(c) is the Copyright property of
72 ** CompuServe Incorporated. GIF(sm) is a Service Mark property of
73 ** CompuServe Incorporated.
76 ==============================================================================
81 * Implements the simple I/O 'helper' routines.
83 * Not really essential, but these routines were used extensively in GD,
84 * so they were moved here. They also make IOCtx calls look better...
86 * Written (or, at least, moved) 1999, Philip Warner.
90 ==============================================================================
96 * Implements buffer overflow check routines.
98 * Written 2004, Phil Knirsch.
99 * Based on netpbm fixes by Alan Cox.
103 ==============================================================================
106 WBMP: Wireless Bitmap Type 0: B/W, Uncompressed Bitmap
107 Specification of the WBMP format can be found in the file:
108 SPEC-WAESpec-19990524.pdf
109 You can download the WAP specification on: http://www.wapforum.com/
113 Copyright (C) Johan Van den Brande (johan@vandenbrande.com)
115 Fixed: gdImageWBMPPtr, gdImageWBMP
117 Recoded: gdImageWBMPCtx for use with my wbmp library
118 (wbmp library included, but you can find the latest distribution
119 at http://www.vandenbrande.com/wbmp)
121 Implemented: gdImageCreateFromWBMPCtx, gdImageCreateFromWBMP
123 ---------------------------------------------------------------------------
125 Parts of this code are from Maurice Smurlo.
128 ** Copyright (C) Maurice Szmurlo --- T-SIT --- January 2000
129 ** (Maurice.Szmurlo@info.unicaen.fr)
131 ** Permission to use, copy, modify, and distribute this software and its
132 ** documentation for any purpose and without fee is hereby granted, provided
133 ** that the above copyright notice appear in all copies and that both that
134 ** copyright notice and this permission notice appear in supporting
135 ** documentation. This software is provided "as is" without express or
138 ---------------------------------------------------------------------------
139 Parts od this code are inspired by 'pbmtowbmp.c' and 'wbmptopbm.c' by
140 Terje Sannum <terje@looplab.com>.
142 ** Permission to use, copy, modify, and distribute this software and its
143 ** documentation for any purpose and without fee is hereby granted, provided
144 ** that the above copyright notice appear in all copies and that both that
145 ** copyright notice and this permission notice appear in supporting
146 ** documentation. This software is provided "as is" without express or
149 -------------------------------------------------------------------------- */
151 ==============================================================================
154 * gd_topal, adapted from jquant2.c
156 * Copyright (C) 1991-1996, Thomas G. Lane.
157 * This file is part of the Independent JPEG Group's software.
158 * For conditions of distribution and use, see the accompanying README file.
160 * This file contains 2-pass color quantization (color mapping) routines.
161 * These routines provide selection of a custom color map for an image,
162 * followed by mapping of the image to that color map, with optional
163 * Floyd-Steinberg dithering.
164 * It is also possible to use just the second pass to map to an arbitrary
165 * externally-given color map.
167 * Note: ordered dithering is not supported, since there isn't any fast
168 * way to compute intercolor distances; it's unclear that ordered dither's
169 * fundamental assumptions even hold with an irregularly spaced color map.
172 ==============================================================================