Lines Matching refs:dst

168 static int gdAlphaOverlayColor(int src, int dst, int max);
2250 void gdImageCopy (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, in… in gdImageCopy() argument
2258 if (dst->trueColor) { in gdImageCopy()
2269 gdImageSetPixel (dst, dstX + x, dstY + y, c); in gdImageCopy()
2279 …gdImageSetPixel(dst, dstX + x, dstY + y, gdTrueColorAlpha(src->red[c], src->green[c], src->blue[c]… in gdImageCopy()
2308 …mapTo = gdImageColorResolveAlpha (dst, gdTrueColorGetRed (c), gdTrueColorGetGreen (c), gdTrueColor… in gdImageCopy()
2311 if (dst == src) { in gdImageCopy()
2315 nc = gdImageColorResolveAlpha (dst, src->red[c], src->green[c], src->blue[c], src->alpha[c]); in gdImageCopy()
2322 gdImageSetPixel (dst, tox, toy, mapTo); in gdImageCopy()
2331 void gdImageCopyMerge (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int … in gdImageCopyMerge() argument
2350 if (dst == src) { in gdImageCopyMerge()
2353 dc = gdImageGetPixel(dst, tox, toy); in gdImageCopyMerge()
2355 … ncR = (int)(gdImageRed (src, c) * (pct / 100.0) + gdImageRed (dst, dc) * ((100 - pct) / 100.0)); in gdImageCopyMerge()
2356 …ncG = (int)(gdImageGreen (src, c) * (pct / 100.0) + gdImageGreen (dst, dc) * ((100 - pct) / 100.0)… in gdImageCopyMerge()
2357 … ncB = (int)(gdImageBlue (src, c) * (pct / 100.0) + gdImageBlue (dst, dc) * ((100 - pct) / 100.0)); in gdImageCopyMerge()
2360 nc = gdImageColorResolve (dst, ncR, ncG, ncB); in gdImageCopyMerge()
2362 gdImageSetPixel (dst, tox, toy, nc); in gdImageCopyMerge()
2371 void gdImageCopyMergeGray (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, … in gdImageCopyMergeGray() argument
2396 if (dst == src && pct == 100) { in gdImageCopyMergeGray()
2399 dc = gdImageGetPixel(dst, tox, toy); in gdImageCopyMergeGray()
2400 …g = (0.29900f * gdImageRed(dst, dc)) + (0.58700f * gdImageGreen(dst, dc)) + (0.11400f * gdImageBlu… in gdImageCopyMergeGray()
2408 nc = gdImageColorExact(dst, ncR, ncG, ncB); in gdImageCopyMergeGray()
2411 nc = gdImageColorAllocate(dst, ncR, ncG, ncB); in gdImageCopyMergeGray()
2414 nc = gdImageColorClosest(dst, ncR, ncG, ncB); in gdImageCopyMergeGray()
2418 gdImageSetPixel(dst, tox, toy, nc); in gdImageCopyMergeGray()
2425 void gdImageCopyResized (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, in… in gdImageCopyResized() argument
2466 if (dst->trueColor) { in gdImageCopyResized()
2495 mapTo = gdImageColorResolveAlpha(dst, gdTrueColorGetRed(c), in gdImageCopyResized()
2503 if (dst == src) { in gdImageCopyResized()
2508 nc = gdImageColorResolveAlpha(dst, gdImageRed(src, c), in gdImageCopyResized()
2519 gdImageSetPixel (dst, tox, toy, mapTo); in gdImageCopyResized()
2535 void gdImageCopyResampled (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, … in gdImageCopyResampled() argument
2540 if (!dst->trueColor) { in gdImageCopyResampled()
2541 gdImageCopyResized (dst, src, dstX, dstY, srcX, srcY, dstW, dstH, srcW, srcH); in gdImageCopyResampled()
2632 gdImageSetPixel(dst, x, y, gdTrueColorAlpha ((int) red, (int) green, (int) blue, (int) alpha)); in gdImageCopyResampled()
2939 int gdAlphaBlend (int dst, int src) { in gdAlphaBlend() argument
2950 dst_alpha = gdTrueColorGetAlpha(dst); in gdAlphaBlend()
2952 return dst; in gdAlphaBlend()
2971 + gdTrueColorGetRed(dst) * dst_weight) / tot_weight; in gdAlphaBlend()
2973 + gdTrueColorGetGreen(dst) * dst_weight) / tot_weight; in gdAlphaBlend()
2975 + gdTrueColorGetBlue(dst) * dst_weight) / tot_weight; in gdAlphaBlend()
2994 int gdLayerOverlay (int dst, int src) in gdLayerOverlay() argument
2997 a1 = gdAlphaMax - gdTrueColorGetAlpha(dst); in gdLayerOverlay()
3000 (gdAlphaOverlayColor( gdTrueColorGetRed(src), gdTrueColorGetRed(dst), gdRedMax ) << 16) + in gdLayerOverlay()
3001 (gdAlphaOverlayColor( gdTrueColorGetGreen(src), gdTrueColorGetGreen(dst), gdGreenMax ) << 8) + in gdLayerOverlay()
3002 (gdAlphaOverlayColor( gdTrueColorGetBlue(src), gdTrueColorGetBlue(dst), gdBlueMax )) in gdLayerOverlay()
3006 static int gdAlphaOverlayColor (int src, int dst, int max ) in gdAlphaOverlayColor() argument
3017 dst = dst << 1; in gdAlphaOverlayColor()
3018 if( dst > max ) { in gdAlphaOverlayColor()
3020 return dst + (src << 1) - (dst * src / max) - max; in gdAlphaOverlayColor()
3023 return dst * src / max; in gdAlphaOverlayColor()
3027 int gdLayerMultiply (int dst, int src) in gdLayerMultiply() argument
3031 a2 = gdAlphaMax - gdTrueColorGetAlpha(dst); in gdLayerMultiply()
3034 r2 = gdRedMax - (a2 * (gdRedMax - gdTrueColorGetRed(dst))) / gdAlphaMax; in gdLayerMultiply()
3036 g2 = gdGreenMax - (a2 * (gdGreenMax - gdTrueColorGetGreen(dst))) / gdAlphaMax; in gdLayerMultiply()
3038 b2 = gdBlueMax - (a2 * (gdBlueMax - gdTrueColorGetBlue(dst))) / gdAlphaMax ; in gdLayerMultiply()