Lines Matching refs:colorindex
37 * can be precalculated and stored in the lookup table colorindex[].
38 * colorindex[i][j] maps pixel value j in component i to the nearest
42 * sum( colorindex[component-number][pixel-component-value] )
66 * this to 0..MAXJSAMPLE, and then index into the colorindex table as usual.
67 * We can skip the separate range-limiting step by extending the colorindex
149 JSAMPARRAY colorindex; /* Precomputed mapping for speed */
150 /* colorindex[i][j] = index of color closest to pixel value j in component i,
154 boolean is_padded; /* is the colorindex padded for odither? */
352 cquantize->colorindex = (*cinfo->mem->alloc_sarray)
361 /* fill in colorindex entries for i'th color component */
365 /* adjust colorindex pointers to provide padding at negative indexes. */
367 cquantize->colorindex[i] += MAXJSAMPLE;
371 indexptr = cquantize->colorindex[i];
464 JSAMPARRAY colorindex = cquantize->colorindex;
478 pixcode += GETJSAMPLE(colorindex[ci][GETJSAMPLE(*ptrin++)]);
494 JSAMPROW colorindex0 = cquantize->colorindex[0];
495 JSAMPROW colorindex1 = cquantize->colorindex[1];
496 JSAMPROW colorindex2 = cquantize->colorindex[2];
539 colorindex_ci = cquantize->colorindex[ci];
547 * the colorindex table to produce the right answers for out-of-range
573 JSAMPROW colorindex0 = cquantize->colorindex[0];
574 JSAMPROW colorindex1 = cquantize->colorindex[1];
575 JSAMPROW colorindex2 = cquantize->colorindex[2];
656 colorindex_ci = cquantize->colorindex[ci];