Lines Matching refs:Ncolors
28 * image. We use a map consisting of all combinations of Ncolors[i] color
29 * values for the i'th component. The Ncolors[] values are chosen so that
156 int Ncolors[MAX_Q_COMPS]; /* # of values alloced to each component */
186 select_ncolors (j_decompress_ptr cinfo, int Ncolors[])
188 /* and fill in Ncolors[] array to indicate choice. */
189 /* Return value is total number of colors (product of Ncolors[] values). */
216 Ncolors[i] = iroot;
229 /* calculate new total_colors if Ncolors[j] is incremented */
230 temp = total_colors / Ncolors[j];
231 temp *= Ncolors[j]+1; /* done in long arith to avoid oflo */
234 Ncolors[j]++; /* OK, apply the increment */
281 total_colors = select_ncolors(cinfo, cquantize->Ncolors);
286 total_colors, cquantize->Ncolors[0],
287 cquantize->Ncolors[1], cquantize->Ncolors[2]);
305 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
362 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
439 nci = cquantize->Ncolors[i]; /* # of distinct values for this color */
442 if (nci == cquantize->Ncolors[j]) {