home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / graphics / gifbla20.zip / SOURCE / GB20CODE.H < prev    next >
C/C++ Source or Header  |  1992-12-15  |  1KB  |  39 lines

  1.  
  2. /* gb20code.h - Include file for special purpose GIF compressor routines
  3.     (version 2.0). */
  4.  
  5. #ifndef P_DEFINED
  6. #define P_DEFINED
  7. #ifdef NOPROTOS
  8. #define P(a,b) b
  9. #else
  10. #define P(a,b) a
  11. #endif
  12. #endif
  13.  
  14. #define V20_TYPEMASK 63
  15. #define V20_BITMASK 15
  16. typedef struct {
  17.     ARCON_BIG_CONTEXT ac_order_0_con;
  18.     ARCON_SMALL_CONTEXT *ac_order_1_cons;
  19.     ARCON_TYPE_CONTEXT ac_type_cons[V20_TYPEMASK+1];
  20.     int prev,prevts;
  21.     ARCON_TYPE_CONTEXT ac_bit_cons[V20_BITMASK+1];
  22.     int prevbits;
  23.     int im_bpp;
  24.     ARITH_CODER ac_struct;
  25. } GB20_CODER;
  26.  
  27. extern int copy_if_larger;
  28.  
  29. extern GB20_CODER *gb20_alloc_coder();
  30. extern void gb20_free_coder P((GB20_CODER *gb20),());
  31. extern int gb20_start_encoding P((GB20_CODER *gb20, FFILE *ff),());
  32. extern void gb20_init_image P((GB20_CODER *gb20, int im_bpp),());
  33. extern void gb20_end_image P((GB20_CODER *gb20),());
  34. extern int gb20_encode_c P((int c, GB20_CODER *gb20),());
  35. extern int gb20_end_encoding P((GB20_CODER *gb20),());
  36. extern int gb20_start_decoding P((GB20_CODER *gb20, FFILE *ff),());
  37. extern int gb20_decode_c P((GB20_CODER *gb20),());
  38. extern int gb20_end_decoding P((GB20_CODER *gb20),());
  39.