| 1 | #ifndef PALMCOLORMAP_H_INCLUDED |
| 2 | #define PALMCOLORMAP_H_INCLUDED |
| 3 | |
| 4 | #include <stdio.h> |
| 5 | #include "ppm.h" |
| 6 | #include "palm.h" |
| 7 | |
| 8 | ColormapEntry |
| 9 | palmcolor_mapEntryColorFmPixel(pixel const color, |
| 10 | pixval const maxval, |
| 11 | pixval const newMaxval); |
| 12 | |
| 13 | Colormap * |
| 14 | palmcolor_build_custom_8bit_colormap(pixel ** const pixels, |
| 15 | unsigned int const rows, |
| 16 | unsigned int const cols, |
| 17 | pixval const maxval); |
| 18 | |
| 19 | Colormap * |
| 20 | palmcolor_build_default_8bit_colormap(void); |
| 21 | |
| 22 | Colormap * |
| 23 | palmcolor_read_colormap (FILE * const ifP); |
| 24 | |
| 25 | #endif |