Lines Matching refs:y

166 static void gdImageBrushApply(gdImagePtr im, int x, int y);
167 static void gdImageTileApply(gdImagePtr im, int x, int y);
169 int gdImageGetTrueColorPixel(gdImagePtr im, int x, int y);
657 int x, y, p; in gdImagePaletteCopy() local
667 for (y = 0; y < to->sy; y++) { in gdImagePaletteCopy()
669 p = gdImageGetPixel(to, x, y); in gdImagePaletteCopy()
674 gdImageSetPixel(to, x, y, xlate[p]); in gdImagePaletteCopy()
763 void gdImageSetPixel (gdImagePtr im, int x, int y, int color) in gdImageSetPixel() argument
775 gdImageSetPixel(im, x, y, p); in gdImageSetPixel()
786 gdImageSetPixel(im, x, y, gdBrushed); in gdImageSetPixel()
791 gdImageBrushApply(im, x, y); in gdImageSetPixel()
794 gdImageTileApply(im, x, y); in gdImageSetPixel()
799 gdImageSetPixel(im, x, y, im->AA_color); in gdImageSetPixel()
802 if (gdImageBoundsSafe(im, x, y)) { in gdImageSetPixel()
807 im->tpixels[y][x] = color; in gdImageSetPixel()
811 im->tpixels[y][x] = gdAlphaBlend(im->tpixels[y][x], color); in gdImageSetPixel()
814 im->tpixels[y][x] = gdLayerOverlay(im->tpixels[y][x], color); in gdImageSetPixel()
817 im->tpixels[y][x] = gdLayerMultiply(im->tpixels[y][x], color); in gdImageSetPixel()
821 im->pixels[y][x] = color; in gdImageSetPixel()
828 int gdImageGetTrueColorPixel (gdImagePtr im, int x, int y) in gdImageGetTrueColorPixel() argument
830 int p = gdImageGetPixel(im, x, y); in gdImageGetTrueColorPixel()
839 static void gdImageBrushApply (gdImagePtr im, int x, int y) in gdImageBrushApply() argument
851 y1 = y - hy; in gdImageBrushApply()
915 static void gdImageTileApply (gdImagePtr im, int x, int y) in gdImageTileApply() argument
924 srcy = y % gdImageSY(tile); in gdImageTileApply()
931 gdImageSetPixel(im, x, y, p); in gdImageTileApply()
939 gdImageSetPixel(im, x, y, gdImageColorResolveAlpha(im, in gdImageTileApply()
945 gdImageSetPixel(im, x, y, im->tileColorMap[p]); in gdImageTileApply()
952 static int gdImageTileGet (gdImagePtr im, int x, int y) in gdImageTileGet() argument
960 srcy = y % gdImageSY(im->tile); in gdImageTileGet()
981 int gdImageGetPixel (gdImagePtr im, int x, int y) in gdImageGetPixel() argument
983 if (gdImageBoundsSafe(im, x, y)) { in gdImageGetPixel()
985 return im->tpixels[y][x]; in gdImageGetPixel()
987 return im->pixels[y][x]; in gdImageGetPixel()
1001 static void gdImageHLine(gdImagePtr im, int y, int x1, int x2, int col) in gdImageHLine() argument
1005 _gdImageFilledHRectangle(im, x1, y - thickhalf, x2, y + im->thick - thickhalf - 1, col); in gdImageHLine()
1014 gdImageSetPixel(im, x1, y, col); in gdImageHLine()
1042 int dx, dy, incr1, incr2, d, x, y, xend, yend, xdirflag, ydirflag; in gdImageLine() local
1096 y = y2; in gdImageLine()
1101 y = y1; in gdImageLine()
1107 wstart = y - wid / 2; in gdImageLine()
1118 y++; in gdImageLine()
1121 wstart = y - wid / 2; in gdImageLine()
1132 y--; in gdImageLine()
1135 wstart = y - wid / 2; in gdImageLine()
1159 y = y2; in gdImageLine()
1164 y = y1; in gdImageLine()
1173 gdImageSetPixel (im, w, y, color); in gdImageLine()
1177 while (y < yend) { in gdImageLine()
1178 y++; in gdImageLine()
1187 gdImageSetPixel (im, w, y, color); in gdImageLine()
1191 while (y < yend) { in gdImageLine()
1192 y++; in gdImageLine()
1201 gdImageSetPixel (im, w, y, color); in gdImageLine()
1215 inline static void gdImageSetAAPixelColor(gdImagePtr im, int x, int y, int color, int t) in gdImageSetAAPixelColor() argument
1222 p = gdImageGetPixel(im,x,y); in gdImageSetAAPixelColor()
1230 im->tpixels[y][x]=gdTrueColorAlpha(dr, dg, db, gdAlphaOpaque); in gdImageSetAAPixelColor()
1239 long x, y, inc, frac; in gdImageAALine() local
1270 y = y1; in gdImageAALine()
1274 gdImageSetAAPixelColor(im, x, y, col, (frac >> 8) & 0xFF); in gdImageAALine()
1275 if (y + 1 < im->sy) { in gdImageAALine()
1276 gdImageSetAAPixelColor(im, x, y + 1, col, (~frac >> 8) & 0xFF); in gdImageAALine()
1281 y++; in gdImageAALine()
1284 y--; in gdImageAALine()
1301 for (y = y1; y <= y2; y++) { in gdImageAALine()
1302 gdImageSetAAPixelColor(im, x, y, col, (frac >> 8) & 0xFF); in gdImageAALine()
1304 gdImageSetAAPixelColor(im, x + 1, y, col, (~frac >> 8) & 0xFF); in gdImageAALine()
1318 static void dashedSet (gdImagePtr im, int x, int y, int color, int *onP, int *dashStepP, int wid, i…
1322 int dx, dy, incr1, incr2, d, x, y, xend, yend, xdirflag, ydirflag; in gdImageDashedLine() local
1348 y = y2; in gdImageDashedLine()
1353 y = y1; in gdImageDashedLine()
1357 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1364 y++; in gdImageDashedLine()
1367 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1375 y--; in gdImageDashedLine()
1378 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1396 y = y2; in gdImageDashedLine()
1401 y = y1; in gdImageDashedLine()
1406 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1408 while (y < yend) { in gdImageDashedLine()
1409 y++; in gdImageDashedLine()
1416 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1419 while (y < yend) { in gdImageDashedLine()
1420 y++; in gdImageDashedLine()
1427 dashedSet(im, x, y, color, &on, &dashStep, wid, vert); in gdImageDashedLine()
1433 static void dashedSet (gdImagePtr im, int x, int y, int color, int *onP, int *dashStepP, int wid, i… in dashedSet() argument
1446 wstart = y - wid / 2; in dashedSet()
1453 gdImageSetPixel(im, w, y, color); in dashedSet()
1461 void gdImageChar (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) in gdImageChar() argument
1467 const int yuppper = (y > INT_MAX - f->h) ? INT_MAX : y + f->h; in gdImageChar()
1477 for (py = y; py < yuppper; py++) { in gdImageChar()
1489 void gdImageCharUp (gdImagePtr im, gdFontPtr f, int x, int y, int c, int color) in gdImageCharUp() argument
1495 const int ylower = (y < INT_MIN + f->w) ? INT_MIN : y - f->w; in gdImageCharUp()
1505 for (py = y; py > ylower; py--) { in gdImageCharUp()
1517 void gdImageString (gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color) in gdImageString() argument
1523 gdImageChar(im, f, x, y, s[i], color); in gdImageString()
1528 void gdImageStringUp (gdImagePtr im, gdFontPtr f, int x, int y, unsigned char *s, int color) in gdImageStringUp() argument
1534 gdImageCharUp(im, f, x, y, s[i], color); in gdImageStringUp()
1535 y -= f->w; in gdImageStringUp()
1541 void gdImageString16 (gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color) in gdImageString16() argument
1547 gdImageChar(im, f, x, y, s[i], color); in gdImageString16()
1552 void gdImageStringUp16 (gdImagePtr im, gdFontPtr f, int x, int y, unsigned short *s, int color) in gdImageStringUp16() argument
1558 gdImageCharUp(im, f, x, y, s[i], color); in gdImageStringUp16()
1559 y -= f->w; in gdImageStringUp16()
1626 int x, y; in gdImageFilledArc() local
1628 y = endy = ((long) gdSinT[i % 360] * (long) h / (2 * 1024)) + cy; in gdImageFilledArc()
1632 gdImageLine(im, lx, ly, x, y, color); in gdImageFilledArc()
1634 if (y == ly) { in gdImageFilledArc()
1643 pts[pti].y = y; in gdImageFilledArc()
1649 fy = y; in gdImageFilledArc()
1652 pts[0].y = cy; in gdImageFilledArc()
1654 pts[pti].y = starty = y; in gdImageFilledArc()
1658 ly = y; in gdImageFilledArc()
1669 pts[0].y = fy; in gdImageFilledArc()
1671 pts[1].y = ly; in gdImageFilledArc()
1673 pts[2].y = cy; in gdImageFilledArc()
1684 if (pts[1].x != startx && pts[1].y == starty) { in gdImageFilledArc()
1688 pts[i].y = pts[i-1].y; in gdImageFilledArc()
1691 pts[1].y = starty; in gdImageFilledArc()
1694 if (pts[pti-1].x != endx && pts[pti-1].y == endy) { in gdImageFilledArc()
1697 pts[pti].y = endy; in gdImageFilledArc()
1702 pts[pti].y = cy; in gdImageFilledArc()
1802 void gdImageFillToBorder (gdImagePtr im, int x, int y, int border, int color) in gdImageFillToBorder() argument
1828 if (y >= im->sy) { in gdImageFillToBorder()
1829 y = im->sy - 1; in gdImageFillToBorder()
1830 } else if (y < 0) { in gdImageFillToBorder()
1831 y = 0; in gdImageFillToBorder()
1835 if (gdImageGetPixel(im, i, y) == border) { in gdImageFillToBorder()
1838 gdImageSetPixel(im, i, y, color); in gdImageFillToBorder()
1848 if (gdImageGetPixel(im, i, y) == border) { in gdImageFillToBorder()
1851 gdImageSetPixel(im, i, y, color); in gdImageFillToBorder()
1856 if (y > 0) { in gdImageFillToBorder()
1859 int c = gdImageGetPixel(im, i, y - 1); in gdImageFillToBorder()
1862 gdImageFillToBorder(im, i, y - 1, border, color); in gdImageFillToBorder()
1872 if (y < ((im->sy) - 1)) { in gdImageFillToBorder()
1875 int c = gdImageGetPixel(im, i, y + 1); in gdImageFillToBorder()
1879 gdImageFillToBorder(im, i, y + 1, border, color); in gdImageFillToBorder()
1901 struct seg {int y, xl, xr, dy;}; member
1907 {sp->y = Y; sp->xl = XL; sp->xr = XR; sp->dy = DY; sp++;}
1910 {sp--; Y = sp->y+(DY = sp->dy); XL = sp->xl; XR = sp->xr;}
1912 static void _gdImageFillTiled(gdImagePtr im, int x, int y, int nc);
1914 void gdImageFill(gdImagePtr im, int x, int y, int nc) in gdImageFill() argument
1935 _gdImageFillTiled(im,x,y,nc); in gdImageFill()
1941 oc = gdImageGetPixel(im, x, y); in gdImageFill()
1942 if (oc==nc || x<0 || x>wx2 || y<0 || y>wy2) { in gdImageFill()
1951 int ix = x, iy = y, c; in gdImageFill()
1969 FILL_PUSH(y,x,x,1); in gdImageFill()
1971 FILL_PUSH(y+1, x, x, -1); in gdImageFill()
1973 FILL_POP(y, x1, x2, dy); in gdImageFill()
1975 for (x=x1; x>=0 && gdImageGetPixel(im,x, y)==oc; x--) { in gdImageFill()
1976 gdImageSetPixel(im,x, y, nc); in gdImageFill()
1985 FILL_PUSH(y, l, x1-1, -dy); in gdImageFill()
1989 for (; x<=wx2 && gdImageGetPixel(im,x, y)==oc; x++) { in gdImageFill()
1990 gdImageSetPixel(im, x, y, nc); in gdImageFill()
1992 FILL_PUSH(y, l, x-1, dy); in gdImageFill()
1995 FILL_PUSH(y, x2+1, x-1, -dy); in gdImageFill()
1997 skip: for (x++; x<=x2 && (gdImageGetPixel(im, x, y)!=oc); x++); in gdImageFill()
2009 static void _gdImageFillTiled(gdImagePtr im, int x, int y, int nc) in _gdImageFillTiled() argument
2025 nc = gdImageTileGet(im,x,y); in _gdImageFillTiled()
2035 oc = gdImageGetPixel(im, x, y); in _gdImageFillTiled()
2038 FILL_PUSH(y,x,x,1); in _gdImageFillTiled()
2040 FILL_PUSH(y+1, x, x, -1); in _gdImageFillTiled()
2042 FILL_POP(y, x1, x2, dy); in _gdImageFillTiled()
2043 for (x=x1; x>=0 && (!pts[y][x] && gdImageGetPixel(im,x,y)==oc); x--) { in _gdImageFillTiled()
2044 nc = gdImageTileGet(im,x,y); in _gdImageFillTiled()
2045 pts[y][x] = 1; in _gdImageFillTiled()
2046 gdImageSetPixel(im,x, y, nc); in _gdImageFillTiled()
2055 FILL_PUSH(y, l, x1-1, -dy); in _gdImageFillTiled()
2059 for(; x<wx2 && (!pts[y][x] && gdImageGetPixel(im,x, y)==oc); x++) { in _gdImageFillTiled()
2060 nc = gdImageTileGet(im,x,y); in _gdImageFillTiled()
2061 pts[y][x] = 1; in _gdImageFillTiled()
2062 gdImageSetPixel(im, x, y, nc); in _gdImageFillTiled()
2064 FILL_PUSH(y, l, x-1, dy); in _gdImageFillTiled()
2067 FILL_PUSH(y, x2+1, x-1, -dy); in _gdImageFillTiled()
2069 skip: for(x++; x<=x2 && (pts[y][x] || gdImageGetPixel(im,x, y)!=oc); x++); in _gdImageFillTiled()
2163 int x, y; in _gdImageFilledHRectangle() local
2177 y = y1; in _gdImageFilledHRectangle()
2179 y2 = y; in _gdImageFilledHRectangle()
2199 for (y = y1; (y <= y2); y++) { in _gdImageFilledHRectangle()
2200 gdImageSetPixel (im, x, y, color); in _gdImageFilledHRectangle()
2207 int x, y; in _gdImageFilledVRectangle() local
2221 y = y1; in _gdImageFilledVRectangle()
2223 y2 = y; in _gdImageFilledVRectangle()
2242 for (y = y1; (y <= y2); y++) { in _gdImageFilledVRectangle()
2244 gdImageSetPixel (im, x, y, color); in _gdImageFilledVRectangle()
2257 int x, y; in gdImageCopy() local
2269 for (y = 0; (y < h); y++) { in gdImageCopy()
2271 int c = gdImageGetTrueColorPixel (src, srcX + x, srcY + y); in gdImageCopy()
2273 gdImageSetPixel (dst, dstX + x, dstY + y, c); in gdImageCopy()
2279 for (y = 0; (y < h); y++) { in gdImageCopy()
2281 int c = gdImageGetPixel (src, srcX + x, srcY + y); in gdImageCopy()
2283 …gdImageSetPixel(dst, dstX + x, dstY + y, gdTrueColorAlpha(src->red[c], src->green[c], src->blue[c]… in gdImageCopy()
2296 for (y = srcY; y < (srcY + h); y++) { in gdImageCopy()
2301 c = gdImageGetPixel (src, x, y); in gdImageCopy()
2338 int x, y; in gdImageCopyMerge() local
2343 for (y = srcY; y < (srcY + h); y++) { in gdImageCopyMerge()
2347 c = gdImageGetPixel(src, x, y); in gdImageCopyMerge()
2378 int x, y; in gdImageCopyMergeGray() local
2384 for (y = srcY; (y < (srcY + h)); y++) { in gdImageCopyMergeGray()
2388 c = gdImageGetPixel (src, x, y); in gdImageCopyMergeGray()
2432 int x, y; in gdImageCopyResized() local
2461 for (y = srcY; (y < (srcY + srcH)); y++) { in gdImageCopyResized()
2462 for (ydest = 0; (ydest < sty[y - srcY]); ydest++) { in gdImageCopyResized()
2473 int tmp = gdImageGetPixel (src, x, y); in gdImageCopyResized()
2474 mapTo = gdImageGetTrueColorPixel (src, x, y); in gdImageCopyResized()
2482 mapTo = gdImageGetTrueColorPixel (src, x, y); in gdImageCopyResized()
2491 c = gdImageGetPixel (src, x, y); in gdImageCopyResized()
2541 int x, y; in gdImageCopyResampled() local
2548 for (y = dstY; (y < dstY + dstH); y++) { in gdImageCopyResampled()
2549 sy1 = ((double) y - (double) dstY) * (double) srcH / (double) dstH; in gdImageCopyResampled()
2550 sy2 = ((double) (y + 1) - (double) dstY) * (double) srcH / (double) dstH; in gdImageCopyResampled()
2636 gdImageSetPixel(dst, x, y, gdTrueColorAlpha ((int) red, (int) green, (int) blue, (int) alpha)); in gdImageCopyResampled()
2648 gdImageLine (im, p->x, p->y, p[n - 1].x, p[n - 1].y, c); in gdImagePolygon()
2662 ly = p->y; in gdImageOpenPolygon()
2665 gdImageLine(im, lx, ly, p->x, p->y, c); in gdImageOpenPolygon()
2667 ly = p->y; in gdImageOpenPolygon()
2684 int y; in gdImageFilledPolygon() local
2719 miny = p[0].y; in gdImageFilledPolygon()
2720 maxy = p[0].y; in gdImageFilledPolygon()
2722 if (p[i].y < miny) { in gdImageFilledPolygon()
2723 miny = p[i].y; in gdImageFilledPolygon()
2725 if (p[i].y > maxy) { in gdImageFilledPolygon()
2726 maxy = p[i].y; in gdImageFilledPolygon()
2752 for (y = miny; y <= maxy; y++) { in gdImageFilledPolygon()
2765 y1 = p[ind1].y; in gdImageFilledPolygon()
2766 y2 = p[ind2].y; in gdImageFilledPolygon()
2771 y2 = p[ind1].y; in gdImageFilledPolygon()
2772 y1 = p[ind2].y; in gdImageFilledPolygon()
2782 if (y >= y1 && y < y2) { in gdImageFilledPolygon()
2783 im->polyInts[ints++] = (float) ((y - y1) * (x2 - x1)) / (float) (y2 - y1) + 0.5 + x1; in gdImageFilledPolygon()
2784 } else if (y == pmaxy && y == y2) { in gdImageFilledPolygon()
2791 gdImageLine(im, im->polyInts[i], y, im->polyInts[i + 1], y, fill_color); in gdImageFilledPolygon()
2873 int x, y; in gdImageCompare() local
2910 for (y = 0; y < sy; y++) { in gdImageCompare()
2912 p1 = im1->trueColor ? gdImageTrueColorPixel(im1, x, y) : gdImagePalettePixel(im1, x, y); in gdImageCompare()
2913 p2 = im2->trueColor ? gdImageTrueColorPixel(im2, x, y) : gdImagePalettePixel(im2, x, y); in gdImageCompare()
3102 unsigned int y; in gdImagePaletteToTrueColor() local
3121 for (y = 0; y < sy; y++) { in gdImagePaletteToTrueColor()
3122 const unsigned char *src_row = src->pixels[y]; in gdImagePaletteToTrueColor()
3126 src->tpixels[y] = (int *) gdMalloc(sx * sizeof(int)); in gdImagePaletteToTrueColor()
3127 if (src->tpixels[y] == NULL) { in gdImagePaletteToTrueColor()
3131 dst_row = src->tpixels[y]; in gdImagePaletteToTrueColor()
3144 for (yy = 0; yy < y; yy++) { in gdImagePaletteToTrueColor()
3162 for (yy = 0; yy < y; yy++) { in gdImagePaletteToTrueColor()