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

  1.  
  2. /* arithmod.h - Include file for modelling routines used in arithmetic coding. */
  3.  
  4. #ifdef NOPROTOS
  5. #define P(a,b) b
  6. #else
  7. #define P(a,b) a
  8. #endif
  9.  
  10. extern void join_big_freqs P((int *freqs, int ncodes),());
  11. extern void add_to_big_freqs P((int c, int inc, int *freqs, int ncodes),());
  12. extern int find_code_in_big_freqs P((int c, int *freqs, int ncodes),());
  13. extern int find_freq_in_big_freqs
  14.     P((int f, int *freqs, int *prstart, int ncodes),());
  15.  
  16. extern void del_from_small_freqs
  17.     P((int c, unsigned char *hits, char *hitfreqs, int *pnhits),());
  18. extern void add_to_small_freqs
  19.     P((int c, unsigned char *hits, char *hitfreqs, int *pnhits),());
  20. extern int find_code_in_small_freqs
  21.     P((int c, unsigned char *hits, char *hitfreqs,
  22.         int nhits, int *prstart),());
  23. extern int find_freq_in_small_freqs
  24.     P((int f, unsigned char *hits, char *hitfreqs,
  25.         int *prstart, int *prend),());
  26.