Lines Matching refs:ncolors
65 void dither_setup(ncolors) in dither_setup() argument
66 int ncolors; in dither_setup()
73 half = (ncolors - 2) / 2;
74 ncolors = half*2 + 2;
75 dither_ncolors = ncolors;
77 level = (u_char *) malloc((unsigned) ncolors);
80 nbytes = ncolors * 3;
103 dither_colormap[(ncolors-1)*3+0] = 255;
104 dither_colormap[(ncolors-1)*3+1] = 255;
105 dither_colormap[(ncolors-1)*3+2] = 255;
106 level[ncolors-1] = 255;