Home
last modified time | relevance | path

Searched refs:colorsTotal (Results 1 – 11 of 11) sorted by relevance

/PHP-5.5/ext/gd/libgd/
H A Dgd_color.c32 if (im2->colorsTotal<1) { in gdImageColorMatch()
36 buf = (unsigned long *)safe_emalloc(sizeof(unsigned long), 5 * im2->colorsTotal, 0); in gdImageColorMatch()
37 memset( buf, 0, sizeof(unsigned long) * 5 * im2->colorsTotal ); in gdImageColorMatch()
52 for (color=0; color<im2->colorsTotal; color++) { in gdImageColorMatch()
H A Dgd_gd.c39 if (!gdGetWord(&im->colorsTotal, in)) { in _gdGetColors()
42 if (im->colorsTotal > gdMaxColors) { in _gdGetColors()
51 if (!gdGetByte(&im->colorsTotal, in)) { in _gdGetColors()
62 GD2_DBG(printf("Pallette had %d colours (T=%d)\n", im->colorsTotal, im->transparent)); in _gdGetColors()
85 for (i = 0; i < im->colorsTotal; i++) { in _gdGetColors()
218 gdPutWord(im->colorsTotal, out); in _gdPutColors()
H A Dgd_png.c336 im->colorsTotal = num_palette; in gdImageCreateFromPngCtx()
469 int colors = im->colorsTotal; in gdImagePngCtxEx()
536 if (transparent >= im->colorsTotal || (transparent >= 0 && open[transparent])) { in gdImagePngCtxEx()
546 for (i = 0; i < im->colorsTotal; ++i) { in gdImagePngCtxEx()
556 if (colors < im->colorsTotal) { in gdImagePngCtxEx()
604 for (i = 0; (i < im->colorsTotal); i++) { in gdImagePngCtxEx()
611 for (i = 0; (i < im->colorsTotal); i++) { in gdImagePngCtxEx()
626 for (i = 0; i < im->colorsTotal; i++) { in gdImagePngCtxEx()
644 for (i = 0; i < im->colorsTotal; ++i) { in gdImagePngCtxEx()
H A Dgdtest.c51 printf ("Reference File has %d Palette entries\n", ref->colorsTotal); in main()
267 printf ("[Merged Image has %d colours]\n", im2->colorsTotal); in main()
388 im1->colorsTotal, im2->colorsTotal); in CompareImages()
H A Dgd_topal.c825 nim->colorsTotal = numboxes;
838 nim->open[nim->colorsTotal] = 0;
942 int numcolors = nim->colorsTotal;
1334 *outptr++ = nim->colorsTotal;
1444 *outptr = nim->colorsTotal;
1957 for (i = 0; (i < im->colorsTotal); i++)
1965 for (i = 0; (i < im->colorsTotal); i++)
1977 for (i = 0; (i < im->colorsTotal); i++)
1985 for (i = 0; (i < im->colorsTotal); i++)
2002 nim->transparent = nim->colorsTotal;
[all …]
H A Dgd_gif_in.c261 if (!im->colorsTotal) { in gdImageCreateFromGifCtx()
268 for (i=((im->colorsTotal-1)); (i>=0); i--) { in gdImageCreateFromGifCtx()
270 im->colorsTotal--; in gdImageCreateFromGifCtx()
581 im->colorsTotal = gdMaxColors; in ReadImage()
H A Dgd.c157 im->colorsTotal = 0; in gdImageCreate()
281 for (i = 0; i < im->colorsTotal; i++) { in gdImageColorClosestAlpha()
502 ct = im->colorsTotal; in gdImageColorAllocateAlpha()
506 im->colorsTotal++; in gdImageColorAllocateAlpha()
545 for (c = 0; c < im->colorsTotal; c++) in gdImageColorResolveAlpha()
576 op = im->colorsTotal; in gdImageColorResolveAlpha()
581 im->colorsTotal++; in gdImageColorResolveAlpha()
606 if((color >= im->colorsTotal)) { in gdImageColorTransparent()
650 for (i = from->colorsTotal; i < to->colorsTotal; i++) { in gdImagePaletteCopy()
654 to->colorsTotal = from->colorsTotal; in gdImagePaletteCopy()
[all …]
H A Dgd_webp.c170 int colors = im->colorsTotal; in gdImageWebpCtx()
H A Dgd.h177 int colorsTotal; member
729 #define gdImageColorsTotal(im) ((im)->colorsTotal)
H A Dgd_gd2.c201 GD2_DBG(php_gd_error("Image palette completed: %d colours", im->colorsTotal)); in _gd2CreateFromFile()
473 GD2_DBG(php_gd_error("Image palette completed: %d colours", im->colorsTotal)); in gdImageCreateFromGd2PartCtx()
H A Dgd_gif_out.c132 BitsPerPixel = colorstobpp(tim->colorsTotal); in gdImageGifCtx()

Completed in 35 milliseconds