Lines Matching refs:y

111 #define gd_mulfx(x,y) (((x) * (y)) >> 8)  argument
114 #define gd_divfx(x,y) ((long)((unsigned long)(x) << 8) / (y)) argument
660 static inline int getPixelOverflowTC(gdImagePtr im, const int x, const int y, const int bgColor) in getPixelOverflowTC() argument
662 if (gdImageBoundsSafe(im, x, y)) { in getPixelOverflowTC()
663 const int c = im->tpixels[y][x]; in getPixelOverflowTC()
675 static inline int getPixelOverflowPalette(gdImagePtr im, const int x, const int y, const int bgColo… in getPixelOverflowPalette() argument
677 if (gdImageBoundsSafe(im, x, y)) { in getPixelOverflowPalette()
678 const int c = im->pixels[y][x]; in getPixelOverflowPalette()
688 static int getPixelInterpolateWeight(gdImagePtr im, const double x, const double y, const int bgCol… in getPixelInterpolateWeight() argument
692 int sy = (int)(y); in getPixelInterpolateWeight()
694 const double yf = y - (double)sy; in getPixelInterpolateWeight()
710 if (y < 0) sy--; in getPixelInterpolateWeight()
749 int getPixelInterpolated(gdImagePtr im, const double x, const double y, const int bgColor) in getPixelInterpolated() argument
752 const int yi=(int)((y) < 0 ? y - 1: y); in getPixelInterpolated()
765 return getPixelInterpolateWeight(im, x, y, bgColor); in getPixelInterpolated()
778 kernel_y[i] = (double) im->interpolation((double)(yi+i-1-y)); in getPixelInterpolated()
963 unsigned int y; in _gdScaleHoriz() local
964 for (y = 0; y < src_height - 1; ++y) { in _gdScaleHoriz()
965 memcpy(pDst->tpixels[y], pSrc->tpixels[y], src_width); in _gdScaleHoriz()
983 unsigned int y; in _gdScaleCol() local
984 for (y = 0; y < dst_height; y++) { in _gdScaleCol()
986 const int iLeft = contrib->ContribRow[y].Left; in _gdScaleCol()
987 const int iRight = contrib->ContribRow[y].Right; in _gdScaleCol()
994 …r += (unsigned char)(contrib->ContribRow[y].Weights[i_iLeft] * (double)(gdTrueColorGetRed(pCurSrc)… in _gdScaleCol()
995 …g += (unsigned char)(contrib->ContribRow[y].Weights[i_iLeft] * (double)(gdTrueColorGetGreen(pCurSr… in _gdScaleCol()
996 …b += (unsigned char)(contrib->ContribRow[y].Weights[i_iLeft] * (double)(gdTrueColorGetBlue(pCurSrc… in _gdScaleCol()
997 …a += (unsigned char)(contrib->ContribRow[y].Weights[i_iLeft] * (double)(gdTrueColorGetAlpha(pCurSr… in _gdScaleCol()
999 pRes->tpixels[y][uCol] = gdTrueColorAlpha(r, g, b, a); in _gdScaleCol()
1010 unsigned int y; in _gdScaleVert() local
1011 for (y = 0; y < src_height - 1; ++y) { in _gdScaleVert()
1012 memcpy(pDst->tpixels[y], pSrc->tpixels[y], src_width); in _gdScaleVert()
1601 src_area.y = 0; in gdRotatedImageSize()
2199 y1 = r->y + r->height - 1; in gdImageClipRectangle()
2201 r->y = CLAMP(r->y, c1y, c2y); in gdImageClipRectangle()
2203 r->height = CLAMP(y1, c1y, c2y) - r->y + 1; in gdImageClipRectangle()
2208 printf("%s (%i, %i) (%i, %i)\n", msg, r->x, r->y, r->width, r->height); in gdDumpRect()
2239 area_full.y = 0; in gdTransformAffineGetImage()
2258 gdAffineTranslate(m, -bbox.x, -bbox.y); in gdTransformAffineGetImage()
2302 register int x, y, src_offset_x, src_offset_y; in gdTransformAffineCopy() local
2319 if (src_region->x > 0 || src_region->y > 0 in gdTransformAffineCopy()
2327 gdImageSetClip(src, src_region->x, src_region->y, in gdTransformAffineCopy()
2329 src_region->y + src_region->height - 1); in gdTransformAffineCopy()
2344 end_y = bbox.height + abs(bbox.y); in gdTransformAffineCopy()
2353 src_offset_y = src_region->y; in gdTransformAffineCopy()
2356 for (y = bbox.y; y <= end_y; y++) { in gdTransformAffineCopy()
2357 pt.y = y + 0.5; in gdTransformAffineCopy()
2361 …ImageSetPixel(dst, dst_x + x, dst_y + y, getPixelInterpolated(src, src_offset_x + src_pt.x, src_of… in gdTransformAffineCopy()
2365 for (y = 0; y <= end_y; y++) { in gdTransformAffineCopy()
2369 pt.y = y + 0.5 + bbox.y; in gdTransformAffineCopy()
2370 if ((dst_y + y) < 0 || ((dst_y + y) > gdImageSY(dst) -1)) { in gdTransformAffineCopy()
2374 tdst_p = dst->tpixels[dst_y + y] + dst_x; in gdTransformAffineCopy()
2376 dst_p = dst->pixels[dst_y + y] + dst_x; in gdTransformAffineCopy()
2387 *(tdst_p++) = getPixelInterpolated(src, src_offset_x + src_pt.x, src_offset_y + src_pt.y, -1); in gdTransformAffineCopy()
2389 *(dst_p++) = getPixelInterpolated(src, src_offset_x + src_pt.x, src_offset_y + src_pt.y, -1); in gdTransformAffineCopy()
2424 extent[0].y=0.0; in gdTransformAffineBoundingBox()
2426 extent[1].y=0.0; in gdTransformAffineBoundingBox()
2428 extent[2].y=(double) src->height; in gdTransformAffineBoundingBox()
2430 extent[3].y=(double) src->height; in gdTransformAffineBoundingBox()
2444 if (min.y > extent[i].y) in gdTransformAffineBoundingBox()
2445 min.y=extent[i].y; in gdTransformAffineBoundingBox()
2448 if (max.y < extent[i].y) in gdTransformAffineBoundingBox()
2449 max.y=extent[i].y; in gdTransformAffineBoundingBox()
2452 bbox->y = (int) min.y; in gdTransformAffineBoundingBox()
2454 bbox->height = (int) floor(max.y - min.y); in gdTransformAffineBoundingBox()