Lines Matching refs:y

101 #define gd_mulfx(x,y) (((x) * (y)) >> 8)  argument
104 #define gd_divfx(x,y) ((long)((unsigned long)(x) << 8) / (y)) argument
650 static inline int getPixelOverflowTC(gdImagePtr im, const int x, const int y, const int bgColor) in getPixelOverflowTC() argument
652 if (gdImageBoundsSafe(im, x, y)) { in getPixelOverflowTC()
653 const int c = im->tpixels[y][x]; in getPixelOverflowTC()
665 static inline int getPixelOverflowPalette(gdImagePtr im, const int x, const int y, const int bgColo… in getPixelOverflowPalette() argument
667 if (gdImageBoundsSafe(im, x, y)) { in getPixelOverflowPalette()
668 const int c = im->pixels[y][x]; in getPixelOverflowPalette()
678 static int getPixelInterpolateWeight(gdImagePtr im, const double x, const double y, const int bgCol… in getPixelInterpolateWeight() argument
682 int sy = (int)(y); in getPixelInterpolateWeight()
684 const double yf = y - (double)sy; in getPixelInterpolateWeight()
700 if (y < 0) sy--; in getPixelInterpolateWeight()
739 int getPixelInterpolated(gdImagePtr im, const double x, const double y, const int bgColor) in getPixelInterpolated() argument
742 const int yi=(int)((y) < 0 ? y - 1: y); in getPixelInterpolated()
755 return getPixelInterpolateWeight(im, x, y, bgColor); in getPixelInterpolated()
768 kernel_y[i] = (double) im->interpolation((double)(yi+i-1-y)); in getPixelInterpolated()
953 unsigned int y; in _gdScaleHoriz() local
954 for (y = 0; y < src_height - 1; ++y) { in _gdScaleHoriz()
955 memcpy(pDst->tpixels[y], pSrc->tpixels[y], src_width); in _gdScaleHoriz()
973 unsigned int y; in _gdScaleCol() local
974 for (y = 0; y < dst_height; y++) { in _gdScaleCol()
976 const int iLeft = contrib->ContribRow[y].Left; in _gdScaleCol()
977 const int iRight = contrib->ContribRow[y].Right; in _gdScaleCol()
984 …r += (unsigned char)(contrib->ContribRow[y].Weights[i_iLeft] * (double)(gdTrueColorGetRed(pCurSrc)… in _gdScaleCol()
985 …g += (unsigned char)(contrib->ContribRow[y].Weights[i_iLeft] * (double)(gdTrueColorGetGreen(pCurSr… in _gdScaleCol()
986 …b += (unsigned char)(contrib->ContribRow[y].Weights[i_iLeft] * (double)(gdTrueColorGetBlue(pCurSrc… in _gdScaleCol()
987 …a += (unsigned char)(contrib->ContribRow[y].Weights[i_iLeft] * (double)(gdTrueColorGetAlpha(pCurSr… in _gdScaleCol()
989 pRes->tpixels[y][uCol] = gdTrueColorAlpha(r, g, b, a); in _gdScaleCol()
1000 unsigned int y; in _gdScaleVert() local
1001 for (y = 0; y < src_height - 1; ++y) { in _gdScaleVert()
1002 memcpy(pDst->tpixels[y], pSrc->tpixels[y], src_width); in _gdScaleVert()
1591 src_area.y = 0; in gdRotatedImageSize()
2189 y1 = r->y + r->height - 1; in gdImageClipRectangle()
2191 r->y = CLAMP(r->y, c1y, c2y); in gdImageClipRectangle()
2193 r->height = CLAMP(y1, c1y, c2y) - r->y + 1; in gdImageClipRectangle()
2198 printf("%s (%i, %i) (%i, %i)\n", msg, r->x, r->y, r->width, r->height); in gdDumpRect()
2229 area_full.y = 0; in gdTransformAffineGetImage()
2248 gdAffineTranslate(m, -bbox.x, -bbox.y); in gdTransformAffineGetImage()
2292 register int x, y, src_offset_x, src_offset_y; in gdTransformAffineCopy() local
2309 if (src_region->x > 0 || src_region->y > 0 in gdTransformAffineCopy()
2317 gdImageSetClip(src, src_region->x, src_region->y, in gdTransformAffineCopy()
2319 src_region->y + src_region->height - 1); in gdTransformAffineCopy()
2334 end_y = bbox.height + abs(bbox.y); in gdTransformAffineCopy()
2343 src_offset_y = src_region->y; in gdTransformAffineCopy()
2346 for (y = bbox.y; y <= end_y; y++) { in gdTransformAffineCopy()
2347 pt.y = y + 0.5; in gdTransformAffineCopy()
2351 …ImageSetPixel(dst, dst_x + x, dst_y + y, getPixelInterpolated(src, src_offset_x + src_pt.x, src_of… in gdTransformAffineCopy()
2355 for (y = 0; y <= end_y; y++) { in gdTransformAffineCopy()
2359 pt.y = y + 0.5 + bbox.y; in gdTransformAffineCopy()
2360 if ((dst_y + y) < 0 || ((dst_y + y) > gdImageSY(dst) -1)) { in gdTransformAffineCopy()
2364 tdst_p = dst->tpixels[dst_y + y] + dst_x; in gdTransformAffineCopy()
2366 dst_p = dst->pixels[dst_y + y] + dst_x; in gdTransformAffineCopy()
2377 *(tdst_p++) = getPixelInterpolated(src, src_offset_x + src_pt.x, src_offset_y + src_pt.y, -1); in gdTransformAffineCopy()
2379 *(dst_p++) = getPixelInterpolated(src, src_offset_x + src_pt.x, src_offset_y + src_pt.y, -1); in gdTransformAffineCopy()
2414 extent[0].y=0.0; in gdTransformAffineBoundingBox()
2416 extent[1].y=0.0; in gdTransformAffineBoundingBox()
2418 extent[2].y=(double) src->height; in gdTransformAffineBoundingBox()
2420 extent[3].y=(double) src->height; in gdTransformAffineBoundingBox()
2434 if (min.y > extent[i].y) in gdTransformAffineBoundingBox()
2435 min.y=extent[i].y; in gdTransformAffineBoundingBox()
2438 if (max.y < extent[i].y) in gdTransformAffineBoundingBox()
2439 max.y=extent[i].y; in gdTransformAffineBoundingBox()
2442 bbox->y = (int) min.y; in gdTransformAffineBoundingBox()
2444 bbox->height = (int) floor(max.y - min.y); in gdTransformAffineBoundingBox()