Lines Matching refs:new_width
1058 …signed int src_width, const unsigned int src_height, const unsigned int new_width, const unsigned … in gdImageScaleTwoPass() argument
1064 if (new_width == 0 || new_height == 0) { in gdImageScaleTwoPass()
1073 tmp_im = gdImageCreateTrueColor(new_width, src_height); in gdImageScaleTwoPass()
1078 scale_pass_res = _gdScaleHoriz(src, src_width, src_height, tmp_im, new_width, src_height); in gdImageScaleTwoPass()
1084 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageScaleTwoPass()
1090 scale_pass_res = _gdScaleVert(tmp_im, new_width, src_height, dst, new_width, new_height); in gdImageScaleTwoPass()
1109 const unsigned long new_width = MAX(1, width); in gdImageScaleNearestNeighbour() local
1111 const float dx = (float)im->sx / (float)new_width; in gdImageScaleNearestNeighbour()
1121 if (new_width == 0 || new_height == 0) { in gdImageScaleNearestNeighbour()
1125 dst_img = gdImageCreateTrueColor(new_width, new_height); in gdImageScaleNearestNeighbour()
1135 for (j=0; j<new_width; j++) { in gdImageScaleNearestNeighbour()
1146 for (j=0; j<new_width; j++) { in gdImageScaleNearestNeighbour()
1162 static gdImagePtr gdImageScaleBilinearPalette(gdImagePtr im, const unsigned int new_width, const un… in gdImageScaleBilinearPalette() argument
1164 long _width = MAX(1, new_width); in gdImageScaleBilinearPalette()
1178 if (new_width == 0 || new_height == 0) { in gdImageScaleBilinearPalette()
1182 new_img = gdImageCreateTrueColor(new_width, new_height); in gdImageScaleBilinearPalette()
1264 static gdImagePtr gdImageScaleBilinearTC(gdImagePtr im, const unsigned int new_width, const unsigne… in gdImageScaleBilinearTC() argument
1266 long dst_w = MAX(1, new_width); in gdImageScaleBilinearTC()
1279 if (new_width == 0 || new_height == 0) { in gdImageScaleBilinearTC()
1283 new_img = gdImageCreateTrueColor(new_width, new_height); in gdImageScaleBilinearTC()
1353 gdImagePtr gdImageScaleBilinear(gdImagePtr im, const unsigned int new_width, const unsigned int new… in gdImageScaleBilinear() argument
1356 return gdImageScaleBilinearTC(im, new_width, new_height); in gdImageScaleBilinear()
1358 return gdImageScaleBilinearPalette(im, new_width, new_height); in gdImageScaleBilinear()
1364 const long new_width = MAX(1, width); in gdImageScaleBicubicFixed() local
1368 const gdFixed f_dx = gd_ftofx((float)src_w / (float)new_width); in gdImageScaleBicubicFixed()
1381 if (new_width == 0 || new_height == 0) { in gdImageScaleBicubicFixed()
1392 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageScaleBicubicFixed()
1403 for (j=0; j < new_width; j++) { in gdImageScaleBicubicFixed()
1587 gdImagePtr gdImageScale(const gdImagePtr src, const unsigned int new_width, const unsigned int new_… in gdImageScale() argument
1595 if (new_width == 0 || new_height == 0) { in gdImageScale()
1602 im_scaled = gdImageScaleNearestNeighbour(src, new_width, new_height); in gdImageScale()
1606 im_scaled = gdImageScaleBilinear(src, new_width, new_height); in gdImageScale()
1610 im_scaled = gdImageScaleBicubicFixed(src, new_width, new_height); in gdImageScale()
1618 im_scaled = gdImageScaleTwoPass(src, src->sx, src->sy, new_width, new_height); in gdImageScale()
1657 int new_height, new_width; in gdImageRotateNearestNeighbour() local
1660 new_width = bbox.width; in gdImageRotateNearestNeighbour()
1663 if (new_width == 0 || new_height == 0) { in gdImageRotateNearestNeighbour()
1667 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateNearestNeighbour()
1675 for (j = 0; j < new_width; j++) { in gdImageRotateNearestNeighbour()
1677 gdFixed f_j = gd_itofx((int)j - (int)new_width/2); in gdImageRotateNearestNeighbour()
1713 int new_width, new_height; in gdImageRotateGeneric() local
1728 new_width = bbox.width; in gdImageRotateGeneric()
1731 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateGeneric()
1740 for (j = 0; j < new_width; j++) { in gdImageRotateGeneric()
1742 gdFixed f_j = gd_itofx((int)j - (int)new_width / 2); in gdImageRotateGeneric()
1769 unsigned int new_width, new_height; in gdImageRotateBilinear() local
1785 new_width = bbox.width; in gdImageRotateBilinear()
1788 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateBilinear()
1798 for (j=0; j < new_width; j++) { in gdImageRotateBilinear()
1800 const gdFixed f_j = gd_itofx((int)j - (int)new_width/2); in gdImageRotateBilinear()
1884 unsigned int new_width, new_height; in gdImageRotateBicubicFixed() local
1903 new_width = bbox.width; in gdImageRotateBicubicFixed()
1905 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateBicubicFixed()
1916 for (j=0; j < new_width; j++) { in gdImageRotateBicubicFixed()
1918 const gdFixed f_j = gd_itofx((int)j - (int)new_width/2); in gdImageRotateBicubicFixed()