Lines Matching refs:src

616 static inline int _color_blend (const int dst, const int src)  in _color_blend()  argument
618 const int src_alpha = gdTrueColorGetAlpha(src); in _color_blend()
621 return src; in _color_blend()
627 return src; in _color_blend()
636 red = (gdTrueColorGetRed(src) * src_weight in _color_blend()
638 green = (gdTrueColorGetGreen(src) * src_weight in _color_blend()
640 blue = (gdTrueColorGetBlue(src) * src_weight in _color_blend()
648 static inline int _setEdgePixel(const gdImagePtr src, unsigned int x, unsigned int y, gdFixed cover… in _setEdgePixel() argument
651 register int c = src->tpixels[y][x]; in _setEdgePixel()
1095 gdImagePtr gdImageScaleTwoPass(const gdImagePtr src, const unsigned int src_width, const unsigned i… in gdImageScaleTwoPass() argument
1105 if (!src->trueColor) { in gdImageScaleTwoPass()
1106 gdImagePaletteToTrueColor(src); in gdImageScaleTwoPass()
1113 gdImageSetInterpolationMethod(tmp_im, src->interpolation_id); in gdImageScaleTwoPass()
1114 _gdScaleHoriz(src, src_width, src_height, tmp_im, new_width, src_height); in gdImageScaleTwoPass()
1121 gdImageSetInterpolationMethod(dst, src->interpolation_id); in gdImageScaleTwoPass()
1128 gdImagePtr Scale(const gdImagePtr src, const unsigned int src_width, const unsigned int src_height,… in Scale() argument
1140 gdImageSetInterpolationMethod(tmp_im, src->interpolation_id); in Scale()
1142 _gdScaleHoriz(src, src_width, src_height, tmp_im, new_width, src_height); in Scale()
1460 gdImagePtr gdImageScaleBicubicFixed(gdImagePtr src, const unsigned int width, const unsigned int he… in gdImageScaleBicubicFixed() argument
1464 const int src_w = gdImageSX(src); in gdImageScaleBicubicFixed()
1465 const int src_h = gdImageSY(src); in gdImageScaleBicubicFixed()
1486 if (src->trueColor == 0) { in gdImageScaleBicubicFixed()
1487 gdImagePaletteToTrueColor(src); in gdImageScaleBicubicFixed()
1658 c = src->tpixels[*(src_offset_y + _k)][*(src_offset_x + _k)]; in gdImageScaleBicubicFixed()
1685 gdImagePtr gdImageScale(const gdImagePtr src, const unsigned int new_width, const unsigned int new_… in gdImageScale() argument
1689 if (src == NULL || src->interpolation_id < 0 || src->interpolation_id > GD_METHOD_COUNT) { in gdImageScale()
1697 switch (src->interpolation_id) { in gdImageScale()
1700 im_scaled = gdImageScaleNearestNeighbour(src, new_width, new_height); in gdImageScale()
1704 im_scaled = gdImageScaleBilinear(src, new_width, new_height); in gdImageScale()
1708 im_scaled = gdImageScaleBicubicFixed(src, new_width, new_height); in gdImageScale()
1713 if (src->interpolation == NULL) { in gdImageScale()
1716 im_scaled = gdImageScaleTwoPass(src, src->sx, src->sy, new_width, new_height); in gdImageScale()
1722 static int gdRotatedImageSize(gdImagePtr src, const float angle, gdRectPtr bbox) in gdRotatedImageSize() argument
1730 src_area.width = gdImageSX(src); in gdRotatedImageSize()
1731 src_area.height = gdImageSY(src); in gdRotatedImageSize()
1739 gdImagePtr gdImageRotateNearestNeighbour(gdImagePtr src, const float degrees, const int bgColor) in gdImageRotateNearestNeighbour() argument
1742 const int src_w = gdImageSX(src); in gdImageRotateNearestNeighbour()
1743 const int src_h = gdImageSY(src); in gdImageRotateNearestNeighbour()
1757 gdRotatedImageSize(src, degrees, &bbox); in gdImageRotateNearestNeighbour()
1783 dst->tpixels[dst_offset_y][dst_offset_x++] = src->tpixels[m][n]; in gdImageRotateNearestNeighbour()
1796 gdImagePtr gdImageRotateGeneric(gdImagePtr src, const float degrees, const int bgColor) in gdImageRotateGeneric() argument
1800 const int src_w = gdImageSX(src); in gdImageRotateGeneric()
1801 const int src_h = gdImageSY(src); in gdImageRotateGeneric()
1826 gdRotatedImageSize(src, degrees, &bbox); in gdImageRotateGeneric()
1851 register int c = getPixelInterpolated(src, n, m, bgColor); in gdImageRotateGeneric()
1856 dst->tpixels[dst_offset_y][dst_offset_x++] = getPixelInterpolated(src, n, m, bgColor); in gdImageRotateGeneric()
1864 gdImagePtr gdImageRotateBilinear(gdImagePtr src, const float degrees, const int bgColor) in gdImageRotateBilinear() argument
1867 const unsigned int src_w = gdImageSX(src); in gdImageRotateBilinear()
1868 const unsigned int src_h = gdImageSY(src); in gdImageRotateBilinear()
1883 gdRotatedImageSize(src, degrees, &bbox); in gdImageRotateBilinear()
1924 const int pixel1 = src->tpixels[src_offset_y][src_offset_x]; in gdImageRotateBilinear()
1936 pixel2 = src->tpixels[src_offset_y][src_offset_x + 1]; in gdImageRotateBilinear()
1937 pixel3 = src->tpixels[src_offset_y + 1][src_offset_x]; in gdImageRotateBilinear()
1938 pixel4 = src->tpixels[src_offset_y + 1][src_offset_x + 1]; in gdImageRotateBilinear()
1979 gdImagePtr gdImageRotateBicubicFixed(gdImagePtr src, const float degrees, const int bgColor) in gdImageRotateBicubicFixed() argument
1982 const int src_w = gdImageSX(src); in gdImageRotateBicubicFixed()
1983 const int src_h = gdImageSY(src); in gdImageRotateBicubicFixed()
2002 gdRotatedImageSize(src, degrees, &bbox); in gdImageRotateBicubicFixed()
2209 c = src->tpixels[src_offset_y[_k]][src_offset_x[_k]]; in gdImageRotateBicubicFixed()
2213 c = src->tpixels[src_offset_y[_k]][src_offset_x[_k]]; in gdImageRotateBicubicFixed()
2245 gdImagePtr gdImageRotateInterpolated(const gdImagePtr src, const float angle, int bgcolor) in gdImageRotateInterpolated() argument
2259 if (src->trueColor == 0) { in gdImageRotateInterpolated()
2261 …bgcolor = gdTrueColorAlpha(src->red[bgcolor], src->green[bgcolor], src->blue[bgcolor], src->alpha… in gdImageRotateInterpolated()
2263 gdImagePaletteToTrueColor(src); in gdImageRotateInterpolated()
2269 gdImagePtr dst = gdImageCreateTrueColor(src->sx, src->sy); in gdImageRotateInterpolated()
2273 dst->transparent = src->transparent; in gdImageRotateInterpolated()
2277 gdImageCopy(dst, src, 0,0,0,0,src->sx,src->sy); in gdImageRotateInterpolated()
2282 return gdImageRotate90(src, 0); in gdImageRotateInterpolated()
2285 return gdImageRotate180(src, 0); in gdImageRotateInterpolated()
2288 return gdImageRotate270(src, 0); in gdImageRotateInterpolated()
2291 if (src == NULL || src->interpolation_id < 1 || src->interpolation_id > GD_METHOD_COUNT) { in gdImageRotateInterpolated()
2295 switch (src->interpolation_id) { in gdImageRotateInterpolated()
2297 return gdImageRotateNearestNeighbour(src, angle, bgcolor); in gdImageRotateInterpolated()
2301 return gdImageRotateBilinear(src, angle, bgcolor); in gdImageRotateInterpolated()
2305 return gdImageRotateBicubicFixed(src, angle, bgcolor); in gdImageRotateInterpolated()
2309 return gdImageRotateGeneric(src, angle, bgcolor); in gdImageRotateInterpolated()
2358 const gdImagePtr src, in gdTransformAffineGetImage() argument
2370 area_full.width = gdImageSX(src); in gdTransformAffineGetImage()
2371 area_full.height = gdImageSY(src); in gdTransformAffineGetImage()
2383 if (!src->trueColor) { in gdTransformAffineGetImage()
2384 gdImagePaletteToTrueColor(src); in gdTransformAffineGetImage()
2395 src, in gdTransformAffineGetImage()
2425 const gdImagePtr src, in gdTransformAffineCopy() argument
2442 …if (src->interpolation_id == GD_BILINEAR_FIXED || src->interpolation_id == GD_BICUBIC_FIXED || src in gdTransformAffineCopy()
2443 interpolation_id_bak = src->interpolation_id; in gdTransformAffineCopy()
2444 interpolation_bak = src->interpolation; in gdTransformAffineCopy()
2446 gdImageSetInterpolationMethod(src, GD_BICUBIC); in gdTransformAffineCopy()
2450 gdImageClipRectangle(src, src_region); in gdTransformAffineCopy()
2453 || src_region->width < gdImageSX(src) in gdTransformAffineCopy()
2454 || src_region->height < gdImageSY(src)) { in gdTransformAffineCopy()
2457 gdImageGetClip(src, &backup_clipx1, &backup_clipy1, in gdTransformAffineCopy()
2460 gdImageSetClip(src, src_region->x, src_region->y, in gdTransformAffineCopy()
2467 gdImageSetClip(src, backup_clipx1, backup_clipy1, in gdTransformAffineCopy()
2470 gdImageSetInterpolationMethod(src, interpolation_id_bak); in gdTransformAffineCopy()
2491 …gdImageSetPixel(dst, dst_x + x, dst_y + y, getPixelInterpolated(src, src_offset_x + src_pt.x, src_… in gdTransformAffineCopy()
2509 *(dst_p++) = getPixelInterpolated(src, src_offset_x + src_pt.x, src_offset_y + src_pt.y, -1); in gdTransformAffineCopy()
2516 gdImageSetClip(src, backup_clipx1, backup_clipy1, in gdTransformAffineCopy()
2520 gdImageSetInterpolationMethod(src, interpolation_id_bak); in gdTransformAffineCopy()
2537 int gdTransformAffineBoundingBox(gdRectPtr src, const double affine[6], gdRectPtr bbox) in gdTransformAffineBoundingBox() argument
2544 extent[1].x=(double) src->width; in gdTransformAffineBoundingBox()
2546 extent[2].x=(double) src->width; in gdTransformAffineBoundingBox()
2547 extent[2].y=(double) src->height; in gdTransformAffineBoundingBox()
2549 extent[3].y=(double) src->height; in gdTransformAffineBoundingBox()