aboutsummaryrefslogtreecommitdiff
path: root/src/outgif.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/outgif.h')
-rw-r--r--src/outgif.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/src/outgif.h b/src/outgif.h
new file mode 100644
index 00000000..c904fa01
--- /dev/null
+++ b/src/outgif.h
@@ -0,0 +1,63 @@
1/* Copyrights 2002 Luis Figueiredo (stdio@netc.pt) All rights reserved.
2 *
3 * See the LICENSE file
4 *
5 * The origin of this software must not be misrepresented, either by
6 * explicit claim or by omission. Since few users ever read sources,
7 * credits must appear in the documentation.
8 *
9 * file: web_outgif.h
10 *
11 * description: output gif outgif.c is copyrighted by
12 */
13 /*****************************************************************
14 * Portions of this code Copyright (C) 1989 by Michael Mauldin.
15 * Permission is granted to use this file in whole or in
16 * part for any purpose, educational, recreational or commercial,
17 * provided that this copyright notice is retained unchanged.
18 * This software is available to all free of charge by anonymous
19 * FTP and in the UUNET archives.
20 *
21 *
22 * Authors: Michael Mauldin (mlm@cs.cmu.edu)
23 * David Rowley (mgardi@watdcsu.waterloo.edu)
24 *
25 * Based on: compress.c - File compression ala IEEE Computer, June 1984.
26 *
27 * Spencer W. Thomas (decvax!harpo!utah-cs!utah-gr!thomas)
28 * Jim McKie (decvax!mcvax!jim)
29 * Steve Davies (decvax!vax135!petsd!peora!srd)
30 * Ken Turkowski (decvax!decwrl!turtlevax!ken)
31 * James A. Woods (decvax!ihnp4!ames!jaw)
32 * Joe Orost (decvax!vax135!petsd!joe)
33 *****************************************************************/
34/*
35 *
36 * date: 20:57,13-57-2002
37 */
38
39#ifndef _WEB_OUTGIF_H_
40#define _WEB_OUTGIF_H_
41
42#include <stdio.h>
43#include <string.h>
44
45#include "debug.h"
46
47#undef PARM
48#ifdef __STDC__
49# define PARM(a) a
50#else
51# define PARM(a) ()
52# define const
53#endif
54
55/* MONO returns total intensity of r,g,b triple (i = .33R + .5G + .17B) */
56#define MONO(rd,gn,bl) ( ((int)(rd)*11 + (int)(gn)*16 + (int)(bl)*5) >> 5)
57
58typedef long int count_int;
59
60
61int __ILWS_WriteGIF(FILE *, unsigned char *, int, int, unsigned char *, unsigned char *, unsigned char *, int, int, int, char *);
62
63#endif