Lines Matching refs:c2
320 int c0,c1,c2;
333 for (c2 = c2min; c2 <= c2max; c2++)
344 for (c2 = c2min; c2 <= c2max; c2++)
355 for (c2 = c2min; c2 <= c2max; c2++)
366 for (c2 = c2min; c2 <= c2max; c2++)
374 for (c2 = c2min; c2 <= c2max; c2++)
376 histp = & histogram[c0][c1min][c2];
379 boxp->c2min = c2min = c2;
385 for (c2 = c2max; c2 >= c2min; c2--)
387 histp = & histogram[c0][c1min][c2];
390 boxp->c2max = c2max = c2;
414 for (c2 = c2min; c2 <= c2max; c2++, histp++)
429 int c0,c1,c2,cmax;
453 c2 = ((b1->c2max - b1->c2min) << C2_SHIFT) * C2_SCALE;
460 if (c2 > cmax) { n = 2; }
463 if (c2 > cmax) { cmax = c2; n = 2; }
507 int c0,c1,c2;
522 for (c2 = c2min; c2 <= c2max; c2++) {
527 c2total += ((c2 << C2_SHIFT) + ((1<<C2_SHIFT)>>1)) * count;
813 /* Compute (square of) distance from minc0/c1/c2 to this color */
855 fill_inverse_cmap (j_decompress_ptr cinfo, int c0, int c1, int c2)
857 /* histogram cell c0/c1/c2. (Only that one cell MUST be filled, but */
875 c2 >>= BOX_C2_LOG;
883 minc2 = (c2 << BOX_C2_SHIFT) + ((1 << C2_SHIFT) >> 1);
897 c2 <<= BOX_C2_LOG;
901 cachep = & histogram[c0+ic0][c1+ic1][c2];
923 register int c0, c1, c2;
935 c2 = GETJSAMPLE(*inptr++) >> C2_SHIFT;
936 cachep = & histogram[c0][c1][c2];
940 fill_inverse_cmap(cinfo, c0,c1,c2);