--- ray/src/px/pic.h 2003/07/14 22:24:00 2.3 +++ ray/src/px/pic.h 2004/03/28 20:33:14 2.4 @@ -1,4 +1,4 @@ -/* RCSid: $Id: pic.h,v 2.3 2003/07/14 22:24:00 schorsch Exp $ */ +/* RCSid: $Id: pic.h,v 2.4 2004/03/28 20:33:14 schorsch Exp $ */ /* the following three structures are used by ciq */ #ifndef _RAD_PIC_H_ @@ -20,6 +20,26 @@ typedef struct { /* image resolution */ extern int xmax,ymax; + + /* defined in closest.c */ +extern void initializeclosest(void); +extern int closest(int r, int g, int b); + + /* defined in cut.c */ +extern int makecm(int nw, int *na); + + /* defined in ciq.c */ +extern void ciq(int dith, int nw, int synth, colormap cm); + + /* defined in biq.c */ +extern void biq(int dith, int nw, int synth, colormap cm); + + /* defined in in the calling program */ +extern void picreadcm(colormap map); +extern void picwritecm(colormap cm); +extern void picwriteline(int y, pixel *l); +extern void picreadline3(int y, rgbpixel *l3); + #ifdef __cplusplus }