nim 131 ext/gd/libgd/gd_topal.c #define output_buf (nim->pixels) nim 344 ext/gd/libgd/gd_topal.c prescan_quantize (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize) nim 467 ext/gd/libgd/gd_topal.c update_box (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, boxptr boxp) nim 603 ext/gd/libgd/gd_topal.c median_cut (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, nim 699 ext/gd/libgd/gd_topal.c update_box (oim, nim, cquantize, b1); nim 700 ext/gd/libgd/gd_topal.c update_box (oim, nim, cquantize, b2); nim 710 ext/gd/libgd/gd_topal.c compute_color (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, nim 765 ext/gd/libgd/gd_topal.c nim->red[icolor] = (int) ((c0total + (total >> 1)) / total); nim 766 ext/gd/libgd/gd_topal.c nim->green[icolor] = (int) ((c1total + (total >> 1)) / total); nim 767 ext/gd/libgd/gd_topal.c nim->blue[icolor] = (int) ((c2total + (total >> 1)) / total); nim 771 ext/gd/libgd/gd_topal.c nim->red[icolor] = 255; nim 772 ext/gd/libgd/gd_topal.c nim->green[icolor] = 255; nim 773 ext/gd/libgd/gd_topal.c nim->blue[icolor] = 255; nim 775 ext/gd/libgd/gd_topal.c nim->open[icolor] = 0; nim 784 ext/gd/libgd/gd_topal.c select_colors (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, int desired_colors) nim 819 ext/gd/libgd/gd_topal.c update_box (oim, nim, cquantize, &boxlist[0]); nim 821 ext/gd/libgd/gd_topal.c numboxes = median_cut (oim, nim, cquantize, boxlist, numboxes, desired_colors); nim 824 ext/gd/libgd/gd_topal.c compute_color (oim, nim, cquantize, &boxlist[i], i); nim 825 ext/gd/libgd/gd_topal.c nim->colorsTotal = numboxes; nim 834 ext/gd/libgd/gd_topal.c nim->red[nim->colorsTotal] = gdTrueColorGetRed (oim->transparent); nim 835 ext/gd/libgd/gd_topal.c nim->green[nim->colorsTotal] = gdTrueColorGetGreen (oim->transparent); nim 836 ext/gd/libgd/gd_topal.c nim->blue[nim->colorsTotal] = gdTrueColorGetBlue (oim->transparent); nim 837 ext/gd/libgd/gd_topal.c nim->alpha[nim->colorsTotal] = gdAlphaTransparent; nim 838 ext/gd/libgd/gd_topal.c nim->open[nim->colorsTotal] = 0; nim 927 ext/gd/libgd/gd_topal.c gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, nim 942 ext/gd/libgd/gd_topal.c int numcolors = nim->colorsTotal; nim 979 ext/gd/libgd/gd_topal.c x = nim->red[i]; nim 1014 ext/gd/libgd/gd_topal.c x = nim->green[i]; nim 1048 ext/gd/libgd/gd_topal.c x = nim->blue[i]; nim 1102 ext/gd/libgd/gd_topal.c gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, nim 1152 ext/gd/libgd/gd_topal.c r = nim->red[icolor]; nim 1153 ext/gd/libgd/gd_topal.c g = nim->green[icolor]; nim 1154 ext/gd/libgd/gd_topal.c b = nim->blue[icolor]; nim 1207 ext/gd/libgd/gd_topal.c gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, nim 1252 ext/gd/libgd/gd_topal.c find_nearby_colors (oim, nim, cquantize, minc0, minc1, minc2, colorlist); nim 1253 ext/gd/libgd/gd_topal.c find_best_colors (oim, nim, cquantize, minc0, minc1, minc2, numcolors, nim 1286 ext/gd/libgd/gd_topal.c pass2_no_dither (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize) nim 1334 ext/gd/libgd/gd_topal.c *outptr++ = nim->colorsTotal; nim 1350 ext/gd/libgd/gd_topal.c fill_inverse_cmap (oim, nim, cquantize, c0, c1, c2); nim 1365 ext/gd/libgd/gd_topal.c pass2_fs_dither (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize) nim 1397 ext/gd/libgd/gd_topal.c int *colormap0 = nim->red; nim 1398 ext/gd/libgd/gd_topal.c int *colormap1 = nim->green; nim 1399 ext/gd/libgd/gd_topal.c int *colormap2 = nim->blue; nim 1444 ext/gd/libgd/gd_topal.c *outptr = nim->colorsTotal; nim 1501 ext/gd/libgd/gd_topal.c fill_inverse_cmap (oim, nim, cquantize, cur0 >> C0_SHIFT, nim 1591 ext/gd/libgd/gd_topal.c init_error_limit (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize) nim 1761 ext/gd/libgd/gd_topal.c gdImagePtr nim; nim 1762 ext/gd/libgd/gd_topal.c gdImageTrueColorToPaletteBody(im, dither, colorsWanted, &nim); nim 1763 ext/gd/libgd/gd_topal.c return nim; nim 1789 ext/gd/libgd/gd_topal.c gdImagePtr nim; nim 1791 ext/gd/libgd/gd_topal.c nim = gdImageCreate(oim->sx, oim->sy); nim 1792 ext/gd/libgd/gd_topal.c *cimP = nim; nim 1793 ext/gd/libgd/gd_topal.c if (!nim) { nim 1797 ext/gd/libgd/gd_topal.c nim = oim; nim 1803 ext/gd/libgd/gd_topal.c gdImageCopy(nim, oim, 0, 0, 0, 0, oim->sx, oim->sy); nim 1804 ext/gd/libgd/gd_topal.c *cimP = nim; nim 1820 ext/gd/libgd/gd_topal.c nim->pixels = gdCalloc (sizeof (unsigned char *), oim->sy); nim 1821 ext/gd/libgd/gd_topal.c if (!nim->pixels) nim 1826 ext/gd/libgd/gd_topal.c for (i = 0; (i < nim->sy); i++) nim 1828 ext/gd/libgd/gd_topal.c nim->pixels[i] = gdCalloc (sizeof (unsigned char *), oim->sx); nim 1829 ext/gd/libgd/gd_topal.c if (!nim->pixels[i]) nim 1927 ext/gd/libgd/gd_topal.c init_error_limit (oim, nim, cquantize); nim 1928 ext/gd/libgd/gd_topal.c arraysize = (size_t) ((nim->sx + 2) * (3 * sizeof (FSERROR))); nim 1940 ext/gd/libgd/gd_topal.c prescan_quantize (oim, nim, cquantize); nim 1942 ext/gd/libgd/gd_topal.c select_colors (oim, nim, cquantize, colorsWanted); nim 1946 ext/gd/libgd/gd_topal.c pass2_fs_dither (oim, nim, cquantize); nim 1950 ext/gd/libgd/gd_topal.c pass2_no_dither (oim, nim, cquantize); nim 2002 ext/gd/libgd/gd_topal.c nim->transparent = nim->colorsTotal; nim 2003 ext/gd/libgd/gd_topal.c nim->colorsTotal++; nim 2024 ext/gd/libgd/gd_topal.c for (i = 0; i < nim->sy; i++) nim 2026 ext/gd/libgd/gd_topal.c if (nim->pixels[i]) nim 2028 ext/gd/libgd/gd_topal.c gdFree (nim->pixels[i]); nim 2031 ext/gd/libgd/gd_topal.c if (nim->pixels) nim 2033 ext/gd/libgd/gd_topal.c gdFree (nim->pixels); nim 2035 ext/gd/libgd/gd_topal.c nim->pixels = 0; nim 2037 ext/gd/libgd/gd_topal.c gdImageDestroy(nim);