pike.git
/
src
/
modules
/
Image
/
togif.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/modules/Image/togif.c:1:
/* togif Pontus Hagland, law@infovav.se
-
$Id: togif.c,v 1.
14
1997/05/29
17
:
03
:
27
mirar Exp $
+
$Id: togif.c,v 1.
15
1997/05/29
19
:
38
:
18
mirar Exp $
*/ /* **! module Image
-
+
**! note
+
**! $Id: togif.c,v 1.15 1997/05/29 19:38:18 mirar Exp $<br>
**! class image */ #include "global.h" #include <math.h> #include <ctype.h> #include "stralloc.h" #include "global.h"
pike.git/src/modules/Image/togif.c:777:
**! returns the GIF data **! **! arg int num_colors **! number of colors to quantize to (default is 256) **! array array(array(int)) colors **! colors to map to (default is to quantize to 256), format is ({({r,g,b}),({r,g,b}),...}). **! arg int trans_r **! arg int trans_g **! arg int trans_b **! one color, that is to be transparent.
-
**! see also:
togif
_begin,
togif
_add,
togif
_end, toppm, fromgif
+
**! see also:
gif
_begin,
gif
_add,
gif
_end, toppm, fromgif
*/ static void img_encode_gif(rgb_group *transparent,int fs,INT32 args) { struct colortable *ct; struct svalue sv; /* on stack is now: - eventual colortable instruction (number or array) */