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
-
$Id: togif.c,v 1.
25
1997/11/
08
02
:
52
:
53
grubba Exp $
+
$Id: togif.c,v 1.
26
1997/11/
11
03
:
46
:
08
grubba Exp $
old GIF API compat stuff */ /* **! module Image **! note
-
**! $Id: togif.c,v 1.
25
1997/11/
08
02
:
52
:
53
grubba Exp $
+
**! $Id: togif.c,v 1.
26
1997/11/
11
03
:
46
:
08
grubba Exp $
**! class image */ #include "global.h" #include <math.h> #include <ctype.h> #include "stralloc.h" #include "global.h"
pike.git/src/modules/Image/togif.c:28:
#include "constants.h" #include "interpret.h" #include "svalue.h" #include "array.h" #include "error.h" #include "dynamic_buffer.h" #include "operators.h" #include "image.h" #include "colortable.h"
+
#include "encodings/gif.h"
#define THIS ((struct image *)(fp->current_storage)) #define THISOBJ (fp->current_object) extern struct program *image_colortable_program; /* **! method string gif_begin() **! method string gif_begin(int num_colors) **! method string gif_begin(array(array(int)) colors)
pike.git/src/modules/Image/togif.c:180:
if (!ncto) { THISOBJ->refs++; push_object(THISOBJ); push_int(255); ncto=clone_object(image_colortable_program,2); } if (fs) image_colortable_internal_floyd_steinberg(
-
get_storage(ncto,image_colortable_program));
+
(struct
neo_colortable
*)
get_storage(ncto,image_colortable_program));
pop_n_elems(args); THISOBJ->refs++; push_object(THISOBJ); push_object(ncto); push_int(x); push_int(y); push_int(lm); push_int(delay); if (transparent) { unsigned char trd;
-
image_colortable_index_8bit_image(get_storage(ncto,
+
image_colortable_index_8bit_image(
(struct neo_colortable *)
+
get_storage(ncto,
image_colortable_program), transparent,&trd,1,1); push_int(trd); image_gif_render_block(7); } else image_gif_render_block(6); }