Lines Matching refs:dst

97 static int gdLayerOverlay(int dst, int src);
98 static int gdAlphaOverlayColor(int src, int dst, int max);
2163 void gdImageCopy (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, in… in gdImageCopy() argument
2171 if (dst->trueColor) { in gdImageCopy()
2181 gdImageSetPixel (dst, dstX + x, dstY + y, c); in gdImageCopy()
2190 …gdImageSetPixel(dst, dstX + x, dstY + y, gdTrueColorAlpha(src->red[c], src->green[c], src->blue[c]… in gdImageCopy()
2208 …nc = gdImageColorResolveAlpha(dst, gdTrueColorGetRed(c), gdTrueColorGetGreen(c), gdTrueColorGetBlu… in gdImageCopy()
2210 gdImageSetPixel(dst, tox, toy, nc); in gdImageCopy()
2239 …mapTo = gdImageColorResolveAlpha (dst, gdTrueColorGetRed (c), gdTrueColorGetGreen (c), gdTrueColor… in gdImageCopy()
2242 if (dst == src) { in gdImageCopy()
2246 nc = gdImageColorResolveAlpha (dst, src->red[c], src->green[c], src->blue[c], src->alpha[c]); in gdImageCopy()
2253 gdImageSetPixel (dst, tox, toy, mapTo); in gdImageCopy()
2262 void gdImageCopyMerge (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int … in gdImageCopyMerge() argument
2281 if (dst == src) { in gdImageCopyMerge()
2284 dc = gdImageGetPixel(dst, tox, toy); in gdImageCopyMerge()
2286 … ncR = (int)(gdImageRed (src, c) * (pct / 100.0) + gdImageRed (dst, dc) * ((100 - pct) / 100.0)); in gdImageCopyMerge()
2287 …ncG = (int)(gdImageGreen (src, c) * (pct / 100.0) + gdImageGreen (dst, dc) * ((100 - pct) / 100.0)… in gdImageCopyMerge()
2288 … ncB = (int)(gdImageBlue (src, c) * (pct / 100.0) + gdImageBlue (dst, dc) * ((100 - pct) / 100.0)); in gdImageCopyMerge()
2291 nc = gdImageColorResolve (dst, ncR, ncG, ncB); in gdImageCopyMerge()
2293 gdImageSetPixel (dst, tox, toy, nc); in gdImageCopyMerge()
2302 void gdImageCopyMergeGray (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, … in gdImageCopyMergeGray() argument
2327 if (dst == src && pct == 100) { in gdImageCopyMergeGray()
2330 dc = gdImageGetPixel(dst, tox, toy); in gdImageCopyMergeGray()
2331 …g = (0.29900f * gdImageRed(dst, dc)) + (0.58700f * gdImageGreen(dst, dc)) + (0.11400f * gdImageBlu… in gdImageCopyMergeGray()
2339 nc = gdImageColorExact(dst, ncR, ncG, ncB); in gdImageCopyMergeGray()
2342 nc = gdImageColorAllocate(dst, ncR, ncG, ncB); in gdImageCopyMergeGray()
2345 nc = gdImageColorClosest(dst, ncR, ncG, ncB); in gdImageCopyMergeGray()
2349 gdImageSetPixel(dst, tox, toy, nc); in gdImageCopyMergeGray()
2356 void gdImageCopyResized (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, in… in gdImageCopyResized() argument
2397 if (dst->trueColor) { in gdImageCopyResized()
2426 mapTo = gdImageColorResolveAlpha(dst, gdTrueColorGetRed(c), in gdImageCopyResized()
2434 if (dst == src) { in gdImageCopyResized()
2439 nc = gdImageColorResolveAlpha(dst, gdImageRed(src, c), in gdImageCopyResized()
2450 gdImageSetPixel (dst, tox, toy, mapTo); in gdImageCopyResized()
2466 void gdImageCopyResampled (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, … in gdImageCopyResampled() argument
2471 if (!dst->trueColor) { in gdImageCopyResampled()
2472 gdImageCopyResized (dst, src, dstX, dstY, srcX, srcY, dstW, dstH, srcW, srcH); in gdImageCopyResampled()
2563 gdImageSetPixel(dst, x, y, gdTrueColorAlpha ((int) red, (int) green, (int) blue, (int) alpha)); in gdImageCopyResampled()
2864 gdAlphaBlendOld (int dst, int src) in gdAlphaBlendOld() argument
2871 gdTrueColorGetAlpha (dst)) / gdAlphaMax) << 24) + in gdAlphaBlendOld()
2875 gdTrueColorGetRed (dst)) / gdAlphaMax) << 16) + in gdAlphaBlendOld()
2879 gdTrueColorGetGreen (dst)) / gdAlphaMax) << 8) + in gdAlphaBlendOld()
2883 gdTrueColorGetBlue (dst)) / gdAlphaMax)); in gdAlphaBlendOld()
2886 int gdAlphaBlend (int dst, int src) { in gdAlphaBlend() argument
2897 dst_alpha = gdTrueColorGetAlpha(dst); in gdAlphaBlend()
2899 return dst; in gdAlphaBlend()
2918 + gdTrueColorGetRed(dst) * dst_weight) / tot_weight; in gdAlphaBlend()
2920 + gdTrueColorGetGreen(dst) * dst_weight) / tot_weight; in gdAlphaBlend()
2922 + gdTrueColorGetBlue(dst) * dst_weight) / tot_weight; in gdAlphaBlend()
2948 static int gdLayerOverlay (int dst, int src) in gdLayerOverlay() argument
2951 a1 = gdAlphaMax - gdTrueColorGetAlpha(dst); in gdLayerOverlay()
2954 (gdAlphaOverlayColor( gdTrueColorGetRed(src), gdTrueColorGetRed(dst), gdRedMax ) << 16) + in gdLayerOverlay()
2955 (gdAlphaOverlayColor( gdTrueColorGetGreen(src), gdTrueColorGetGreen(dst), gdGreenMax ) << 8) + in gdLayerOverlay()
2956 (gdAlphaOverlayColor( gdTrueColorGetBlue(src), gdTrueColorGetBlue(dst), gdBlueMax )) in gdLayerOverlay()
2960 static int gdAlphaOverlayColor (int src, int dst, int max ) in gdAlphaOverlayColor() argument
2971 dst = dst << 1; in gdAlphaOverlayColor()
2972 if( dst > max ) { in gdAlphaOverlayColor()
2974 return dst + (src << 1) - (dst * src / max) - max; in gdAlphaOverlayColor()
2977 return dst * src / max; in gdAlphaOverlayColor()