Home
last modified time | relevance | path

Searched refs:gdAlphaMax (Results 1 – 7 of 7) sorted by relevance

/PHP-7.4/ext/gd/libgd/
H A Dgdft.c608 gdAlphaMax - (gdTrueColorGetAlpha (fg) * pixel / NUMCOLORS));
655 level = (bitmap.buffer[pc] * gdAlphaMax / (bitmap.num_grays - 1));
670 level = level * (gdAlphaMax - gdTrueColorGetAlpha(fg)) / gdAlphaMax;
672 level = gdAlphaMax - level;
682 if (level < (gdAlphaMax / 2)) {
H A Dgd.c2628 alpha = alpha >= gdAlphaMax+0.5 ? gdAlphaMax : alpha+0.5; in gdImageCopyResampled()
2965 alpha = src_alpha * dst_alpha / gdAlphaMax; in gdAlphaBlend()
2994 a1 = gdAlphaMax - gdTrueColorGetAlpha(dst); in gdLayerOverlay()
2995 a2 = gdAlphaMax - gdTrueColorGetAlpha(src); in gdLayerOverlay()
2996 return ( ((gdAlphaMax - a1*a2/gdAlphaMax) << 24) + in gdLayerOverlay()
3027 a1 = gdAlphaMax - gdTrueColorGetAlpha(src); in gdLayerMultiply()
3028 a2 = gdAlphaMax - gdTrueColorGetAlpha(dst); in gdLayerMultiply()
3030 r1 = gdRedMax - (a1 * (gdRedMax - gdTrueColorGetRed(src))) / gdAlphaMax; in gdLayerMultiply()
3037 a1 = gdAlphaMax - a1; in gdLayerMultiply()
3038 a2 = gdAlphaMax - a2; in gdLayerMultiply()
[all …]
H A Dgd_webp.c89 register uint8_t a = gdAlphaMax - (*(p++) >> 1); in gdImageCreateFromWebpCtx()
H A Dgd_tga.c121 …itmap_caret + 2], tga->bitmap[bitmap_caret + 1], tga->bitmap[bitmap_caret], gdAlphaMax - (a >> 1)); in gdImageCreateFromTgaCtx()
H A Dgd_png.c265 im->alpha[i] = gdAlphaMax - (trans[i] >> 1); in gdImageCreateFromPngCtx()
405 register png_byte a = gdAlphaMax - (row_pointers[h][boffset++] >> 1); in gdImageCreateFromPngCtx()
H A Dgd_interpolation.c644 const int dst_weight = (gdAlphaTransparent - dst_alpha) * src_alpha / gdAlphaMax; in _color_blend()
647 alpha = src_alpha * dst_alpha / gdAlphaMax; in _color_blend()
729 a = CLAMP(a, 0, gdAlphaMax); in getPixelInterpolateWeight()
818 new_a = CLAMP(new_a, 0, gdAlphaMax); in getPixelInterpolated()
H A Dgd.h79 #define gdAlphaMax 127 macro

Completed in 83 milliseconds