Lines Matching refs:sy
171 gdImagePtr gdImageCreate (int sx, int sy) in gdImageCreate() argument
176 if (overflow2(sx, sy)) { in gdImageCreate()
179 if (overflow2(sizeof(unsigned char *), sy)) { in gdImageCreate()
189 im->pixels = (unsigned char **) gdMalloc(sizeof(unsigned char *) * sy); in gdImageCreate()
195 for (i = 0; i < sy; i++) { in gdImageCreate()
200 im->sy = sy; in gdImageCreate()
217 im->cy2 = im->sy - 1; in gdImageCreate()
225 gdImagePtr gdImageCreateTrueColor (int sx, int sy) in gdImageCreateTrueColor() argument
230 if (overflow2(sx, sy)) { in gdImageCreateTrueColor()
233 if (overflow2(sizeof(int *), sy)) { in gdImageCreateTrueColor()
242 im->tpixels = (int **) gdMalloc(sizeof(int *) * sy); in gdImageCreateTrueColor()
248 for (i = 0; i < sy; i++) { in gdImageCreateTrueColor()
252 im->sy = sy; in gdImageCreateTrueColor()
269 im->cy2 = im->sy - 1; in gdImageCreateTrueColor()
281 for (i = 0; i < im->sy; i++) { in gdImageDestroy()
287 for (i = 0; i < im->sy; i++) { in gdImageDestroy()
667 for (y = 0; y < to->sy; y++) { in gdImagePaletteCopy()
1275 if (y + 1 < im->sy) { in gdImageAALine()
1828 if (y >= im->sy) { in gdImageFillToBorder()
1829 y = im->sy - 1; in gdImageFillToBorder()
1872 if (y < ((im->sy) - 1)) { in gdImageFillToBorder()
1904 #define FILL_MAX ((int)(im->sy*im->sx)/4)
1940 wx2=im->sx;wy2=im->sy; in gdImageFill()
1961 } while(iy++ < (im->sy -1)); in gdImageFill()
1965 stack = (struct seg *)safe_emalloc(sizeof(struct seg), ((int)(im->sy*im->sx)/4), 1); in gdImageFill()
2024 wx2=im->sx;wy2=im->sy; in _gdImageFillTiled()
2028 pts = (char **) ecalloc(im->sy + 1, sizeof(char *)); in _gdImageFillTiled()
2029 for (i = 0; i < im->sy + 1; i++) { in _gdImageFillTiled()
2033 stack = (struct seg *)safe_emalloc(sizeof(struct seg), ((int)(im->sy*im->sx)/4), 1); in _gdImageFillTiled()
2076 for(i = 0; i < im->sy + 1; i++) { in _gdImageFillTiled()
2554 double sx, sy; in gdImageCopyResampled() local
2560 sy = sy1; in gdImageCopyResampled()
2563 if (floor_cast(sy) == floor_cast(sy1)) { in gdImageCopyResampled()
2564 yportion = 1.0f - (sy - floor_cast(sy)); in gdImageCopyResampled()
2568 sy = floor_cast(sy); in gdImageCopyResampled()
2569 } else if (sy == floorf(sy2)) { in gdImageCopyResampled()
2591 p = gdImageGetTrueColorPixel(src, (int) sx + srcX, (int) sy + srcY); in gdImageCopyResampled()
2605 sy += 1.0f; in gdImageCopyResampled()
2608 while (sy < sy2); in gdImageCopyResampled()
2869 int sx, sy; in gdImageCompare() local
2891 sy = im1->sy; in gdImageCompare()
2892 if (im1->sy != im2->sy) { in gdImageCompare()
2894 if (im2->sy < im1->sy) { in gdImageCompare()
2895 sy = im2->sy; in gdImageCompare()
2903 for (y = 0; y < sy; y++) { in gdImageCompare()
3063 if (y1 >= im->sy) { in gdImageSetClip()
3064 y1 = im->sy - 1; in gdImageSetClip()
3069 if (y2 >= im->sy) { in gdImageSetClip()
3070 y2 = im->sy - 1; in gdImageSetClip()
3106 const unsigned int sy = gdImageSY(src); in gdImagePaletteToTrueColor() local
3109 src->tpixels = (int **) gdMalloc(sizeof(int *) * sy); in gdImagePaletteToTrueColor()
3114 for (y = 0; y < sy; y++) { in gdImagePaletteToTrueColor()