Lines Matching refs:y

102 #define gd_mulfx(x,y) (((x) * (y)) >> 8)  argument
105 #define gd_divfx(x,y) (((x) << 8) / (y)) argument
638 static inline int _setEdgePixel(const gdImagePtr src, unsigned int x, unsigned int y, gdFixed cover… in _setEdgePixel() argument
641 register int c = src->tpixels[y][x]; in _setEdgePixel()
646 static inline int getPixelOverflowTC(gdImagePtr im, const int x, const int y, const int bgColor) in getPixelOverflowTC() argument
648 if (gdImageBoundsSafe(im, x, y)) { in getPixelOverflowTC()
649 const int c = im->tpixels[y][x]; in getPixelOverflowTC()
657 if (y < im->cy1) { in getPixelOverflowTC()
662 if (y < im->cy1) { in getPixelOverflowTC()
667 if (y > im->cy2) { in getPixelOverflowTC()
678 border = im->tpixels[y][im->cx1]; in getPixelOverflowTC()
683 border = im->tpixels[y][im->cx2]; in getPixelOverflowTC()
697 static inline int getPixelOverflowPalette(gdImagePtr im, const int x, const int y, const int bgColo… in getPixelOverflowPalette() argument
699 if (gdImageBoundsSafe(im, x, y)) { in getPixelOverflowPalette()
700 const int c = im->pixels[y][x]; in getPixelOverflowPalette()
707 if (y < im->cy1) { in getPixelOverflowPalette()
712 if (y < im->cy1) { in getPixelOverflowPalette()
717 if (y > im->cy2) { in getPixelOverflowPalette()
728 border = gdImageGetPixel(im, im->cx1, y); in getPixelOverflowPalette()
733 border = gdImageGetPixel(im, im->cx2, y); in getPixelOverflowPalette()
745 static int getPixelInterpolateWeight(gdImagePtr im, const double x, const double y, const int bgCol… in getPixelInterpolateWeight() argument
749 int sy = (int)(y); in getPixelInterpolateWeight()
751 const double yf = y - (double)sy; in getPixelInterpolateWeight()
767 if (y < 0) sy--; in getPixelInterpolateWeight()
806 int getPixelInterpolated(gdImagePtr im, const double x, const double y, const int bgColor) in getPixelInterpolated() argument
809 const int yi=(int)((y) < 0 ? y - 1: y); in getPixelInterpolated()
822 return getPixelInterpolateWeight(im, x, y, bgColor); in getPixelInterpolated()
835 kernel_y[i] = (double) im->interpolation((double)(yi+i-1-y)); in getPixelInterpolated()
1021 unsigned int y; in _gdScaleHoriz() local
1022 for (y = 0; y < src_height - 1; ++y) { in _gdScaleHoriz()
1023 memcpy(pDst->tpixels[y], pSrc->tpixels[y], src_width); in _gdScaleHoriz()
1040 unsigned int y; in _gdScaleCol() local
1041 for (y = 0; y < dst_height - 1; y++) { in _gdScaleCol()
1043 const int iLeft = contrib->ContribRow[y].Left; in _gdScaleCol()
1044 const int iRight = contrib->ContribRow[y].Right; in _gdScaleCol()
1046 int *row = pRes->tpixels[y]; in _gdScaleCol()
1052 …r += (unsigned char)(contrib->ContribRow[y].Weights[i_iLeft] * (double)(gdTrueColorGetRed(pCurSrc)… in _gdScaleCol()
1053 …g += (unsigned char)(contrib->ContribRow[y].Weights[i_iLeft] * (double)(gdTrueColorGetGreen(pCurSr… in _gdScaleCol()
1054 …b += (unsigned char)(contrib->ContribRow[y].Weights[i_iLeft] * (double)(gdTrueColorGetBlue(pCurSrc… in _gdScaleCol()
1055 …a += (unsigned char)(contrib->ContribRow[y].Weights[i_iLeft] * (double)(gdTrueColorGetAlpha(pCurSr… in _gdScaleCol()
1057 pRes->tpixels[y][uCol] = gdTrueColorAlpha(r, g, b, a); in _gdScaleCol()
1068 unsigned int y; in _gdScaleVert() local
1069 for (y = 0; y < src_height - 1; ++y) { in _gdScaleVert()
1070 memcpy(pDst->tpixels[y], pSrc->tpixels[y], src_width); in _gdScaleVert()
1200 static inline int getPixelOverflowColorTC(gdImagePtr im, const int x, const int y, const int color) in getPixelOverflowColorTC() argument
1202 if (gdImageBoundsSafe(im, x, y)) { in getPixelOverflowColorTC()
1203 const int c = im->tpixels[y][x]; in getPixelOverflowColorTC()
1210 if (y < im->cy1) { in getPixelOverflowColorTC()
1215 if (y < im->cy1) { in getPixelOverflowColorTC()
1220 if (y > im->cy2) { in getPixelOverflowColorTC()
1231 border = im->tpixels[y][im->cx1]; in getPixelOverflowColorTC()
1236 border = im->tpixels[y][im->cx2]; in getPixelOverflowColorTC()
2276 y1 = r->y + r->height - 1; in gdImageClipRectangle()
2278 r->y = CLAMP(r->y, c1y, c2y); in gdImageClipRectangle()
2280 r->height = CLAMP(y1, c1y, c2y) - r->y + 1; in gdImageClipRectangle()
2285 printf("%s (%i, %i) (%i, %i)\n", msg, r->x, r->y, r->width, r->height); in gdDumpRect()
2316 area_full.y = 0; in gdTransformAffineGetImage()
2335 gdAffineTranslate(m, -bbox.x, -bbox.y); in gdTransformAffineGetImage()
2379 register int x, y, src_offset_x, src_offset_y; in gdTransformAffineCopy() local
2399 if (src_region->x > 0 || src_region->y > 0 in gdTransformAffineCopy()
2407 gdImageSetClip(src, src_region->x, src_region->y, in gdTransformAffineCopy()
2409 src_region->y + src_region->height - 1); in gdTransformAffineCopy()
2424 end_y = bbox.height + (int) fabs(bbox.y); in gdTransformAffineCopy()
2430 src_offset_y = src_region->y; in gdTransformAffineCopy()
2433 for (y = bbox.y; y <= end_y; y++) { in gdTransformAffineCopy()
2434 pt.y = y + 0.5; in gdTransformAffineCopy()
2438 …ImageSetPixel(dst, dst_x + x, dst_y + y, getPixelInterpolated(src, src_offset_x + src_pt.x, src_of… in gdTransformAffineCopy()
2442 for (y = 0; y <= end_y; y++) { in gdTransformAffineCopy()
2443 pt.y = y + 0.5 + bbox.y; in gdTransformAffineCopy()
2444 if ((dst_y + y) < 0 || ((dst_y + y) > gdImageSY(dst) -1)) { in gdTransformAffineCopy()
2447 dst_p = dst->tpixels[dst_y + y] + dst_x; in gdTransformAffineCopy()
2456 *(dst_p++) = getPixelInterpolated(src, src_offset_x + src_pt.x, src_offset_y + src_pt.y, -1); in gdTransformAffineCopy()
2490 extent[0].y=0.0; in gdTransformAffineBoundingBox()
2492 extent[1].y=0.0; in gdTransformAffineBoundingBox()
2494 extent[2].y=(double) src->height; in gdTransformAffineBoundingBox()
2496 extent[3].y=(double) src->height; in gdTransformAffineBoundingBox()
2510 if (min.y > extent[i].y) in gdTransformAffineBoundingBox()
2511 min.y=extent[i].y; in gdTransformAffineBoundingBox()
2514 if (max.y < extent[i].y) in gdTransformAffineBoundingBox()
2515 max.y=extent[i].y; in gdTransformAffineBoundingBox()
2518 bbox->y = (int) min.y; in gdTransformAffineBoundingBox()
2520 bbox->height = (int) floor(max.y - min.y); in gdTransformAffineBoundingBox()