Home
last modified time | relevance | path

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

/php-src/ext/gd/libgd/
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("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 Dgd_color_match.c27 if (im2->colorsTotal<1) { in gdImageColorMatch()
47 for (color=0; color<im2->colorsTotal; color++) { in gdImageColorMatch()
H A Dgd_png.c361 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 Dgd_topal.c727 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 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_gif_in.c268 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 Dgd.c171 im->colorsTotal = 0; in gdImageCreate()
508 ct = im->colorsTotal; in gdImageColorAllocateAlpha()
512 im->colorsTotal++; in gdImageColorAllocateAlpha()
582 op = im->colorsTotal; in gdImageColorResolveAlpha()
587 im->colorsTotal++; in gdImageColorResolveAlpha()
612 if((color >= im->colorsTotal)) { in gdImageColorTransparent()
656 for (i = from->colorsTotal; i < to->colorsTotal; i++) { in gdImagePaletteCopy()
660 to->colorsTotal = from->colorsTotal; in gdImagePaletteCopy()
986 dst->colorsTotal = src->colorsTotal; in gdImageClone()
1869 if ((color > (im->colorsTotal - 1)) || (border > (im->colorsTotal - 1)) || (color < 0)) { in gdImageFillToBorder()
[all …]
H A Dgd_bmp.c126 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 Dgd_gd2.c206 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 Dgd.h178 int colorsTotal; member
770 #define gdImageColorsTotal(im) ((im)->colorsTotal)
H A Dgd_gif_out.c144 BitsPerPixel = colorstobpp(tim->colorsTotal); in _gdImageGifCtx()

Completed in 49 milliseconds