Go to the source code of this file.
Definition at line 32 of file in_cmap.c.
40 if ( (v =
rle_getcom(
"color_map_length", img_hdr )) != NULL )
41 img->
cmlen = atoi( v );
48 if ( img->
cmlen > 256 )
char * rle_getcom(const char *name, rle_hdr *the_hdr)
Definition at line 120 of file in_cmap.c.
129 for (i = 0; i < 3; i++ )
130 for (j = 0; j < len1; j++)
131 if ( cm1[i][j] != cm2[i][j] )
Definition at line 63 of file in_cmap.c.
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++ )
95 if ( i > 0 && j == img->
cmlen )
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++ )
102 if ( j + k < img->cmlen )
103 fprintf(stderr,
"%3d ", img->
in_cmap[i][j+k]);
104 fprintf (stderr,
"\n");
111 for (j = 0; j < 256; j++)
114 11 * img->
in_cmap[2][j]) / 100);
rle_pixel ** buildmap(rle_hdr *the_hdr, int minmap, double orig_gamma, double new_gamma)