Lines Matching refs:c0

422   int c0, c1, c2;  in update_box()  local
435 for (c0 = c0min; c0 <= c0max; c0++) in update_box()
438 histp = &histogram[c0][c1][c2min]; in update_box()
442 boxp->c0min = c0min = c0; in update_box()
448 for (c0 = c0max; c0 >= c0min; c0--) in update_box()
451 histp = &histogram[c0][c1][c2min]; in update_box()
455 boxp->c0max = c0max = c0; in update_box()
462 for (c0 = c0min; c0 <= c0max; c0++) in update_box()
464 histp = &histogram[c0][c1][c2min]; in update_box()
475 for (c0 = c0min; c0 <= c0max; c0++) in update_box()
477 histp = &histogram[c0][c1][c2min]; in update_box()
488 for (c0 = c0min; c0 <= c0max; c0++) in update_box()
490 histp = &histogram[c0][c1min][c2]; in update_box()
501 for (c0 = c0min; c0 <= c0max; c0++) in update_box()
503 histp = &histogram[c0][c1min][c2]; in update_box()
528 for (c0 = c0min; c0 <= c0max; c0++) in update_box()
531 histp = &histogram[c0][c1][c2min]; in update_box()
548 int c0, c1, c2, cmax; in median_cut() local
578 c0 = ((b1->c0max - b1->c0min) << C0_SHIFT) * C0_SCALE; in median_cut()
587 if (c0 > cmax) in median_cut()
589 cmax = c0; in median_cut()
604 if (c0 > cmax) in median_cut()
651 int c0, c1, c2; in compute_color() local
666 for (c0 = c0min; c0 <= c0max; c0++) in compute_color()
669 histp = &histogram[c0][c1][c2min]; in compute_color()
676 ((c0 << C0_SHIFT) + ((1 << C0_SHIFT) >> 1)) * count; in compute_color()
1074 int c0, int c1, int c2) in fill_inverse_cmap() argument
1091 c0 >>= BOX_C0_LOG; in fill_inverse_cmap()
1099 minc0 = (c0 << BOX_C0_SHIFT) + ((1 << C0_SHIFT) >> 1); in fill_inverse_cmap()
1112 c0 <<= BOX_C0_LOG; /* convert ID back to base cell indexes */ in fill_inverse_cmap()
1120 cachep = &histogram[c0 + ic0][c1 + ic1][c2]; in fill_inverse_cmap()
1142 register int c0, c1, c2; in pass2_no_dither() local
1174 c0 = r >> C0_SHIFT; in pass2_no_dither()
1177 cachep = &histogram[c0][c1][c2]; in pass2_no_dither()
1181 fill_inverse_cmap (oim, nim, cquantize, c0, c1, c2); in pass2_no_dither()