Lines Matching refs:new_width
1095 …signed int src_width, const unsigned int src_height, const unsigned int new_width, const unsigned … in gdImageScaleTwoPass() argument
1100 if (new_width == 0 || new_height == 0) { in gdImageScaleTwoPass()
1109 tmp_im = gdImageCreateTrueColor(new_width, src_height); in gdImageScaleTwoPass()
1114 _gdScaleHoriz(src, src_width, src_height, tmp_im, new_width, src_height); in gdImageScaleTwoPass()
1116 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageScaleTwoPass()
1122 _gdScaleVert(tmp_im, new_width, src_height, dst, new_width, new_height); in gdImageScaleTwoPass()
1128 …const unsigned int src_height, const gdImagePtr dst, const unsigned int new_width, const unsigned … in Scale() argument
1132 if (new_width == 0 || new_height == 0) { in Scale()
1136 tmp_im = gdImageCreateTrueColor(new_width, src_height); in Scale()
1142 _gdScaleHoriz(src, src_width, src_height, tmp_im, new_width, src_height); in Scale()
1143 _gdScaleVert(tmp_im, new_width, src_height, dst, new_width, new_height); in Scale()
1157 const unsigned long new_width = MAX(1, width); in gdImageScaleNearestNeighbour() local
1159 const float dx = (float)im->sx / (float)new_width; in gdImageScaleNearestNeighbour()
1169 if (new_width == 0 || new_height == 0) { in gdImageScaleNearestNeighbour()
1173 dst_img = gdImageCreateTrueColor(new_width, new_height); in gdImageScaleNearestNeighbour()
1183 for (j=0; j<new_width; j++) { in gdImageScaleNearestNeighbour()
1194 for (j=0; j<new_width; j++) { in gdImageScaleNearestNeighbour()
1258 static gdImagePtr gdImageScaleBilinearPalette(gdImagePtr im, const unsigned int new_width, const un… in gdImageScaleBilinearPalette() argument
1260 long _width = MAX(1, new_width); in gdImageScaleBilinearPalette()
1274 if (new_width == 0 || new_height == 0) { in gdImageScaleBilinearPalette()
1278 new_img = gdImageCreateTrueColor(new_width, new_height); in gdImageScaleBilinearPalette()
1360 static gdImagePtr gdImageScaleBilinearTC(gdImagePtr im, const unsigned int new_width, const unsigne… in gdImageScaleBilinearTC() argument
1362 long dst_w = MAX(1, new_width); in gdImageScaleBilinearTC()
1376 if (new_width == 0 || new_height == 0) { in gdImageScaleBilinearTC()
1380 new_img = gdImageCreateTrueColor(new_width, new_height); in gdImageScaleBilinearTC()
1451 gdImagePtr gdImageScaleBilinear(gdImagePtr im, const unsigned int new_width, const unsigned int new… in gdImageScaleBilinear() argument
1454 return gdImageScaleBilinearTC(im, new_width, new_height); in gdImageScaleBilinear()
1456 return gdImageScaleBilinearPalette(im, new_width, new_height); in gdImageScaleBilinear()
1462 const long new_width = MAX(1, width); in gdImageScaleBicubicFixed() local
1466 const gdFixed f_dx = gd_ftofx((float)src_w / (float)new_width); in gdImageScaleBicubicFixed()
1479 if (new_width == 0 || new_height == 0) { in gdImageScaleBicubicFixed()
1490 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageScaleBicubicFixed()
1501 for (j=0; j < new_width; j++) { in gdImageScaleBicubicFixed()
1685 gdImagePtr gdImageScale(const gdImagePtr src, const unsigned int new_width, const unsigned int new_… in gdImageScale() argument
1693 if (new_width == 0 || new_height == 0) { 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()
1716 im_scaled = gdImageScaleTwoPass(src, src->sx, src->sy, new_width, new_height); in gdImageScale()
1755 int new_height, new_width; in gdImageRotateNearestNeighbour() local
1758 new_width = bbox.width; in gdImageRotateNearestNeighbour()
1761 if (new_width == 0 || new_height == 0) { in gdImageRotateNearestNeighbour()
1765 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateNearestNeighbour()
1773 for (j = 0; j < new_width; j++) { in gdImageRotateNearestNeighbour()
1775 gdFixed f_j = gd_itofx((int)j - (int)new_width/2); in gdImageRotateNearestNeighbour()
1812 int new_width, new_height; in gdImageRotateGeneric() local
1827 new_width = bbox.width; in gdImageRotateGeneric()
1830 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateGeneric()
1839 for (j = 0; j < new_width; j++) { in gdImageRotateGeneric()
1841 gdFixed f_j = gd_itofx((int)j - (int)new_width / 2); in gdImageRotateGeneric()
1869 unsigned int new_width, new_height; in gdImageRotateBilinear() local
1885 new_width = bbox.width; in gdImageRotateBilinear()
1888 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateBilinear()
1898 for (j=0; j < new_width; j++) { in gdImageRotateBilinear()
1900 const gdFixed f_j = gd_itofx((int)j - (int)new_width/2); in gdImageRotateBilinear()
1984 unsigned int new_width, new_height; in gdImageRotateBicubicFixed() local
2003 new_width = bbox.width; in gdImageRotateBicubicFixed()
2005 dst = gdImageCreateTrueColor(new_width, new_height); in gdImageRotateBicubicFixed()
2016 for (j=0; j < new_width; j++) { in gdImageRotateBicubicFixed()
2018 const gdFixed f_j = gd_itofx((int)j - (int)new_width/2); in gdImageRotateBicubicFixed()