Lines Matching refs:dst

168 static int gdAlphaOverlayColor(int src, int dst, int max);
2256 void gdImageCopy (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, in… in gdImageCopy() argument
2264 if (dst->trueColor) { in gdImageCopy()
2275 gdImageSetPixel (dst, dstX + x, dstY + y, c); in gdImageCopy()
2285 …gdImageSetPixel(dst, dstX + x, dstY + y, gdTrueColorAlpha(src->red[c], src->green[c], src->blue[c]… in gdImageCopy()
2314 …mapTo = gdImageColorResolveAlpha (dst, gdTrueColorGetRed (c), gdTrueColorGetGreen (c), gdTrueColor… in gdImageCopy()
2317 if (dst == src) { in gdImageCopy()
2321 nc = gdImageColorResolveAlpha (dst, src->red[c], src->green[c], src->blue[c], src->alpha[c]); in gdImageCopy()
2328 gdImageSetPixel (dst, tox, toy, mapTo); in gdImageCopy()
2337 void gdImageCopyMerge (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int … in gdImageCopyMerge() argument
2356 if (dst == src) { in gdImageCopyMerge()
2359 dc = gdImageGetPixel(dst, tox, toy); in gdImageCopyMerge()
2361 … ncR = (int)(gdImageRed (src, c) * (pct / 100.0) + gdImageRed (dst, dc) * ((100 - pct) / 100.0)); in gdImageCopyMerge()
2362 …ncG = (int)(gdImageGreen (src, c) * (pct / 100.0) + gdImageGreen (dst, dc) * ((100 - pct) / 100.0)… in gdImageCopyMerge()
2363 … ncB = (int)(gdImageBlue (src, c) * (pct / 100.0) + gdImageBlue (dst, dc) * ((100 - pct) / 100.0)); in gdImageCopyMerge()
2366 nc = gdImageColorResolve (dst, ncR, ncG, ncB); in gdImageCopyMerge()
2368 gdImageSetPixel (dst, tox, toy, nc); in gdImageCopyMerge()
2377 void gdImageCopyMergeGray (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, … in gdImageCopyMergeGray() argument
2402 if (dst == src && pct == 100) { in gdImageCopyMergeGray()
2405 dc = gdImageGetPixel(dst, tox, toy); in gdImageCopyMergeGray()
2406 …g = (0.29900f * gdImageRed(dst, dc)) + (0.58700f * gdImageGreen(dst, dc)) + (0.11400f * gdImageBlu… in gdImageCopyMergeGray()
2414 nc = gdImageColorExact(dst, ncR, ncG, ncB); in gdImageCopyMergeGray()
2417 nc = gdImageColorAllocate(dst, ncR, ncG, ncB); in gdImageCopyMergeGray()
2420 nc = gdImageColorClosest(dst, ncR, ncG, ncB); in gdImageCopyMergeGray()
2424 gdImageSetPixel(dst, tox, toy, nc); in gdImageCopyMergeGray()
2431 void gdImageCopyResized (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, in… in gdImageCopyResized() argument
2472 if (dst->trueColor) { in gdImageCopyResized()
2501 mapTo = gdImageColorResolveAlpha(dst, gdTrueColorGetRed(c), in gdImageCopyResized()
2509 if (dst == src) { in gdImageCopyResized()
2514 nc = gdImageColorResolveAlpha(dst, gdImageRed(src, c), in gdImageCopyResized()
2525 gdImageSetPixel (dst, tox, toy, mapTo); in gdImageCopyResized()
2541 void gdImageCopyResampled (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, … in gdImageCopyResampled() argument
2546 if (!dst->trueColor) { in gdImageCopyResampled()
2547 gdImageCopyResized (dst, src, dstX, dstY, srcX, srcY, dstW, dstH, srcW, srcH); in gdImageCopyResampled()
2629 gdImageSetPixel(dst, x, y, gdTrueColorAlpha ((int)red, (int)green, (int)blue, (int)alpha)); in gdImageCopyResampled()
2936 int gdAlphaBlend (int dst, int src) { in gdAlphaBlend() argument
2947 dst_alpha = gdTrueColorGetAlpha(dst); in gdAlphaBlend()
2949 return dst; in gdAlphaBlend()
2968 + gdTrueColorGetRed(dst) * dst_weight) / tot_weight; in gdAlphaBlend()
2970 + gdTrueColorGetGreen(dst) * dst_weight) / tot_weight; in gdAlphaBlend()
2972 + gdTrueColorGetBlue(dst) * dst_weight) / tot_weight; in gdAlphaBlend()
2991 int gdLayerOverlay (int dst, int src) in gdLayerOverlay() argument
2994 a1 = gdAlphaMax - gdTrueColorGetAlpha(dst); in gdLayerOverlay()
2997 (gdAlphaOverlayColor( gdTrueColorGetRed(src), gdTrueColorGetRed(dst), gdRedMax ) << 16) + in gdLayerOverlay()
2998 (gdAlphaOverlayColor( gdTrueColorGetGreen(src), gdTrueColorGetGreen(dst), gdGreenMax ) << 8) + in gdLayerOverlay()
2999 (gdAlphaOverlayColor( gdTrueColorGetBlue(src), gdTrueColorGetBlue(dst), gdBlueMax )) in gdLayerOverlay()
3003 static int gdAlphaOverlayColor (int src, int dst, int max ) in gdAlphaOverlayColor() argument
3014 dst = dst << 1; in gdAlphaOverlayColor()
3015 if( dst > max ) { in gdAlphaOverlayColor()
3017 return dst + (src << 1) - (dst * src / max) - max; in gdAlphaOverlayColor()
3020 return dst * src / max; in gdAlphaOverlayColor()
3024 int gdLayerMultiply (int dst, int src) in gdLayerMultiply() argument
3028 a2 = gdAlphaMax - gdTrueColorGetAlpha(dst); in gdLayerMultiply()
3031 r2 = gdRedMax - (a2 * (gdRedMax - gdTrueColorGetRed(dst))) / gdAlphaMax; in gdLayerMultiply()
3033 g2 = gdGreenMax - (a2 * (gdGreenMax - gdTrueColorGetGreen(dst))) / gdAlphaMax; in gdLayerMultiply()
3035 b2 = gdBlueMax - (a2 * (gdBlueMax - gdTrueColorGetBlue(dst))) / gdAlphaMax ; in gdLayerMultiply()