pike.git / src / modules / Image / lzw.h

version» Context lines:

pike.git/src/modules/Image/lzw.h:1: - /* $Id: lzw.h,v 1.4 1997/10/27 22:41:23 mirar Exp $ */ + /* $Id: lzw.h,v 1.5 1997/11/07 06:06:14 mirar Exp $ */    - /* - **! module Image - **! note - **! $Id: lzw.h,v 1.4 1997/10/27 22:41:23 mirar Exp $ - */ -  - #define GIF_LZW -  - #ifdef GIF_LZW - typedef unsigned short lzwcode_t; /* no more than 12 bits used */ - #else - typedef unsigned long lzwcode_t; - #endif -  - struct lzw - { -  unsigned long codes; -  unsigned long bits; /* initial encoding bits */ -  unsigned long codebits; /* current encoding bits */ -  unsigned long outlen,outpos,outbit; -  unsigned char *out,lastout; -  struct lzwc -  { -  unsigned char c; -  lzwcode_t firstchild; -  lzwcode_t next; -  } *code; -  lzwcode_t current,firstfree; - #ifndef GIF_LZW -  unsigned long alloced; - #endif - }; -  - #define LZWCNULL ((lzwcode_t)(~0)) -  - void lzw_add(struct lzw *lzw,int c); - void lzw_quit(struct lzw *lzw); - void lzw_init(struct lzw *lzw,int bits); - void lzw_write_last(struct lzw *lzw); - unsigned long lzw_unpack(unsigned char *dest,unsigned long destlen, -  unsigned char *src,unsigned long srclen, -  int bits); -  -  -  + #error This file should not be compiled. Have you run autoconf?