Lines Matching refs:oim
116 #define input_buf (oim->tpixels)
316 prescan_quantize (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize) in prescan_quantize() argument
323 int width = oim->sx; in prescan_quantize()
324 int num_rows = oim->sy; in prescan_quantize()
336 if ((oim->transparent >= 0) && (*ptr == oim->transparent)) in prescan_quantize()
418 update_box (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, boxptr boxp) in update_box() argument
543 median_cut (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, in median_cut() argument
634 update_box (oim, nim, cquantize, b1); in median_cut()
635 update_box (oim, nim, cquantize, b2); in median_cut()
643 compute_color (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, in compute_color() argument
703 select_colors (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, int desired_colors) in select_colors() argument
721 update_box (oim, nim, cquantize, &boxlist[0]); in select_colors()
723 numboxes = median_cut (oim, nim, cquantize, boxlist, numboxes, desired_colors); in select_colors()
726 compute_color (oim, nim, cquantize, &boxlist[i], i); in select_colors()
733 if (oim->transparent >= 0) in select_colors()
736 nim->red[nim->colorsTotal] = gdTrueColorGetRed (oim->transparent); in select_colors()
737 nim->green[nim->colorsTotal] = gdTrueColorGetGreen (oim->transparent); in select_colors()
738 nim->blue[nim->colorsTotal] = gdTrueColorGetBlue (oim->transparent); in select_colors()
825 gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, in find_nearby_colors() argument
980 gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, in find_best_colors() argument
1073 gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize, in fill_inverse_cmap() argument
1107 find_nearby_colors (oim, nim, cquantize, minc0, minc1, minc2, colorlist); in fill_inverse_cmap()
1108 find_best_colors (oim, nim, cquantize, minc0, minc1, minc2, numcolors, in fill_inverse_cmap()
1135 pass2_no_dither (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize) in pass2_no_dither() argument
1139 int width = oim->sx; in pass2_no_dither()
1140 int num_rows = oim->sy; in pass2_no_dither()
1167 if ((oim->transparent >= 0) && (oim->transparent == *inptr)) in pass2_no_dither()
1181 fill_inverse_cmap (oim, nim, cquantize, c0, c1, c2); in pass2_no_dither()
1190 pass2_fs_dither (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize) in pass2_fs_dither() argument
1204 int width = oim->sx; in pass2_fs_dither()
1205 int num_rows = oim->sy; in pass2_fs_dither()
1244 if ((oim->transparent >= 0) && (*inptr == oim->transparent)) in pass2_fs_dither()
1290 fill_inverse_cmap (oim, nim, cquantize, cur0 >> C0_SHIFT, in pass2_fs_dither()
1372 init_error_limit (gdImagePtr oim, gdImagePtr nim, my_cquantize_ptr cquantize) in init_error_limit() argument
1429 static int gdImageTrueColorToPaletteBody (gdImagePtr oim, int dither, int colorsWanted, gdImagePtr …
1445 static void free_truecolor_image_data(gdImagePtr oim) in free_truecolor_image_data() argument
1448 oim->trueColor = 0; in free_truecolor_image_data()
1450 for (i = 0; i < oim->sy; i++) in free_truecolor_image_data()
1452 gdFree (oim->tpixels[i]); in free_truecolor_image_data()
1454 gdFree (oim->tpixels); in free_truecolor_image_data()
1455 oim->tpixels = 0; in free_truecolor_image_data()
1462 static int gdImageTrueColorToPaletteBody (gdImagePtr oim, int dither, int colorsWanted, gdImagePtr … in gdImageTrueColorToPaletteBody() argument
1472 nim = gdImageCreate(oim->sx, oim->sy); in gdImageTrueColorToPaletteBody()
1478 nim = oim; in gdImageTrueColorToPaletteBody()
1480 if (!oim->trueColor) in gdImageTrueColorToPaletteBody()
1484 gdImageCopy(nim, oim, 0, 0, 0, 0, oim->sx, oim->sy); in gdImageTrueColorToPaletteBody()
1492 if (oim->transparent >= 0) in gdImageTrueColorToPaletteBody()
1501 nim->pixels = gdCalloc (sizeof (unsigned char *), oim->sy); in gdImageTrueColorToPaletteBody()
1509 nim->pixels[i] = gdCalloc (sizeof (unsigned char *), oim->sx); in gdImageTrueColorToPaletteBody()
1540 init_error_limit (oim, nim, cquantize); in gdImageTrueColorToPaletteBody()
1553 prescan_quantize (oim, nim, cquantize); in gdImageTrueColorToPaletteBody()
1555 select_colors (oim, nim, cquantize, colorsWanted); in gdImageTrueColorToPaletteBody()
1559 pass2_fs_dither (oim, nim, cquantize); in gdImageTrueColorToPaletteBody()
1563 pass2_no_dither (oim, nim, cquantize); in gdImageTrueColorToPaletteBody()
1613 if (oim->transparent >= 0) in gdImageTrueColorToPaletteBody()
1623 free_truecolor_image_data(oim); in gdImageTrueColorToPaletteBody()
1630 if (oim->trueColor) in gdImageTrueColorToPaletteBody()