Searched refs:colorsTotal (Results 1 – 10 of 10) sorted by relevance
/PHP-7.0/ext/gd/libgd/ |
H A D | gd_color.c | 32 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 D | gd_gd.c | 39 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 D | gd_png.c | 336 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 D | gdtest.c | 51 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 D | gd_topal.c | 825 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 D | gd_gif_in.c | 267 for (i=((im->colorsTotal-1)); (i>=0); i--) { in gdImageCreateFromGifCtx() 269 im->colorsTotal--; in gdImageCreateFromGifCtx() 274 if (!im->colorsTotal) { in gdImageCreateFromGifCtx() 584 im->colorsTotal = gdMaxColors; in ReadImage()
|
H A D | gd.c | 155 im->colorsTotal = 0; in gdImageCreate() 279 for (i = 0; i < im->colorsTotal; i++) { in gdImageColorClosestAlpha() 500 ct = im->colorsTotal; in gdImageColorAllocateAlpha() 504 im->colorsTotal++; in gdImageColorAllocateAlpha() 574 op = im->colorsTotal; in gdImageColorResolveAlpha() 579 im->colorsTotal++; in gdImageColorResolveAlpha() 604 if((color >= im->colorsTotal)) { in gdImageColorTransparent() 648 for (i = from->colorsTotal; i < to->colorsTotal; i++) { in gdImagePaletteCopy() 652 to->colorsTotal = from->colorsTotal; in gdImagePaletteCopy() 1754 if ((color > (im->colorsTotal - 1)) || (border > (im->colorsTotal - 1)) || (color < 0)) { in gdImageFillToBorder() [all …]
|
H A D | gd.h | 177 int colorsTotal; member 728 #define gdImageColorsTotal(im) ((im)->colorsTotal)
|
H A D | gd_gd2.c | 205 GD2_DBG(php_gd_error("Image palette completed: %d colours", im->colorsTotal)); in _gd2CreateFromFile() 481 GD2_DBG(php_gd_error("Image palette completed: %d colours", im->colorsTotal)); in gdImageCreateFromGd2PartCtx()
|
H A D | gd_gif_out.c | 132 BitsPerPixel = colorstobpp(tim->colorsTotal); in gdImageGifCtx()
|
Completed in 37 milliseconds