Lines Matching refs:dst

628 static inline int _color_blend (const int dst, const int src)  in _color_blend()  argument
635 const int dst_alpha = gdTrueColorGetAlpha(dst); in _color_blend()
637 if( src_alpha == gdAlphaTransparent ) return dst; in _color_blend()
649 + gdTrueColorGetRed(dst) * dst_weight) / tot_weight; in _color_blend()
651 + gdTrueColorGetGreen(dst) * dst_weight) / tot_weight; in _color_blend()
653 + gdTrueColorGetBlue(dst) * dst_weight) / tot_weight; in _color_blend()
932 static inline void _gdScaleRow(gdImagePtr pSrc, unsigned int src_width, gdImagePtr dst, unsigned i… in _gdScaleRow() argument
935 int *p_dst_row = dst->tpixels[row]; in _gdScaleRow()
1031 gdImagePtr dst; in gdImageScaleTwoPass() local
1054 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageScaleTwoPass()
1055 if (dst == NULL) { in gdImageScaleTwoPass()
1059 gdImageSetInterpolationMethod(dst, src->interpolation_id); in gdImageScaleTwoPass()
1060 scale_pass_res = _gdScaleVert(tmp_im, new_width, src_height, dst, new_width, new_height); in gdImageScaleTwoPass()
1062 gdImageDestroy(dst); in gdImageScaleTwoPass()
1068 return dst; in gdImageScaleTwoPass()
1345 gdImagePtr dst; in gdImageScaleBicubicFixed() local
1362 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageScaleBicubicFixed()
1363 if (!dst) { in gdImageScaleBicubicFixed()
1367 dst->saveAlphaFlag = 1; in gdImageScaleBicubicFixed()
1384 int *dst_row = dst->tpixels[dst_offset_y]; in gdImageScaleBicubicFixed()
1554 return dst; in gdImageScaleBicubicFixed()
1625 gdImagePtr dst; in gdImageRotateNearestNeighbour() local
1637 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateNearestNeighbour()
1638 if (!dst) { in gdImageRotateNearestNeighbour()
1641 dst->saveAlphaFlag = 1; in gdImageRotateNearestNeighbour()
1655 dst->tpixels[dst_offset_y][dst_offset_x++] = src->tpixels[m][n]; in gdImageRotateNearestNeighbour()
1659 dst->tpixels[dst_offset_y][dst_offset_x++] = bgColor; in gdImageRotateNearestNeighbour()
1665 return dst; in gdImageRotateNearestNeighbour()
1682 gdImagePtr dst; in gdImageRotateGeneric() local
1701 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateGeneric()
1702 if (!dst) { in gdImageRotateGeneric()
1705 dst->saveAlphaFlag = 1; in gdImageRotateGeneric()
1719 dst->tpixels[dst_offset_y][dst_offset_x++] = bgColor; in gdImageRotateGeneric()
1724 dst->tpixels[dst_offset_y][dst_offset_x++] = _color_blend(bgColor, c); in gdImageRotateGeneric()
1726 dst->tpixels[dst_offset_y][dst_offset_x++] = getPixelInterpolated(src, n, m, bgColor); in gdImageRotateGeneric()
1731 return dst; in gdImageRotateGeneric()
1750 gdImagePtr dst; in gdImageRotateBilinear() local
1758 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateBilinear()
1759 if (dst == NULL) { in gdImageRotateBilinear()
1762 dst->saveAlphaFlag = 1; in gdImageRotateBilinear()
1837 dst->tpixels[dst_offset_y][dst_offset_x++] = gdTrueColorAlpha(red, green, blue, alpha); in gdImageRotateBilinear()
1841 dst->tpixels[dst_offset_y][dst_offset_x++] = bgColor; in gdImageRotateBilinear()
1846 return dst; in gdImageRotateBilinear()
1869 gdImagePtr dst; in gdImageRotateBicubicFixed() local
1875 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateBicubicFixed()
1877 if (dst == NULL) { in gdImageRotateBicubicFixed()
1880 dst->saveAlphaFlag = 1; in gdImageRotateBicubicFixed()
2103 dst->tpixels[dst_offset_y][dst_offset_x] = gdTrueColorAlpha(red, green, blue, alpha); in gdImageRotateBicubicFixed()
2105 dst->tpixels[dst_offset_y][dst_offset_x] = bgColor; in gdImageRotateBicubicFixed()
2112 return dst; in gdImageRotateBicubicFixed()
2139 gdImagePtr dst = gdImageCreateTrueColor(src->sx, src->sy); in gdImageRotateInterpolated() local
2140 if (dst == NULL) { in gdImageRotateInterpolated()
2143 dst->transparent = src->transparent; in gdImageRotateInterpolated()
2144 dst->saveAlphaFlag = 1; in gdImageRotateInterpolated()
2145 dst->alphaBlendingFlag = gdEffectReplace; in gdImageRotateInterpolated()
2147 gdImageCopy(dst, src, 0,0,0,0,src->sx,src->sy); in gdImageRotateInterpolated()
2148 return dst; in gdImageRotateInterpolated()
2227 int gdTransformAffineGetImage(gdImagePtr *dst, in gdTransformAffineGetImage() argument
2247 *dst = gdImageCreateTrueColor(bbox.width, bbox.height); in gdTransformAffineGetImage()
2248 if (*dst == NULL) { in gdTransformAffineGetImage()
2251 (*dst)->saveAlphaFlag = 1; in gdTransformAffineGetImage()
2261 gdImageAlphaBlending(*dst, 0); in gdTransformAffineGetImage()
2263 res = gdTransformAffineCopy(*dst, in gdTransformAffineGetImage()
2270 gdImageDestroy(*dst); in gdTransformAffineGetImage()
2271 dst = NULL; in gdTransformAffineGetImage()
2293 int gdTransformAffineCopy(gdImagePtr dst, in gdTransformAffineCopy() argument
2341 gdImageGetClip(dst, &c1x, &c1y, &c2x, &c2y); in gdTransformAffineCopy()
2355 if (dst->alphaBlendingFlag) { in gdTransformAffineCopy()
2361 …gdImageSetPixel(dst, dst_x + x, dst_y + y, getPixelInterpolated(src, src_offset_x + src_pt.x, src_… in gdTransformAffineCopy()
2370 if ((dst_y + y) < 0 || ((dst_y + y) > gdImageSY(dst) -1)) { in gdTransformAffineCopy()
2373 if (dst->trueColor) { in gdTransformAffineCopy()
2374 tdst_p = dst->tpixels[dst_y + y] + dst_x; in gdTransformAffineCopy()
2376 dst_p = dst->pixels[dst_y + y] + dst_x; in gdTransformAffineCopy()
2383 if ((dst_x + x) < 0 || (dst_x + x) > (gdImageSX(dst) - 1)) { in gdTransformAffineCopy()
2386 if (dst->trueColor) { in gdTransformAffineCopy()