cquantize 344 ext/gd/libgd/gd_topal.c prescan_quantize (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize) cquantize 350 ext/gd/libgd/gd_topal.c my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; cquantize 354 ext/gd/libgd/gd_topal.c register hist3d histogram = cquantize->histogram; cquantize 467 ext/gd/libgd/gd_topal.c update_box (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, boxptr boxp) cquantize 474 ext/gd/libgd/gd_topal.c my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; cquantize 476 ext/gd/libgd/gd_topal.c hist3d histogram = cquantize->histogram; cquantize 603 ext/gd/libgd/gd_topal.c median_cut (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, cquantize 699 ext/gd/libgd/gd_topal.c update_box (oim, nim, cquantize, b1); cquantize 700 ext/gd/libgd/gd_topal.c update_box (oim, nim, cquantize, b2); cquantize 710 ext/gd/libgd/gd_topal.c compute_color (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, cquantize 719 ext/gd/libgd/gd_topal.c my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; cquantize 721 ext/gd/libgd/gd_topal.c hist3d histogram = cquantize->histogram; cquantize 784 ext/gd/libgd/gd_topal.c select_colors (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, int desired_colors) cquantize 819 ext/gd/libgd/gd_topal.c update_box (oim, nim, cquantize, &boxlist[0]); cquantize 821 ext/gd/libgd/gd_topal.c numboxes = median_cut (oim, nim, cquantize, boxlist, numboxes, desired_colors); cquantize 824 ext/gd/libgd/gd_topal.c compute_color (oim, nim, cquantize, &boxlist[i], i); cquantize 927 ext/gd/libgd/gd_topal.c gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, cquantize 1102 ext/gd/libgd/gd_topal.c gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, cquantize 1207 ext/gd/libgd/gd_topal.c gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, cquantize 1215 ext/gd/libgd/gd_topal.c my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; cquantize 1217 ext/gd/libgd/gd_topal.c hist3d histogram = cquantize->histogram; cquantize 1252 ext/gd/libgd/gd_topal.c find_nearby_colors (oim, nim, cquantize, minc0, minc1, minc2, colorlist); cquantize 1253 ext/gd/libgd/gd_topal.c find_best_colors (oim, nim, cquantize, minc0, minc1, minc2, numcolors, cquantize 1286 ext/gd/libgd/gd_topal.c pass2_no_dither (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize) cquantize 1297 ext/gd/libgd/gd_topal.c my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; cquantize 1301 ext/gd/libgd/gd_topal.c hist3d histogram = cquantize->histogram; cquantize 1350 ext/gd/libgd/gd_topal.c fill_inverse_cmap (oim, nim, cquantize, c0, c1, c2); cquantize 1365 ext/gd/libgd/gd_topal.c pass2_fs_dither (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize) cquantize 1372 ext/gd/libgd/gd_topal.c my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; cquantize 1375 ext/gd/libgd/gd_topal.c hist3d histogram = cquantize->histogram; cquantize 1401 ext/gd/libgd/gd_topal.c int *error_limit = cquantize->error_limiter; cquantize 1408 ext/gd/libgd/gd_topal.c if (cquantize->on_odd_row) cquantize 1415 ext/gd/libgd/gd_topal.c errorptr = cquantize->fserrors + (width + 1) * 3; /* => entry after last column */ cquantize 1417 ext/gd/libgd/gd_topal.c cquantize->on_odd_row = FALSE; /* flip for next time */ cquantize 1425 ext/gd/libgd/gd_topal.c errorptr = cquantize->fserrors; /* => entry before first real column */ cquantize 1427 ext/gd/libgd/gd_topal.c cquantize->on_odd_row = TRUE; /* flip for next time */ cquantize 1501 ext/gd/libgd/gd_topal.c fill_inverse_cmap (oim, nim, cquantize, cur0 >> C0_SHIFT, cquantize 1591 ext/gd/libgd/gd_topal.c init_error_limit (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize) cquantize 1598 ext/gd/libgd/gd_topal.c my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; cquantize 1602 ext/gd/libgd/gd_topal.c cquantize->error_limiter_storage = cquantize 1604 ext/gd/libgd/gd_topal.c if (!cquantize->error_limiter_storage) cquantize 1608 ext/gd/libgd/gd_topal.c table = cquantize->error_limiter_storage; cquantize 1612 ext/gd/libgd/gd_topal.c cquantize->error_limiter = table; cquantize 1646 ext/gd/libgd/gd_topal.c my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; cquantize 1649 ext/gd/libgd/gd_topal.c cinfo->colormap = cquantize->sv_colormap; cquantize 1650 ext/gd/libgd/gd_topal.c select_colors (cinfo, cquantize->desired); cquantize 1652 ext/gd/libgd/gd_topal.c cquantize->needs_zeroed = TRUE; cquantize 1669 ext/gd/libgd/gd_topal.c my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; cquantize 1670 ext/gd/libgd/gd_topal.c hist3d histogram = cquantize->histogram; cquantize 1681 ext/gd/libgd/gd_topal.c cquantize->pub.color_quantize = prescan_quantize; cquantize 1682 ext/gd/libgd/gd_topal.c cquantize->pub.finish_pass = finish_pass1; cquantize 1683 ext/gd/libgd/gd_topal.c cquantize->needs_zeroed = TRUE; /* Always zero histogram */ cquantize 1689 ext/gd/libgd/gd_topal.c cquantize->pub.color_quantize = pass2_fs_dither; cquantize 1691 ext/gd/libgd/gd_topal.c cquantize->pub.color_quantize = pass2_no_dither; cquantize 1692 ext/gd/libgd/gd_topal.c cquantize->pub.finish_pass = finish_pass2; cquantize 1706 ext/gd/libgd/gd_topal.c if (cquantize->fserrors == NULL) cquantize 1707 ext/gd/libgd/gd_topal.c cquantize->fserrors = (FSERRPTR) (*cinfo->mem->alloc_large) cquantize 1710 ext/gd/libgd/gd_topal.c jzero_far ((void FAR *) cquantize->fserrors, arraysize); cquantize 1712 ext/gd/libgd/gd_topal.c if (cquantize->error_limiter == NULL) cquantize 1714 ext/gd/libgd/gd_topal.c cquantize->on_odd_row = FALSE; cquantize 1719 ext/gd/libgd/gd_topal.c if (cquantize->needs_zeroed) cquantize 1726 ext/gd/libgd/gd_topal.c cquantize->needs_zeroed = FALSE; cquantize 1738 ext/gd/libgd/gd_topal.c my_cquantize_ptr cquantize = (my_cquantize_ptr) cinfo->cquantize; cquantize 1741 ext/gd/libgd/gd_topal.c cquantize->needs_zeroed = TRUE; cquantize 1782 ext/gd/libgd/gd_topal.c my_cquantize_ptr cquantize = NULL; cquantize 1838 ext/gd/libgd/gd_topal.c cquantize = (my_cquantize_ptr) cquantize 1841 ext/gd/libgd/gd_topal.c cinfo->cquantize = (struct jpeg_color_quantizer *) cquantize; cquantize 1842 ext/gd/libgd/gd_topal.c cquantize->pub.start_pass = start_pass_2_quant; cquantize 1843 ext/gd/libgd/gd_topal.c cquantize->pub.new_color_map = new_color_map_2_quant; cquantize 1848 ext/gd/libgd/gd_topal.c cquantize = (my_cquantize_ptr) gdCalloc (sizeof (my_cquantizer), 1); cquantize 1849 ext/gd/libgd/gd_topal.c if (!cquantize) cquantize 1855 ext/gd/libgd/gd_topal.c cquantize->fserrors = NULL; /* flag optional arrays not allocated */ cquantize 1856 ext/gd/libgd/gd_topal.c cquantize->error_limiter = NULL; cquantize 1861 ext/gd/libgd/gd_topal.c cquantize->histogram = (hist3d) (*cinfo->mem->alloc_small) cquantize 1865 ext/gd/libgd/gd_topal.c cquantize->histogram[i] = (hist2d) (*cinfo->mem->alloc_large) cquantize 1869 ext/gd/libgd/gd_topal.c cquantize->needs_zeroed = TRUE; /* histogram is garbage now */ cquantize 1871 ext/gd/libgd/gd_topal.c cquantize->histogram = (hist3d) safe_emalloc (HIST_C0_ELEMS, sizeof (hist2d), 0); cquantize 1874 ext/gd/libgd/gd_topal.c cquantize->histogram[i] = cquantize 1876 ext/gd/libgd/gd_topal.c if (!cquantize->histogram[i]) cquantize 1898 ext/gd/libgd/gd_topal.c cquantize->sv_colormap = (*cinfo->mem->alloc_sarray) cquantize 1901 ext/gd/libgd/gd_topal.c cquantize->desired = desired; cquantize 1904 ext/gd/libgd/gd_topal.c cquantize->sv_colormap = NULL; cquantize 1918 ext/gd/libgd/gd_topal.c cquantize->fserrors = (FSERRPTR) (*cinfo->mem->alloc_large) cquantize 1926 ext/gd/libgd/gd_topal.c cquantize->fserrors = (FSERRPTR) safe_emalloc (3, sizeof (FSERROR), 0); cquantize 1927 ext/gd/libgd/gd_topal.c init_error_limit (oim, nim, cquantize); cquantize 1930 ext/gd/libgd/gd_topal.c cquantize->fserrors = gdRealloc(cquantize->fserrors, arraysize); cquantize 1931 ext/gd/libgd/gd_topal.c memset(cquantize->fserrors, 0, arraysize); cquantize 1932 ext/gd/libgd/gd_topal.c if (!cquantize->fserrors) cquantize 1936 ext/gd/libgd/gd_topal.c cquantize->on_odd_row = FALSE; cquantize 1939 ext/gd/libgd/gd_topal.c zeroHistogram (cquantize->histogram); cquantize 1940 ext/gd/libgd/gd_topal.c prescan_quantize (oim, nim, cquantize); cquantize 1942 ext/gd/libgd/gd_topal.c select_colors (oim, nim, cquantize, colorsWanted); cquantize 1943 ext/gd/libgd/gd_topal.c zeroHistogram (cquantize->histogram); cquantize 1946 ext/gd/libgd/gd_topal.c pass2_fs_dither (oim, nim, cquantize); cquantize 1950 ext/gd/libgd/gd_topal.c pass2_no_dither (oim, nim, cquantize); cquantize 1953 ext/gd/libgd/gd_topal.c if (cquantize->transparentIsPresent) cquantize 1973 ext/gd/libgd/gd_topal.c if (cquantize->opaqueIsPresent) cquantize 2044 ext/gd/libgd/gd_topal.c if (cquantize->histogram[i]) cquantize 2046 ext/gd/libgd/gd_topal.c gdFree (cquantize->histogram[i]); cquantize 2049 ext/gd/libgd/gd_topal.c if (cquantize->histogram) cquantize 2051 ext/gd/libgd/gd_topal.c gdFree (cquantize->histogram); cquantize 2053 ext/gd/libgd/gd_topal.c if (cquantize->fserrors) cquantize 2055 ext/gd/libgd/gd_topal.c gdFree (cquantize->fserrors); cquantize 2057 ext/gd/libgd/gd_topal.c if (cquantize->error_limiter_storage) cquantize 2059 ext/gd/libgd/gd_topal.c gdFree (cquantize->error_limiter_storage); cquantize 2061 ext/gd/libgd/gd_topal.c if (cquantize) cquantize 2063 ext/gd/libgd/gd_topal.c gdFree (cquantize);