Lines Matching refs:i

380   register int i;  in find_biggest_color_pop()  local
384 for (i = 0, boxp = boxlist; i < numboxes; i++, boxp++) in find_biggest_color_pop()
401 register int i; in find_biggest_volume() local
405 for (i = 0, boxp = boxlist; i < numboxes; i++, boxp++) in find_biggest_volume()
708 int i; in select_colors() local
725 for (i = 0; i < numboxes; i++) in select_colors()
726 compute_color (oim, nim, cquantize, &boxlist[i], i); in select_colors()
839 int i, x, ncolors; in find_nearby_colors() local
866 for (i = 0; i < numcolors; i++) in find_nearby_colors()
869 x = nim->red[i]; in find_nearby_colors()
900 x = nim->green[i]; in find_nearby_colors()
930 x = nim->blue[i]; in find_nearby_colors()
960 mindist[i] = min_dist; /* save away the results */ in find_nearby_colors()
970 for (i = 0; i < numcolors; i++) in find_nearby_colors()
972 if (mindist[i] <= minmaxdist) in find_nearby_colors()
973 colorlist[ncolors++] = (JSAMPLE) i; in find_nearby_colors()
992 int i, icolor; in find_best_colors() local
1005 for (i = BOX_C0_ELEMS * BOX_C1_ELEMS * BOX_C2_ELEMS - 1; i >= 0; i--) in find_best_colors()
1018 for (i = 0; i < numcolors; i++) in find_best_colors()
1021 icolor = colorlist[i]; in find_best_colors()
1420 int i; in zeroHistogram() local
1422 for (i = 0; i < HIST_C0_ELEMS; i++) in zeroHistogram()
1424 memset (histogram[i], in zeroHistogram()
1447 int i; in free_truecolor_image_data() local
1450 for (i = 0; i < oim->sy; i++) in free_truecolor_image_data()
1452 gdFree (oim->tpixels[i]); in free_truecolor_image_data()
1465 int i, conversionSucceeded=0; in gdImageTrueColorToPaletteBody() local
1507 for (i = 0; (i < nim->sy); i++) in gdImageTrueColorToPaletteBody()
1509 nim->pixels[i] = gdCalloc (sizeof (unsigned char *), oim->sx); in gdImageTrueColorToPaletteBody()
1510 if (!nim->pixels[i]) in gdImageTrueColorToPaletteBody()
1529 for (i = 0; i < HIST_C0_ELEMS; i++) in gdImageTrueColorToPaletteBody()
1531 cquantize->histogram[i] = in gdImageTrueColorToPaletteBody()
1533 if (!cquantize->histogram[i]) in gdImageTrueColorToPaletteBody()
1570 for (i = 0; (i < im->colorsTotal); i++) in gdImageTrueColorToPaletteBody()
1572 if (im->alpha[i] > mt) in gdImageTrueColorToPaletteBody()
1574 mtIndex = i; in gdImageTrueColorToPaletteBody()
1575 mt = im->alpha[i]; in gdImageTrueColorToPaletteBody()
1578 for (i = 0; (i < im->colorsTotal); i++) in gdImageTrueColorToPaletteBody()
1580 if (im->alpha[i] == mt) in gdImageTrueColorToPaletteBody()
1582 im->alpha[i] = gdAlphaTransparent; in gdImageTrueColorToPaletteBody()
1590 for (i = 0; (i < im->colorsTotal); i++) in gdImageTrueColorToPaletteBody()
1592 if (im->alpha[i] < mo) in gdImageTrueColorToPaletteBody()
1594 moIndex = i; in gdImageTrueColorToPaletteBody()
1595 mo = im->alpha[i]; in gdImageTrueColorToPaletteBody()
1598 for (i = 0; (i < im->colorsTotal); i++) in gdImageTrueColorToPaletteBody()
1600 if (im->alpha[i] == mo) in gdImageTrueColorToPaletteBody()
1602 im->alpha[i] = gdAlphaOpaque; in gdImageTrueColorToPaletteBody()
1634 for (i = 0; i < nim->sy; i++) in gdImageTrueColorToPaletteBody()
1636 if (nim->pixels[i]) in gdImageTrueColorToPaletteBody()
1638 gdFree (nim->pixels[i]); in gdImageTrueColorToPaletteBody()
1652 for (i = 0; i < HIST_C0_ELEMS; i++) in gdImageTrueColorToPaletteBody()
1654 if (cquantize->histogram[i]) in gdImageTrueColorToPaletteBody()
1656 gdFree (cquantize->histogram[i]); in gdImageTrueColorToPaletteBody()