33 image_information *img;
40 if ( (v =
rle_getcom( "color_map_length", img_hdr
)) != NULL )
64 register image_information *img;
78 for (i = 0; i < 3; i++ ) {
79 for (j = 0; j < 256; j++)
89 for (i = 0; i < 3; i++ ) {
90 fprintf(stderr,
"Input image colormap channel %d:\n", i);
92 for ( j = 0; j < img
->cmlen; j++ )
96 fprintf( stderr,
"\tSame as channel %d\n", i - 1 );
98 for (j = 0; j < img
->cmlen; j += 16) {
100 fprintf (stderr,
"%3d: ", j );
101 for (k = 0; k < 16 ; k++ )
103 fprintf(stderr,
"%3d ", img
->in_cmap[i][j+k]);
104 fprintf (stderr,
"\n");
111 for (j = 0; j < 256; j++)
129 for (i = 0; i < 3; i++ )
130 for (j = 0; j < len1; j++)
131 if ( cm1[i][j] != cm2[i][j] )
int eq_cmap(register rle_pixel **cm1, int len1, register rle_pixel **cm2, int len2)
void check_mono_color(image_information *img, rle_hdr *img_hdr)
rle_pixel ** buildmap(rle_hdr *the_hdr, int minmap, double orig_gamma, double new_gamma)
char * rle_getcom(char *name, rle_hdr *the_hdr) const
void get_dither_colors(register image_information *img, rle_hdr *img_hdr)