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()
928 static inline void _gdScaleRow(gdImagePtr pSrc, unsigned int src_width, gdImagePtr dst, unsigned i… in _gdScaleRow() argument
931 int *p_dst_row = dst->tpixels[row]; in _gdScaleRow()
1027 gdImagePtr dst; in gdImageScaleTwoPass() local
1050 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageScaleTwoPass()
1051 if (dst == NULL) { in gdImageScaleTwoPass()
1055 gdImageSetInterpolationMethod(dst, src->interpolation_id); in gdImageScaleTwoPass()
1056 scale_pass_res = _gdScaleVert(tmp_im, new_width, src_height, dst, new_width, new_height); in gdImageScaleTwoPass()
1058 gdImageDestroy(dst); in gdImageScaleTwoPass()
1064 return dst; in gdImageScaleTwoPass()
1391 gdImagePtr dst; in gdImageScaleBicubicFixed() local
1408 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageScaleBicubicFixed()
1409 if (!dst) { in gdImageScaleBicubicFixed()
1413 dst->saveAlphaFlag = 1; in gdImageScaleBicubicFixed()
1430 int *dst_row = dst->tpixels[dst_offset_y]; in gdImageScaleBicubicFixed()
1600 return dst; in gdImageScaleBicubicFixed()
1671 gdImagePtr dst; in gdImageRotateNearestNeighbour() local
1683 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateNearestNeighbour()
1684 if (!dst) { in gdImageRotateNearestNeighbour()
1687 dst->saveAlphaFlag = 1; in gdImageRotateNearestNeighbour()
1701 dst->tpixels[dst_offset_y][dst_offset_x++] = src->tpixels[m][n]; in gdImageRotateNearestNeighbour()
1705 dst->tpixels[dst_offset_y][dst_offset_x++] = bgColor; in gdImageRotateNearestNeighbour()
1711 return dst; in gdImageRotateNearestNeighbour()
1728 gdImagePtr dst; in gdImageRotateGeneric() local
1747 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateGeneric()
1748 if (!dst) { in gdImageRotateGeneric()
1751 dst->saveAlphaFlag = 1; in gdImageRotateGeneric()
1765 dst->tpixels[dst_offset_y][dst_offset_x++] = bgColor; in gdImageRotateGeneric()
1770 dst->tpixels[dst_offset_y][dst_offset_x++] = _color_blend(bgColor, c); in gdImageRotateGeneric()
1772 dst->tpixels[dst_offset_y][dst_offset_x++] = getPixelInterpolated(src, n, m, bgColor); in gdImageRotateGeneric()
1777 return dst; in gdImageRotateGeneric()
1796 gdImagePtr dst; in gdImageRotateBilinear() local
1804 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateBilinear()
1805 if (dst == NULL) { in gdImageRotateBilinear()
1808 dst->saveAlphaFlag = 1; in gdImageRotateBilinear()
1883 dst->tpixels[dst_offset_y][dst_offset_x++] = gdTrueColorAlpha(red, green, blue, alpha); in gdImageRotateBilinear()
1887 dst->tpixels[dst_offset_y][dst_offset_x++] = bgColor; in gdImageRotateBilinear()
1892 return dst; in gdImageRotateBilinear()
1915 gdImagePtr dst; in gdImageRotateBicubicFixed() local
1921 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateBicubicFixed()
1923 if (dst == NULL) { in gdImageRotateBicubicFixed()
1926 dst->saveAlphaFlag = 1; in gdImageRotateBicubicFixed()
2149 dst->tpixels[dst_offset_y][dst_offset_x] = gdTrueColorAlpha(red, green, blue, alpha); in gdImageRotateBicubicFixed()
2151 dst->tpixels[dst_offset_y][dst_offset_x] = bgColor; in gdImageRotateBicubicFixed()
2158 return dst; in gdImageRotateBicubicFixed()
2185 gdImagePtr dst = gdImageCreateTrueColor(src->sx, src->sy); in gdImageRotateInterpolated() local
2186 if (dst == NULL) { in gdImageRotateInterpolated()
2189 dst->transparent = src->transparent; in gdImageRotateInterpolated()
2190 dst->saveAlphaFlag = 1; in gdImageRotateInterpolated()
2191 dst->alphaBlendingFlag = gdEffectReplace; in gdImageRotateInterpolated()
2193 gdImageCopy(dst, src, 0,0,0,0,src->sx,src->sy); in gdImageRotateInterpolated()
2194 return dst; in gdImageRotateInterpolated()
2273 int gdTransformAffineGetImage(gdImagePtr *dst, in gdTransformAffineGetImage() argument
2293 *dst = gdImageCreateTrueColor(bbox.width, bbox.height); in gdTransformAffineGetImage()
2294 if (*dst == NULL) { in gdTransformAffineGetImage()
2297 (*dst)->saveAlphaFlag = 1; in gdTransformAffineGetImage()
2307 gdImageAlphaBlending(*dst, 0); in gdTransformAffineGetImage()
2309 res = gdTransformAffineCopy(*dst, in gdTransformAffineGetImage()
2316 gdImageDestroy(*dst); in gdTransformAffineGetImage()
2317 dst = NULL; in gdTransformAffineGetImage()
2339 int gdTransformAffineCopy(gdImagePtr dst, in gdTransformAffineCopy() argument
2390 gdImageGetClip(dst, &c1x, &c1y, &c2x, &c2y); in gdTransformAffineCopy()
2404 if (dst->alphaBlendingFlag) { in gdTransformAffineCopy()
2410 …gdImageSetPixel(dst, dst_x + x, dst_y + y, getPixelInterpolated(src, src_offset_x + src_pt.x, src_… in gdTransformAffineCopy()
2416 if ((dst_y + y) < 0 || ((dst_y + y) > gdImageSY(dst) -1)) { in gdTransformAffineCopy()
2419 dst_p = dst->tpixels[dst_y + y] + dst_x; in gdTransformAffineCopy()
2425 if ((dst_x + x) < 0 || (dst_x + x) > (gdImageSX(dst) - 1)) { in gdTransformAffineCopy()