Lines Matching refs:oim

130 #define input_buf (oim->tpixels)
344 prescan_quantize (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize) argument
360 int width = oim->sx;
361 int num_rows = oim->sy;
379 if ((oim->transparent >= 0) && (*ptr == oim->transparent))
467 update_box (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, boxptr boxp) argument
603 median_cut (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize,
699 update_box (oim, nim, cquantize, b1);
700 update_box (oim, nim, cquantize, b2);
710 compute_color (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, argument
784 select_colors (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, int desired_colors)
819 update_box (oim, nim, cquantize, &boxlist[0]);
821 numboxes = median_cut (oim, nim, cquantize, boxlist, numboxes, desired_colors);
824 compute_color (oim, nim, cquantize, &boxlist[i], i);
831 if (oim->transparent >= 0)
834 nim->red[nim->colorsTotal] = gdTrueColorGetRed (oim->transparent);
835 nim->green[nim->colorsTotal] = gdTrueColorGetGreen (oim->transparent);
836 nim->blue[nim->colorsTotal] = gdTrueColorGetBlue (oim->transparent);
927 gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize,
1102 gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize,
1207 gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize,
1252 find_nearby_colors (oim, nim, cquantize, minc0, minc1, minc2, colorlist);
1253 find_best_colors (oim, nim, cquantize, minc0, minc1, minc2, numcolors,
1286 pass2_no_dither (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize) argument
1290 int width = oim->sx;
1291 int num_rows = oim->sy;
1332 if ((oim->transparent >= 0) && (oim->transparent == *(inptr - 1)))
1350 fill_inverse_cmap (oim, nim, cquantize, c0, c1, c2);
1365 pass2_fs_dither (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize) argument
1395 int width = oim->sx;
1396 int num_rows = oim->sy;
1442 if ((oim->transparent >= 0) && (*inptr == oim->transparent))
1501 fill_inverse_cmap (oim, nim, cquantize, cur0 >> C0_SHIFT,
1591 init_error_limit (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize)
1757 static void gdImageTrueColorToPaletteBody (gdImagePtr oim, int dither, int colorsWanted, gdImagePtr…
1779 static void gdImageTrueColorToPaletteBody (gdImagePtr oim, int dither, int colorsWanted, gdImagePtr…
1791 nim = gdImageCreate(oim->sx, oim->sy);
1797 nim = oim;
1799 if (!oim->trueColor)
1803 gdImageCopy(nim, oim, 0, 0, 0, 0, oim->sx, oim->sy);
1811 if (oim->transparent >= 0)
1820 nim->pixels = gdCalloc (sizeof (unsigned char *), oim->sy);
1828 nim->pixels[i] = gdCalloc (sizeof (unsigned char *), oim->sx);
1927 init_error_limit (oim, nim, cquantize);
1940 prescan_quantize (oim, nim, cquantize);
1942 select_colors (oim, nim, cquantize, colorsWanted);
1946 pass2_fs_dither (oim, nim, cquantize);
1950 pass2_no_dither (oim, nim, cquantize);
2000 if (oim->transparent >= 0)
2008 oim->trueColor = 0;
2010 for (i = 0; i < oim->sy; i++)
2012 gdFree (oim->tpixels[i]);
2014 gdFree (oim->tpixels);
2015 oim->tpixels = 0;
2020 if (oim->trueColor)