Select Git revision
-
Henrik (Grubba) Grubbström authored
Rev: src/acconfig.h:1.19 Rev: src/alloca.c:1.2 Rev: src/array.c:1.31 Rev: src/array.h:1.12 Rev: src/backend.h:1.6 Rev: src/build_modlist_h:1.2 Rev: src/builtin_functions.h:1.7 Rev: src/callback.c:1.14 Rev: src/callback.h:1.7 Rev: src/compilation.h:1.8 Rev: src/constants.c:1.13 Rev: src/constants.h:1.6 Rev: src/cpp.c:1.21 Rev: src/cpp.h:1.4 Rev: src/crypt.c:1.2 Rev: src/cyclic.c:1.3 Rev: src/cyclic.h:1.3 Rev: src/dmalloc.h:1.5 Rev: src/docode.h:1.5 Rev: src/dynamic_buffer.c:1.8 Rev: src/dynamic_buffer.h:1.6 Rev: src/dynamic_load.c:1.25 Rev: src/dynamic_load.h:1.3 Rev: src/efun.h:1.3 Rev: src/encode.c:1.18 Rev: src/encode.h:1.2 Rev: src/error.c:1.14 Rev: src/error.h:1.14 Rev: src/fd_control.c:1.17 Rev: src/fd_control.h:1.3 Rev: src/fdlib.c:1.16 Rev: src/fdlib.h:1.13 Rev: src/fsort.c:1.9 Rev: src/fsort.h:1.2 Rev: src/fsort_template.h:1.3 Rev: src/gc.c:1.30 Rev: src/gc.h:1.16 Rev: src/global.h:1.20 Rev: src/hashtable.c:1.4 Rev: src/hashtable.h:1.5 Rev: src/install-sh:1.4 Rev: src/interpret.h:1.20 Rev: src/las.h:1.13 Rev: src/lex.h:1.10 Rev: src/main.h:1.7 Rev: src/mapping.h:1.10 Rev: src/module.c:1.8 Rev: src/module.h:1.4 Rev: src/module_support.c:1.9 Rev: src/module_support.h:1.6 Rev: src/modules/Gdbm/Makefile.in:1.3 Rev: src/modules/Gdbm/configure.in:1.2 Rev: src/modules/Gdbm/testsuite.in:1.4 Rev: src/modules/Gmp/Makefile.in:1.8 Rev: src/modules/Gmp/configure.in:1.2 Rev: src/modules/Gmp/gmp_machine.h.in:1.2 Rev: src/modules/Gmp/my_gmp.h:1.3 Rev: src/modules/Gmp/next_prime.c:1.6 Rev: src/modules/Gmp/prime_table.c:1.3 Rev: src/modules/Gmp/testsuite.in:1.12 Rev: src/modules/Gz/Makefile.in:1.3 Rev: src/modules/Gz/configure.in:1.10 Rev: src/modules/Gz/testsuite.in:1.4 Rev: src/modules/Image/Makefile:1.8 Rev: src/modules/Image/Makefile.in:1.14 Rev: src/modules/Image/configure.in:1.8 Rev: src/modules/Image/encodings/Makefile.in:1.14 Rev: src/modules/Image/encodings/configure.in:1.4 Rev: src/modules/Image/testsuite.in:1.5 Rev: src/modules/MIME/Makefile.in:1.2 Rev: src/modules/MIME/acconfig.h:1.2 Rev: src/modules/MIME/configure.in:1.3 Rev: src/modules/MIME/testsuite.in:1.5 Rev: src/modules/Msql/Makefile.in:1.3 Rev: src/modules/Msql/test_msqlmod.pike:1.2 Rev: src/modules/Mysql/dummy.c:1.4 Rev: src/modules/Pipe/Makefile.in:1.3 Rev: src/modules/Pipe/configure.in:1.4 Rev: src/modules/Postgres/extras/test_notify.pike:1.2 Rev: src/modules/Postgres/extras/test_schema.pike:1.2 Rev: src/modules/Postgres/pg_types.h:1.3 Rev: src/modules/Postgres/pgresult.c:1.5 Rev: src/modules/Postgres/pgresult.h:1.2 Rev: src/modules/Regexp/Makefile.in:1.5 Rev: src/modules/Regexp/configure.in:1.5 Rev: src/modules/Regexp/glue.c:1.10 Rev: src/modules/Regexp/pike_regexp.c:1.12 Rev: src/modules/Regexp/pike_regexp.h:1.3 Rev: src/modules/Regexp/testsuite.in:1.3 Rev: src/modules/Ssleay/Makefile.in:1.3 Rev: src/modules/Ssleay/acconfig.h:1.2 Rev: src/modules/Ssleay/configure.in:1.4 Rev: src/modules/Yp/Makefile.in:1.3 Rev: src/modules/Yp/configure.in:1.5 Rev: src/modules/Yp/yp.c:1.12 Rev: src/modules/_Crypto/.build_lobotomized_crypto:1.6 Rev: src/modules/_Crypto/.exportable_files:1.3 Rev: src/modules/_Crypto/Makefile.in:1.16 Rev: src/modules/_Crypto/configure.in:1.5 Rev: src/modules/_Crypto/include/.exportable_files:1.2 Rev: src/modules/_Crypto/include/RCSID.h:1.6 Rev: src/modules/_Crypto/include/cast.h:1.2 Rev: src/modules/_Crypto/include/crypto_types.h:1.5 Rev: src/modules/_Crypto/include/idea.h:1.4 Rev: src/modules/_Crypto/include/md5.h:1.2 Rev: src/modules/_Crypto/include/rc4.h:1.3 Rev: src/modules/_Crypto/include/sha.h:1.4 Rev: src/modules/_Crypto/lib/.exportable_files:1.2 Rev: src/modules/_Crypto/lib/cast.c:1.2 Rev: src/modules/_Crypto/lib/cast_sboxes.h:1.2 Rev: src/modules/_Crypto/precompiled_crypto.h:1.17 Rev: src/modules/_Crypto/sha.c:1.10 Rev: src/modules/_Image_PNG/Makefile.in:1.2 Rev: src/modules/_Image_PNG/configure.in:1.2 Rev: src/modules/_Image_PNG/testsuite.in:1.3 Rev: src/modules/_Image_XFace/Makefile.in:1.2 Rev: src/modules/_Image_XFace/configure.in:1.2 Rev: src/modules/_Image_XFace/testsuite.in:1.2 Rev: src/modules/configure.in:1.5 Rev: src/modules/module_configure.in:1.5 Rev: src/modules/module_makefile:1.3 Rev: src/multiset.c:1.10 Rev: src/multiset.h:1.7 Rev: src/object.h:1.17 Rev: src/opcodes.c:1.16 Rev: src/opcodes.h:1.4 Rev: src/operators.h:1.4 Rev: src/otable.h:1.2 Rev: src/peep.c:1.19 Rev: src/peep.h:1.4 Rev: src/peep.in:1.12 Rev: src/pike_macros.h:1.6 Rev: src/pike_memory.c:1.18 Rev: src/pike_memory.h:1.4 Rev: src/pike_types.h:1.11 Rev: src/port.c:1.15 Rev: src/port.h:1.18 Rev: src/program.h:1.35 Rev: src/run_autoconfig:1.21 Rev: src/rusage.c:1.10 Rev: src/rusage.h:1.3 Rev: src/signal_handler.c:1.41 Rev: src/signal_handler.h:1.6 Rev: src/stralloc.c:1.30 Rev: src/stralloc.h:1.15 Rev: src/stuff.c:1.6 Rev: src/stuff.h:1.5 Rev: src/svalue.c:1.21 Rev: src/svalue.h:1.14 Rev: src/threads.h:1.40 Rev: src/time_stuff.h:1.8 Rev: src/ualarm.c:1.2 Rev: src/version.c:1.34 Rev: src/version.h:1.3
Henrik (Grubba) Grubbström authoredRev: src/acconfig.h:1.19 Rev: src/alloca.c:1.2 Rev: src/array.c:1.31 Rev: src/array.h:1.12 Rev: src/backend.h:1.6 Rev: src/build_modlist_h:1.2 Rev: src/builtin_functions.h:1.7 Rev: src/callback.c:1.14 Rev: src/callback.h:1.7 Rev: src/compilation.h:1.8 Rev: src/constants.c:1.13 Rev: src/constants.h:1.6 Rev: src/cpp.c:1.21 Rev: src/cpp.h:1.4 Rev: src/crypt.c:1.2 Rev: src/cyclic.c:1.3 Rev: src/cyclic.h:1.3 Rev: src/dmalloc.h:1.5 Rev: src/docode.h:1.5 Rev: src/dynamic_buffer.c:1.8 Rev: src/dynamic_buffer.h:1.6 Rev: src/dynamic_load.c:1.25 Rev: src/dynamic_load.h:1.3 Rev: src/efun.h:1.3 Rev: src/encode.c:1.18 Rev: src/encode.h:1.2 Rev: src/error.c:1.14 Rev: src/error.h:1.14 Rev: src/fd_control.c:1.17 Rev: src/fd_control.h:1.3 Rev: src/fdlib.c:1.16 Rev: src/fdlib.h:1.13 Rev: src/fsort.c:1.9 Rev: src/fsort.h:1.2 Rev: src/fsort_template.h:1.3 Rev: src/gc.c:1.30 Rev: src/gc.h:1.16 Rev: src/global.h:1.20 Rev: src/hashtable.c:1.4 Rev: src/hashtable.h:1.5 Rev: src/install-sh:1.4 Rev: src/interpret.h:1.20 Rev: src/las.h:1.13 Rev: src/lex.h:1.10 Rev: src/main.h:1.7 Rev: src/mapping.h:1.10 Rev: src/module.c:1.8 Rev: src/module.h:1.4 Rev: src/module_support.c:1.9 Rev: src/module_support.h:1.6 Rev: src/modules/Gdbm/Makefile.in:1.3 Rev: src/modules/Gdbm/configure.in:1.2 Rev: src/modules/Gdbm/testsuite.in:1.4 Rev: src/modules/Gmp/Makefile.in:1.8 Rev: src/modules/Gmp/configure.in:1.2 Rev: src/modules/Gmp/gmp_machine.h.in:1.2 Rev: src/modules/Gmp/my_gmp.h:1.3 Rev: src/modules/Gmp/next_prime.c:1.6 Rev: src/modules/Gmp/prime_table.c:1.3 Rev: src/modules/Gmp/testsuite.in:1.12 Rev: src/modules/Gz/Makefile.in:1.3 Rev: src/modules/Gz/configure.in:1.10 Rev: src/modules/Gz/testsuite.in:1.4 Rev: src/modules/Image/Makefile:1.8 Rev: src/modules/Image/Makefile.in:1.14 Rev: src/modules/Image/configure.in:1.8 Rev: src/modules/Image/encodings/Makefile.in:1.14 Rev: src/modules/Image/encodings/configure.in:1.4 Rev: src/modules/Image/testsuite.in:1.5 Rev: src/modules/MIME/Makefile.in:1.2 Rev: src/modules/MIME/acconfig.h:1.2 Rev: src/modules/MIME/configure.in:1.3 Rev: src/modules/MIME/testsuite.in:1.5 Rev: src/modules/Msql/Makefile.in:1.3 Rev: src/modules/Msql/test_msqlmod.pike:1.2 Rev: src/modules/Mysql/dummy.c:1.4 Rev: src/modules/Pipe/Makefile.in:1.3 Rev: src/modules/Pipe/configure.in:1.4 Rev: src/modules/Postgres/extras/test_notify.pike:1.2 Rev: src/modules/Postgres/extras/test_schema.pike:1.2 Rev: src/modules/Postgres/pg_types.h:1.3 Rev: src/modules/Postgres/pgresult.c:1.5 Rev: src/modules/Postgres/pgresult.h:1.2 Rev: src/modules/Regexp/Makefile.in:1.5 Rev: src/modules/Regexp/configure.in:1.5 Rev: src/modules/Regexp/glue.c:1.10 Rev: src/modules/Regexp/pike_regexp.c:1.12 Rev: src/modules/Regexp/pike_regexp.h:1.3 Rev: src/modules/Regexp/testsuite.in:1.3 Rev: src/modules/Ssleay/Makefile.in:1.3 Rev: src/modules/Ssleay/acconfig.h:1.2 Rev: src/modules/Ssleay/configure.in:1.4 Rev: src/modules/Yp/Makefile.in:1.3 Rev: src/modules/Yp/configure.in:1.5 Rev: src/modules/Yp/yp.c:1.12 Rev: src/modules/_Crypto/.build_lobotomized_crypto:1.6 Rev: src/modules/_Crypto/.exportable_files:1.3 Rev: src/modules/_Crypto/Makefile.in:1.16 Rev: src/modules/_Crypto/configure.in:1.5 Rev: src/modules/_Crypto/include/.exportable_files:1.2 Rev: src/modules/_Crypto/include/RCSID.h:1.6 Rev: src/modules/_Crypto/include/cast.h:1.2 Rev: src/modules/_Crypto/include/crypto_types.h:1.5 Rev: src/modules/_Crypto/include/idea.h:1.4 Rev: src/modules/_Crypto/include/md5.h:1.2 Rev: src/modules/_Crypto/include/rc4.h:1.3 Rev: src/modules/_Crypto/include/sha.h:1.4 Rev: src/modules/_Crypto/lib/.exportable_files:1.2 Rev: src/modules/_Crypto/lib/cast.c:1.2 Rev: src/modules/_Crypto/lib/cast_sboxes.h:1.2 Rev: src/modules/_Crypto/precompiled_crypto.h:1.17 Rev: src/modules/_Crypto/sha.c:1.10 Rev: src/modules/_Image_PNG/Makefile.in:1.2 Rev: src/modules/_Image_PNG/configure.in:1.2 Rev: src/modules/_Image_PNG/testsuite.in:1.3 Rev: src/modules/_Image_XFace/Makefile.in:1.2 Rev: src/modules/_Image_XFace/configure.in:1.2 Rev: src/modules/_Image_XFace/testsuite.in:1.2 Rev: src/modules/configure.in:1.5 Rev: src/modules/module_configure.in:1.5 Rev: src/modules/module_makefile:1.3 Rev: src/multiset.c:1.10 Rev: src/multiset.h:1.7 Rev: src/object.h:1.17 Rev: src/opcodes.c:1.16 Rev: src/opcodes.h:1.4 Rev: src/operators.h:1.4 Rev: src/otable.h:1.2 Rev: src/peep.c:1.19 Rev: src/peep.h:1.4 Rev: src/peep.in:1.12 Rev: src/pike_macros.h:1.6 Rev: src/pike_memory.c:1.18 Rev: src/pike_memory.h:1.4 Rev: src/pike_types.h:1.11 Rev: src/port.c:1.15 Rev: src/port.h:1.18 Rev: src/program.h:1.35 Rev: src/run_autoconfig:1.21 Rev: src/rusage.c:1.10 Rev: src/rusage.h:1.3 Rev: src/signal_handler.c:1.41 Rev: src/signal_handler.h:1.6 Rev: src/stralloc.c:1.30 Rev: src/stralloc.h:1.15 Rev: src/stuff.c:1.6 Rev: src/stuff.h:1.5 Rev: src/svalue.c:1.21 Rev: src/svalue.h:1.14 Rev: src/threads.h:1.40 Rev: src/time_stuff.h:1.8 Rev: src/ualarm.c:1.2 Rev: src/version.c:1.34 Rev: src/version.h:1.3
image.h 3.57 KiB
/*
**! module Image
**! note
**! $Id: image.h,v 1.21 1998/04/16 04:32:36 mirar Exp $
*/
#ifdef PIKE_IMAGE_IMAGE_H
#error IMAGE.h included twice
#endif
#define PIKE_IMAGE_IMAGE_H
#define MAX_NUMCOL 32768
#define QUANT_SELECT_CACHE 6
#define COLORTYPE unsigned char
#define FS_SCALE 1024
typedef struct
{
COLORTYPE r,g,b;
/* COLORTYPE __padding_dont_use__;*/
} rgb_group;
typedef struct
{
COLORTYPE r,g,b,alpha;
} rgba_group;
typedef struct
{
INT32 r,g,b;
} rgbl_group;
typedef struct
{
float r,g,b;
} rgbd_group; /* use float, it gets so big otherwise... */
typedef struct
{
float r,g,b,alpha;
} rgbda_group; /* use float, it gets so big otherwise... */
struct image
{
rgb_group *img;
INT_TYPE xsize,ysize;
rgb_group rgb;
unsigned char alpha;
};
/* COMPAT: encoding of a gif - from togif */
void image_togif(INT32 args);
void image_togif_fs(INT32 args);
void image_fromgif(INT32 args);
void image_gif_begin(INT32 args);
void image_gif_add(INT32 args);
void image_gif_add_fs(INT32 args);
void image_gif_add_nomap(INT32 args);
void image_gif_add_fs_nomap(INT32 args);
void image_gif_end(INT32 args);
void image_gif_netscape_loop(INT32 args);
/* blit.c */
void img_clear(rgb_group *dest,rgb_group rgb,INT32 size);
void img_box_nocheck(INT32 x1,INT32 y1,INT32 x2,INT32 y2);
void img_box(INT32 x1,INT32 y1,INT32 x2,INT32 y2);
void img_blit(rgb_group *dest,rgb_group *src,INT32 width,
INT32 lines,INT32 moddest,INT32 modsrc);
void img_crop(struct image *dest,
struct image *img,
INT32 x1,INT32 y1,
INT32 x2,INT32 y2);
void img_clone(struct image *newimg,struct image *img);
void image_paste(INT32 args);
void image_paste_alpha(INT32 args);
void image_paste_mask(INT32 args);
void image_paste_alpha_color(INT32 args);
void image_add_layers(INT32 args);
enum layer_method
{ LAYER_NOP=0, LAYER_MAX=1, LAYER_MIN=2,
LAYER_MULT=3, LAYER_ADD=4, LAYER_DIFF=5 };
/* matrix.c */
void image_scale(INT32 args);
void image_translate(INT32 args);
void image_translate_expand(INT32 args);
void image_skewx(INT32 args);
void image_skewy(INT32 args);
void image_skewx_expand(INT32 args);
void image_skewy_expand(INT32 args);
void image_rotate(INT32 args);
void image_rotate_expand(INT32 args);
void image_cw(INT32 args);
void image_ccw(INT32 args);
void image_ccw(INT32 args);
void image_mirrorx(INT32 args);
void image_mirrory(INT32 args);
/* pnm.c */
void image_toppm(INT32 args);
void image_frompnm(INT32 args);
/* pattern.c */
void image_noise(INT32 args);
void image_turbulence(INT32 args);
void image_noise_init(void);
/* dct.c */
void image_dct(INT32 args);
/* operator.c */
void image_operator_minus(INT32 args);
void image_operator_plus(INT32 args);
void image_operator_multiply(INT32 args);
void image_operator_maximum(INT32 args);
void image_operator_minimum(INT32 args);
void image_operator_equal(INT32 args);
void image_operator_lesser(INT32 args);
void image_operator_greater(INT32 args);
void image_cast(INT32 args);
void image_min(INT32 args);
void image_max(INT32 args);
void image_sum(INT32 args);
void image_sumf(INT32 args);
void image_average(INT32 args);
void image_find_max(INT32 args);
void image_find_min(INT32 args);
/* x.c */
void image_to8bit_closest(INT32 args);
void image_to8bit(INT32 args);
void image_to8bit_fs(INT32 args);
void image_tozbgr(INT32 args);
void image_torgb(INT32 args);
void image_to8bit_rgbcube(INT32 args);
void image_to8bit_rgbcube_rdither(INT32 args);
void image_tobitmap(INT32 args);
/* polyfill.c */
void image_polyfill(INT32 args);
/* orient.c */
void image_orient(INT32 args);
void image_orient4(INT32 args);