Lines Matching refs:dst

616 static inline int _color_blend (const int dst, const int src)  in _color_blend()  argument
623 const int dst_alpha = gdTrueColorGetAlpha(dst); in _color_blend()
625 if( src_alpha == gdAlphaTransparent ) return dst; in _color_blend()
637 + gdTrueColorGetRed(dst) * dst_weight) / tot_weight; in _color_blend()
639 + gdTrueColorGetGreen(dst) * dst_weight) / tot_weight; in _color_blend()
641 + gdTrueColorGetBlue(dst) * dst_weight) / tot_weight; in _color_blend()
929 static inline void _gdScaleRow(gdImagePtr pSrc, unsigned int src_width, gdImagePtr dst, unsigned i… in _gdScaleRow() argument
932 int *p_dst_row = dst->tpixels[row]; in _gdScaleRow()
1029 gdImagePtr dst; in gdImageScaleTwoPass() local
1052 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageScaleTwoPass()
1053 if (dst == NULL) { in gdImageScaleTwoPass()
1057 gdImageSetInterpolationMethod(dst, src->interpolation_id); in gdImageScaleTwoPass()
1058 scale_pass_res = _gdScaleVert(tmp_im, new_width, src_height, dst, new_width, new_height); in gdImageScaleTwoPass()
1060 gdImageDestroy(dst); in gdImageScaleTwoPass()
1066 return dst; in gdImageScaleTwoPass()
1393 gdImagePtr dst; in gdImageScaleBicubicFixed() local
1410 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageScaleBicubicFixed()
1411 if (!dst) { in gdImageScaleBicubicFixed()
1415 dst->saveAlphaFlag = 1; in gdImageScaleBicubicFixed()
1432 int *dst_row = dst->tpixels[dst_offset_y]; in gdImageScaleBicubicFixed()
1602 return dst; in gdImageScaleBicubicFixed()
1673 gdImagePtr dst; in gdImageRotateNearestNeighbour() local
1685 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateNearestNeighbour()
1686 if (!dst) { in gdImageRotateNearestNeighbour()
1689 dst->saveAlphaFlag = 1; in gdImageRotateNearestNeighbour()
1703 dst->tpixels[dst_offset_y][dst_offset_x++] = src->tpixels[m][n]; in gdImageRotateNearestNeighbour()
1707 dst->tpixels[dst_offset_y][dst_offset_x++] = bgColor; in gdImageRotateNearestNeighbour()
1713 return dst; in gdImageRotateNearestNeighbour()
1731 gdImagePtr dst; in gdImageRotateGeneric() local
1750 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateGeneric()
1751 if (!dst) { in gdImageRotateGeneric()
1754 dst->saveAlphaFlag = 1; in gdImageRotateGeneric()
1768 dst->tpixels[dst_offset_y][dst_offset_x++] = bgColor; in gdImageRotateGeneric()
1774 dst->tpixels[dst_offset_y][dst_offset_x++] = _color_blend(bgColor, c); in gdImageRotateGeneric()
1776 dst->tpixels[dst_offset_y][dst_offset_x++] = getPixelInterpolated(src, n, m, bgColor); in gdImageRotateGeneric()
1781 return dst; in gdImageRotateGeneric()
1800 gdImagePtr dst; in gdImageRotateBilinear() local
1808 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateBilinear()
1809 if (dst == NULL) { in gdImageRotateBilinear()
1812 dst->saveAlphaFlag = 1; in gdImageRotateBilinear()
1887 dst->tpixels[dst_offset_y][dst_offset_x++] = gdTrueColorAlpha(red, green, blue, alpha); in gdImageRotateBilinear()
1891 dst->tpixels[dst_offset_y][dst_offset_x++] = bgColor; in gdImageRotateBilinear()
1896 return dst; in gdImageRotateBilinear()
1919 gdImagePtr dst; in gdImageRotateBicubicFixed() local
1925 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateBicubicFixed()
1927 if (dst == NULL) { in gdImageRotateBicubicFixed()
1930 dst->saveAlphaFlag = 1; in gdImageRotateBicubicFixed()
2153 dst->tpixels[dst_offset_y][dst_offset_x] = gdTrueColorAlpha(red, green, blue, alpha); in gdImageRotateBicubicFixed()
2155 dst->tpixels[dst_offset_y][dst_offset_x] = bgColor; in gdImageRotateBicubicFixed()
2162 return dst; in gdImageRotateBicubicFixed()
2189 gdImagePtr dst = gdImageCreateTrueColor(src->sx, src->sy); in gdImageRotateInterpolated() local
2190 if (dst == NULL) { in gdImageRotateInterpolated()
2193 dst->transparent = src->transparent; in gdImageRotateInterpolated()
2194 dst->saveAlphaFlag = 1; in gdImageRotateInterpolated()
2195 dst->alphaBlendingFlag = gdEffectReplace; in gdImageRotateInterpolated()
2197 gdImageCopy(dst, src, 0,0,0,0,src->sx,src->sy); in gdImageRotateInterpolated()
2198 return dst; in gdImageRotateInterpolated()
2277 int gdTransformAffineGetImage(gdImagePtr *dst, in gdTransformAffineGetImage() argument
2297 *dst = gdImageCreateTrueColor(bbox.width, bbox.height); in gdTransformAffineGetImage()
2298 if (*dst == NULL) { in gdTransformAffineGetImage()
2301 (*dst)->saveAlphaFlag = 1; in gdTransformAffineGetImage()
2311 gdImageAlphaBlending(*dst, 0); in gdTransformAffineGetImage()
2313 res = gdTransformAffineCopy(*dst, in gdTransformAffineGetImage()
2320 gdImageDestroy(*dst); in gdTransformAffineGetImage()
2321 dst = NULL; in gdTransformAffineGetImage()
2343 int gdTransformAffineCopy(gdImagePtr dst, in gdTransformAffineCopy() argument
2394 gdImageGetClip(dst, &c1x, &c1y, &c2x, &c2y); in gdTransformAffineCopy()
2405 if (dst->alphaBlendingFlag) { in gdTransformAffineCopy()
2411 …gdImageSetPixel(dst, dst_x + x, dst_y + y, getPixelInterpolated(src, src_offset_x + src_pt.x, src_… in gdTransformAffineCopy()
2417 if ((dst_y + y) < 0 || ((dst_y + y) > gdImageSY(dst) -1)) { in gdTransformAffineCopy()
2420 dst_p = dst->tpixels[dst_y + y] + dst_x; in gdTransformAffineCopy()
2426 if ((dst_x + x) < 0 || (dst_x + x) > (gdImageSX(dst) - 1)) { in gdTransformAffineCopy()