Lines Matching refs:sx
123 gdImagePtr gdImageCreate (int sx, int sy) in gdImageCreate() argument
128 if (overflow2(sx, sy)) { in gdImageCreate()
148 im->pixels[i] = (unsigned char *) gdCalloc(sx, sizeof(unsigned char)); in gdImageCreate()
149 im->AA_opacity[i] = (unsigned char *) gdCalloc(sx, sizeof(unsigned char)); in gdImageCreate()
151 im->sx = sx; in gdImageCreate()
169 im->cx2 = im->sx - 1; in gdImageCreate()
174 gdImagePtr gdImageCreateTrueColor (int sx, int sy) in gdImageCreateTrueColor() argument
179 if (overflow2(sx, sy)) { in gdImageCreateTrueColor()
187 if (overflow2(sizeof(int), sx)) { in gdImageCreateTrueColor()
201 im->tpixels[i] = (int *) gdCalloc(sx, sizeof(int)); in gdImageCreateTrueColor()
202 im->AA_opacity[i] = (unsigned char *) gdCalloc(sx, sizeof(unsigned char)); in gdImageCreateTrueColor()
204 im->sx = sx; in gdImageCreateTrueColor()
222 im->cx2 = im->sx - 1; in gdImageCreateTrueColor()
621 for (x = 0; x < to->sx; x++) { in gdImagePaletteCopy()
1020 for (px = 0; px < im->sx; px++) { in gdImageAABlend()
1046 memset(im->AA_opacity[py], 0, im->sx); in gdImageAABlend()
1329 if (x1 >= im->sx && x2 >= im->sx) { in gdImageAALine()
1332 if (x1 >= im->sx) { in gdImageAALine()
1333 y1 -= ((im->sx - x1) * (y1 - y2)) / (x2 - x1); in gdImageAALine()
1334 x1 = im->sx - 1; in gdImageAALine()
1336 if (x2 >= im->sx) { in gdImageAALine()
1337 y2 -= ((im->sx - x2) * (y1 - y2)) / (x2 - x1); in gdImageAALine()
1338 x2 = im->sx - 1; in gdImageAALine()
1385 if ((x >> 16) + 1 < im->sx) { in gdImageAALine()
1771 if (x >= im->sx) { in gdImageFillToBorder()
1772 x = im->sx - 1; in gdImageFillToBorder()
1791 for (i = (x + 1); i < im->sx; i++) { in gdImageFillToBorder()
1848 #define FILL_MAX ((int)(im->sy*im->sx)/4)
1884 wx2=im->sx;wy2=im->sy; in gdImageFill()
1894 if (im->sx < 4) { in gdImageFill()
1903 } while(ix++ < (im->sx -1)); in gdImageFill()
1909 stack = (struct seg *)safe_emalloc(sizeof(struct seg), ((int)(im->sy*im->sx)/4), 1); in gdImageFill()
1968 wx2=im->sx;wy2=im->sy; in _gdImageFillTiled()
1975 pts[i] = (char *) ecalloc(im->sx + 1, sizeof(char)); in _gdImageFillTiled()
1978 stack = (struct seg *)safe_emalloc(sizeof(struct seg), ((int)(im->sy*im->sx)/4), 1); in _gdImageFillTiled()
2470 double sx, sy; in gdImageCopyResampled() local
2490 sx = sx1; in gdImageCopyResampled()
2495 if (floorf(sx) == floor_cast(sx1)) { in gdImageCopyResampled()
2496 xportion = 1.0f - (sx - floor_cast(sx)); in gdImageCopyResampled()
2500 sx = floor_cast(sx); in gdImageCopyResampled()
2501 } else if (sx == floorf(sx2)) { in gdImageCopyResampled()
2507 p = gdImageGetTrueColorPixel(src, (int) sx + srcX, (int) sy + srcY); in gdImageCopyResampled()
2517 sx += 1.0f; in gdImageCopyResampled()
2519 while (sx < sx2); in gdImageCopyResampled()
2787 int sx, sy; in gdImageCompare() local
2801 sx = im1->sx; in gdImageCompare()
2802 if (im1->sx != im2->sx) { in gdImageCompare()
2804 if (im2->sx < im1->sx) { in gdImageCompare()
2805 sx = im2->sx; in gdImageCompare()
2822 for (x = 0; x < sx; x++) { in gdImageCompare()
2977 if (x1 >= im->sx) { in gdImageSetClip()
2978 x1 = im->sx - 1; in gdImageSetClip()
2983 if (x2 >= im->sx) { in gdImageSetClip()
2984 x2 = im->sx - 1; in gdImageSetClip()