Lines Matching refs:dst
97 static int gdLayerOverlay(int dst, int src);
98 static int gdAlphaOverlayColor(int src, int dst, int max);
2151 void gdImageCopy (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, in… in gdImageCopy() argument
2159 if (dst->trueColor) { in gdImageCopy()
2169 gdImageSetPixel (dst, dstX + x, dstY + y, c); in gdImageCopy()
2178 …gdImageSetPixel(dst, dstX + x, dstY + y, gdTrueColorAlpha(src->red[c], src->green[c], src->blue[c]… in gdImageCopy()
2196 …nc = gdImageColorResolveAlpha(dst, gdTrueColorGetRed(c), gdTrueColorGetGreen(c), gdTrueColorGetBlu… in gdImageCopy()
2198 gdImageSetPixel(dst, tox, toy, nc); in gdImageCopy()
2227 …mapTo = gdImageColorResolveAlpha (dst, gdTrueColorGetRed (c), gdTrueColorGetGreen (c), gdTrueColor… in gdImageCopy()
2230 if (dst == src) { in gdImageCopy()
2234 nc = gdImageColorResolveAlpha (dst, src->red[c], src->green[c], src->blue[c], src->alpha[c]); in gdImageCopy()
2241 gdImageSetPixel (dst, tox, toy, mapTo); in gdImageCopy()
2250 void gdImageCopyMerge (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int … in gdImageCopyMerge() argument
2269 if (dst == src) { in gdImageCopyMerge()
2272 dc = gdImageGetPixel(dst, tox, toy); in gdImageCopyMerge()
2274 … ncR = (int)(gdImageRed (src, c) * (pct / 100.0) + gdImageRed (dst, dc) * ((100 - pct) / 100.0)); in gdImageCopyMerge()
2275 …ncG = (int)(gdImageGreen (src, c) * (pct / 100.0) + gdImageGreen (dst, dc) * ((100 - pct) / 100.0)… in gdImageCopyMerge()
2276 … ncB = (int)(gdImageBlue (src, c) * (pct / 100.0) + gdImageBlue (dst, dc) * ((100 - pct) / 100.0)); in gdImageCopyMerge()
2279 nc = gdImageColorResolve (dst, ncR, ncG, ncB); in gdImageCopyMerge()
2281 gdImageSetPixel (dst, tox, toy, nc); in gdImageCopyMerge()
2290 void gdImageCopyMergeGray (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, … in gdImageCopyMergeGray() argument
2315 if (dst == src && pct == 100) { in gdImageCopyMergeGray()
2318 dc = gdImageGetPixel(dst, tox, toy); in gdImageCopyMergeGray()
2319 …g = (0.29900f * gdImageRed(dst, dc)) + (0.58700f * gdImageGreen(dst, dc)) + (0.11400f * gdImageBlu… in gdImageCopyMergeGray()
2327 nc = gdImageColorExact(dst, ncR, ncG, ncB); in gdImageCopyMergeGray()
2330 nc = gdImageColorAllocate(dst, ncR, ncG, ncB); in gdImageCopyMergeGray()
2333 nc = gdImageColorClosest(dst, ncR, ncG, ncB); in gdImageCopyMergeGray()
2337 gdImageSetPixel(dst, tox, toy, nc); in gdImageCopyMergeGray()
2344 void gdImageCopyResized (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, in… in gdImageCopyResized() argument
2388 if (dst->trueColor) { in gdImageCopyResized()
2417 mapTo = gdImageColorResolveAlpha(dst, gdTrueColorGetRed(c), in gdImageCopyResized()
2425 if (dst == src) { in gdImageCopyResized()
2430 nc = gdImageColorResolveAlpha(dst, gdImageRed(src, c), in gdImageCopyResized()
2441 gdImageSetPixel (dst, tox, toy, mapTo); in gdImageCopyResized()
2457 void gdImageCopyResampled (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, … in gdImageCopyResampled() argument
2462 if (!dst->trueColor) { in gdImageCopyResampled()
2463 gdImageCopyResized (dst, src, dstX, dstY, srcX, srcY, dstW, dstH, srcW, srcH); in gdImageCopyResampled()
2554 gdImageSetPixel(dst, x, y, gdTrueColorAlpha ((int) red, (int) green, (int) blue, (int) alpha)); in gdImageCopyResampled()
2855 gdAlphaBlendOld (int dst, int src) in gdAlphaBlendOld() argument
2862 gdTrueColorGetAlpha (dst)) / gdAlphaMax) << 24) + in gdAlphaBlendOld()
2866 gdTrueColorGetRed (dst)) / gdAlphaMax) << 16) + in gdAlphaBlendOld()
2870 gdTrueColorGetGreen (dst)) / gdAlphaMax) << 8) + in gdAlphaBlendOld()
2874 gdTrueColorGetBlue (dst)) / gdAlphaMax)); in gdAlphaBlendOld()
2877 int gdAlphaBlend (int dst, int src) { in gdAlphaBlend() argument
2888 dst_alpha = gdTrueColorGetAlpha(dst); in gdAlphaBlend()
2890 return dst; in gdAlphaBlend()
2909 + gdTrueColorGetRed(dst) * dst_weight) / tot_weight; in gdAlphaBlend()
2911 + gdTrueColorGetGreen(dst) * dst_weight) / tot_weight; in gdAlphaBlend()
2913 + gdTrueColorGetBlue(dst) * dst_weight) / tot_weight; in gdAlphaBlend()
2939 static int gdLayerOverlay (int dst, int src) in gdLayerOverlay() argument
2942 a1 = gdAlphaMax - gdTrueColorGetAlpha(dst); in gdLayerOverlay()
2945 (gdAlphaOverlayColor( gdTrueColorGetRed(src), gdTrueColorGetRed(dst), gdRedMax ) << 16) + in gdLayerOverlay()
2946 (gdAlphaOverlayColor( gdTrueColorGetGreen(src), gdTrueColorGetGreen(dst), gdGreenMax ) << 8) + in gdLayerOverlay()
2947 (gdAlphaOverlayColor( gdTrueColorGetBlue(src), gdTrueColorGetBlue(dst), gdBlueMax )) in gdLayerOverlay()
2951 static int gdAlphaOverlayColor (int src, int dst, int max ) in gdAlphaOverlayColor() argument
2962 dst = dst << 1; in gdAlphaOverlayColor()
2963 if( dst > max ) { in gdAlphaOverlayColor()
2965 return dst + (src << 1) - (dst * src / max) - max; in gdAlphaOverlayColor()
2968 return dst * src / max; in gdAlphaOverlayColor()