home *** CD-ROM | disk | FTP | other *** search
/ AMIGA PD 1 / AMIGA-PD-1.iso / Programme_zum_Heft / Anwendungen / Kurztests / PBM / ILBMTOPPM.LHA / src / ppmcmap2.h < prev    next >
C/C++ Source or Header  |  1994-12-16  |  904b  |  26 lines

  1. /* */
  2.  
  3. #ifndef _PPM_CMAP2_H_
  4. #define _PPM_CMAP2_H_
  5.  
  6. #include "ppm.h"
  7. #include "ppmcmap.h"
  8.  
  9.  
  10. /* Declarations of routines. */
  11.  
  12. colorhash_table ppm_colorrowtocolorhash ARGS((pixel *colorrow, int ncolors));
  13. pixel * ppm_computecolorrow ARGS((pixel **pixels, int cols, int rows, int maxcolors, int *ncolorsP));
  14. pixel * ppm_mapfiletocolorrow ARGS((FILE *file, int maxcolors, int *ncolorsP, pixval *maxvalP));
  15. void    ppm_colorrowtomapfile ARGS((FILE *ofp, pixel *colormap, int ncolors, pixval maxval));
  16. void    ppm_sortcolorrow ARGS((pixel *colorrow, int ncolors, int (*cmpfunc)(pixel *, pixel *) ));
  17. int     ppm_addtocolorrow ARGS((pixel *colorrow, int *ncolorsP, int maxcolors, pixel *pixelP));
  18. int     ppm_findclosestcolor ARGS((pixel *colorrow, int ncolors, pixel *pP));
  19.  
  20. /* standard sort function for ppm_sortcolorrow() */
  21. #define PPM_STDSORT     (int (*)(pixel *, pixel *))0
  22.  
  23.  
  24. #endif /* _PPM_CMAP2_H_ */
  25.  
  26.