Searched refs:colorsTotal (Results 1 – 11 of 11) sorted by relevance
/PHP-8.3/ext/gd/libgd/ |
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("Palette 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_color_match.c | 27 if (im2->colorsTotal<1) { in gdImageColorMatch() 47 for (color=0; color<im2->colorsTotal; color++) { in gdImageColorMatch()
|
H A D | gd_png.c | 361 im->colorsTotal = num_palette; in gdImageCreateFromPngCtx() 494 int colors = im->colorsTotal; in gdImagePngCtxEx() 567 if (transparent >= im->colorsTotal || (transparent >= 0 && open[transparent])) { in gdImagePngCtxEx() 577 for (i = 0; i < im->colorsTotal; ++i) { in gdImagePngCtxEx() 587 if (colors < im->colorsTotal) { in gdImagePngCtxEx() 635 for (i = 0; (i < im->colorsTotal); i++) { in gdImagePngCtxEx() 642 for (i = 0; (i < im->colorsTotal); i++) { in gdImagePngCtxEx() 657 for (i = 0; i < im->colorsTotal; i++) { in gdImagePngCtxEx() 675 for (i = 0; i < im->colorsTotal; ++i) { in gdImagePngCtxEx()
|
H A D | gd_topal.c | 727 nim->colorsTotal = numboxes; in select_colors() 740 nim->open[nim->colorsTotal] = 0; in select_colors() 836 int numcolors = nim->colorsTotal; in find_nearby_colors() 1169 *outptr++ = nim->colorsTotal; in pass2_no_dither() 1246 *outptr = nim->colorsTotal; in pass2_fs_dither() 1570 for (i = 0; (i < im->colorsTotal); i++) in gdImageTrueColorToPaletteBody() 1578 for (i = 0; (i < im->colorsTotal); i++) in gdImageTrueColorToPaletteBody() 1590 for (i = 0; (i < im->colorsTotal); i++) in gdImageTrueColorToPaletteBody() 1598 for (i = 0; (i < im->colorsTotal); i++) in gdImageTrueColorToPaletteBody() 1615 nim->transparent = nim->colorsTotal; in gdImageTrueColorToPaletteBody() [all …]
|
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_gif_in.c | 268 for (i=((im->colorsTotal-1)); (i>=0); i--) { in gdImageCreateFromGifCtx() 270 im->colorsTotal--; in gdImageCreateFromGifCtx() 275 if (!im->colorsTotal) { in gdImageCreateFromGifCtx() 585 im->colorsTotal = gdMaxColors; in ReadImage()
|
H A D | gd.c | 201 im->colorsTotal = 0; in gdImageCreate() 538 ct = im->colorsTotal; in gdImageColorAllocateAlpha() 542 im->colorsTotal++; in gdImageColorAllocateAlpha() 581 for (c = 0; c < im->colorsTotal; c++) in gdImageColorResolveAlpha() 612 op = im->colorsTotal; in gdImageColorResolveAlpha() 617 im->colorsTotal++; in gdImageColorResolveAlpha() 642 if((color >= im->colorsTotal)) { in gdImageColorTransparent() 686 for (i = from->colorsTotal; i < to->colorsTotal; i++) { in gdImagePaletteCopy() 690 to->colorsTotal = from->colorsTotal; in gdImagePaletteCopy() 1815 if ((color > (im->colorsTotal - 1)) || (border > (im->colorsTotal - 1)) || (color < 0)) { in gdImageFillToBorder() [all …]
|
H A D | gd_bmp.c | 126 info_size += im->colorsTotal * 4; in gdImageBmpCtx() 152 gdBMPPutInt(out, im->colorsTotal); /* colours used */ in gdImageBmpCtx() 163 for(i = 0; i< im->colorsTotal; ++i) { in gdImageBmpCtx() 806 im->colorsTotal = info->numcolors; in bmp_read_1bit() 876 im->colorsTotal = info->numcolors; in bmp_read_4bit() 963 im->colorsTotal = info->numcolors; in bmp_read_8bit()
|
H A D | gd.h | 178 int colorsTotal; member 768 #define gdImageColorsTotal(im) ((im)->colorsTotal)
|
H A D | gd_gd2.c | 206 GD2_DBG(gd_error("Image palette completed: %d colours", im->colorsTotal)); in _gd2CreateFromFile() 482 GD2_DBG(gd_error("Image palette completed: %d colours", im->colorsTotal)); in gdImageCreateFromGd2PartCtx()
|
H A D | gd_gif_out.c | 144 BitsPerPixel = colorstobpp(tim->colorsTotal); in _gdImageGifCtx()
|
Completed in 39 milliseconds