home *** CD-ROM | disk | FTP | other *** search
- /* ppm2AGA.h V1.0 */
-
- #include <setjmp.h>
- #ifndef IFFP_IFF_H
- #include <iffp/iff.h>
- #endif
- #ifndef _PPM_H
- #include "ppm.h"
- #endif
- #include "ppmcmap.h"
-
-
- #include <stdio.h>
-
-
- /* definitions for ppm2ilbm */
- #define ESTIMATE 0
- #define HAM6 1
- #define HAM8 2
- #define COLORMAP 3
-
- #define LARGE_NORM
- #define REP_AVERAGE_PIXELS
-
- pixel *next_pixrow(FILE *fp, int row, int ColorShift);
- colorhist_vector
- ppm_fcomputecolorhist(FILE *pixels, int cols, int rows,
- int maxcolors, int *colorsP, int ColorShift, int cluster);
- colorhash_table
- ppm_fcomputecolorhash(FILE *pixels, int cols, int rows,
- int maxcolors, int *colorsP, int ColorShift, int cluster);
- colorhist_vector
- ppm_fcolorhashtocolorhist(colorhash_table cht, int maxcolors, int cluster);
-
- colorhist_vector
- mediancut( colorhist_vector chv, int colors, int sum, pixval maxval, int newcolors);
-
- /* definitions for iffp modules */
-
- #ifdef message
- #undef message
- #endif
- #define message pm_message
-