Lines Matching refs:dst

168 static int gdAlphaOverlayColor(int src, int dst, int max);
2254 void gdImageCopy (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, in… in gdImageCopy() argument
2262 if (dst->trueColor) { in gdImageCopy()
2273 gdImageSetPixel (dst, dstX + x, dstY + y, c); in gdImageCopy()
2283 …gdImageSetPixel(dst, dstX + x, dstY + y, gdTrueColorAlpha(src->red[c], src->green[c], src->blue[c]… in gdImageCopy()
2312 …mapTo = gdImageColorResolveAlpha (dst, gdTrueColorGetRed (c), gdTrueColorGetGreen (c), gdTrueColor… in gdImageCopy()
2315 if (dst == src) { in gdImageCopy()
2319 nc = gdImageColorResolveAlpha (dst, src->red[c], src->green[c], src->blue[c], src->alpha[c]); in gdImageCopy()
2326 gdImageSetPixel (dst, tox, toy, mapTo); in gdImageCopy()
2335 void gdImageCopyMerge (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int … in gdImageCopyMerge() argument
2354 if (dst == src) { in gdImageCopyMerge()
2357 dc = gdImageGetPixel(dst, tox, toy); in gdImageCopyMerge()
2359 … ncR = (int)(gdImageRed (src, c) * (pct / 100.0) + gdImageRed (dst, dc) * ((100 - pct) / 100.0)); in gdImageCopyMerge()
2360 …ncG = (int)(gdImageGreen (src, c) * (pct / 100.0) + gdImageGreen (dst, dc) * ((100 - pct) / 100.0)… in gdImageCopyMerge()
2361 … ncB = (int)(gdImageBlue (src, c) * (pct / 100.0) + gdImageBlue (dst, dc) * ((100 - pct) / 100.0)); in gdImageCopyMerge()
2364 nc = gdImageColorResolve (dst, ncR, ncG, ncB); in gdImageCopyMerge()
2366 gdImageSetPixel (dst, tox, toy, nc); in gdImageCopyMerge()
2375 void gdImageCopyMergeGray (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, … in gdImageCopyMergeGray() argument
2400 if (dst == src && pct == 100) { in gdImageCopyMergeGray()
2403 dc = gdImageGetPixel(dst, tox, toy); in gdImageCopyMergeGray()
2404 …g = (0.29900f * gdImageRed(dst, dc)) + (0.58700f * gdImageGreen(dst, dc)) + (0.11400f * gdImageBlu… in gdImageCopyMergeGray()
2412 nc = gdImageColorExact(dst, ncR, ncG, ncB); in gdImageCopyMergeGray()
2415 nc = gdImageColorAllocate(dst, ncR, ncG, ncB); in gdImageCopyMergeGray()
2418 nc = gdImageColorClosest(dst, ncR, ncG, ncB); in gdImageCopyMergeGray()
2422 gdImageSetPixel(dst, tox, toy, nc); in gdImageCopyMergeGray()
2429 void gdImageCopyResized (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, in… in gdImageCopyResized() argument
2470 if (dst->trueColor) { in gdImageCopyResized()
2499 mapTo = gdImageColorResolveAlpha(dst, gdTrueColorGetRed(c), in gdImageCopyResized()
2507 if (dst == src) { in gdImageCopyResized()
2512 nc = gdImageColorResolveAlpha(dst, gdImageRed(src, c), in gdImageCopyResized()
2523 gdImageSetPixel (dst, tox, toy, mapTo); in gdImageCopyResized()
2539 void gdImageCopyResampled (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, … in gdImageCopyResampled() argument
2544 if (!dst->trueColor) { in gdImageCopyResampled()
2545 gdImageCopyResized (dst, src, dstX, dstY, srcX, srcY, dstW, dstH, srcW, srcH); in gdImageCopyResampled()
2636 gdImageSetPixel(dst, x, y, gdTrueColorAlpha ((int) red, (int) green, (int) blue, (int) alpha)); in gdImageCopyResampled()
2943 int gdAlphaBlend (int dst, int src) { in gdAlphaBlend() argument
2954 dst_alpha = gdTrueColorGetAlpha(dst); in gdAlphaBlend()
2956 return dst; in gdAlphaBlend()
2975 + gdTrueColorGetRed(dst) * dst_weight) / tot_weight; in gdAlphaBlend()
2977 + gdTrueColorGetGreen(dst) * dst_weight) / tot_weight; in gdAlphaBlend()
2979 + gdTrueColorGetBlue(dst) * dst_weight) / tot_weight; in gdAlphaBlend()
2998 int gdLayerOverlay (int dst, int src) in gdLayerOverlay() argument
3001 a1 = gdAlphaMax - gdTrueColorGetAlpha(dst); in gdLayerOverlay()
3004 (gdAlphaOverlayColor( gdTrueColorGetRed(src), gdTrueColorGetRed(dst), gdRedMax ) << 16) + in gdLayerOverlay()
3005 (gdAlphaOverlayColor( gdTrueColorGetGreen(src), gdTrueColorGetGreen(dst), gdGreenMax ) << 8) + in gdLayerOverlay()
3006 (gdAlphaOverlayColor( gdTrueColorGetBlue(src), gdTrueColorGetBlue(dst), gdBlueMax )) in gdLayerOverlay()
3010 static int gdAlphaOverlayColor (int src, int dst, int max ) in gdAlphaOverlayColor() argument
3021 dst = dst << 1; in gdAlphaOverlayColor()
3022 if( dst > max ) { in gdAlphaOverlayColor()
3024 return dst + (src << 1) - (dst * src / max) - max; in gdAlphaOverlayColor()
3027 return dst * src / max; in gdAlphaOverlayColor()
3031 int gdLayerMultiply (int dst, int src) in gdLayerMultiply() argument
3035 a2 = gdAlphaMax - gdTrueColorGetAlpha(dst); in gdLayerMultiply()
3038 r2 = gdRedMax - (a2 * (gdRedMax - gdTrueColorGetRed(dst))) / gdAlphaMax; in gdLayerMultiply()
3040 g2 = gdGreenMax - (a2 * (gdGreenMax - gdTrueColorGetGreen(dst))) / gdAlphaMax; in gdLayerMultiply()
3042 b2 = gdBlueMax - (a2 * (gdBlueMax - gdTrueColorGetBlue(dst))) / gdAlphaMax ; in gdLayerMultiply()