/PHP-8.3/ext/gd/libgd/ |
H A D | gd_transform.c | 8 for (y = 0; y < im->sy / 2; y++) { in gdImageFlipVertical() 10 int *row_src = im->tpixels[im->sy - 1 - y]; in gdImageFlipVertical() 14 row_dst[x] = im->tpixels[im->sy - 1 - y][x]; in gdImageFlipVertical() 20 for (y = 0; y < im->sy / 2; y++) { in gdImageFlipVertical() 23 im->pixels[y][x] = im->pixels[im->sy - 1 - y][x]; in gdImageFlipVertical() 24 im->pixels[im->sy - 1 - y][x] = p; in gdImageFlipVertical() 39 for (y = 0; y < im->sy; y++) { in gdImageFlipHorizontal() 53 for (y = 0; y < im->sy; y++) { in gdImageFlipHorizontal()
|
H A D | gd_gd.c | 97 static gdImagePtr _gdCreateFromFile (gdIOCtx * in, int *sx, int *sy) in _gdCreateFromFile() argument 117 if (!gdGetWord(sy, in)) { in _gdCreateFromFile() 121 GD2_DBG(printf("Image is %dx%d\n", *sx, *sy)); in _gdCreateFromFile() 124 im = gdImageCreateTrueColor(*sx, *sy); in _gdCreateFromFile() 126 im = gdImageCreate(*sx, *sy); in _gdCreateFromFile() 167 int sx, sy; in gdImageCreateFromGdCtx() local 172 im = _gdCreateFromFile(in, &sx, &sy); in gdImageCreateFromGdCtx() 181 for (y = 0; y < sy; y++) { in gdImageCreateFromGdCtx() 191 for (y = 0; y < sy; y++) { in gdImageCreateFromGdCtx() 242 gdPutWord(im->sy, out); in _gdPutHeader() [all …]
|
H A D | gd_rotate.c | 136 for (i = 0; i < src->sy; i++) { in gdImageSkewY() 182 if ((iYPos >= 0) && (iYPos < dst->sy)) { in gdImageSkewY() 190 if (i < dst->sy) { in gdImageSkewY() 195 while (++i < dst->sy) { in gdImageSkewY() 214 dst = gdImageCreateTrueColor(src->sy, src->sx); in gdImageRotate90() 224 for (uY = 0; uY<src->sy; uY++) { in gdImageRotate90() 237 gdImageSetPixel(dst, uY, (dst->sy - uX - 1), c); in gdImageRotate90() 261 dst = gdImageCreateTrueColor(src->sx, src->sy); in gdImageRotate180() 271 for (uY = 0; uY<src->sy; uY++) { in gdImageRotate180() 309 dst = gdImageCreateTrueColor (src->sy, src->sx); in gdImageRotate270() [all …]
|
H A D | gd_color_match.c | 24 if( (im1->sx != im2->sx) || (im1->sy != im2->sy) ) { in gdImageColorMatch() 35 for( y=0; y<im1->sy; y++ ) { in gdImageColorMatch()
|
H A D | gd_filter.c | 70 for (y = 0; y < im->sy; y++) { in gdImageScatterEx() 92 for (y = 0; y < im->sy; y++) { in gdImageScatterEx() 128 for (y=0; y<src->sy; ++y) { in gdImageNegate() 165 for (y=0; y<src->sy; ++y) { in gdImageGrayScale() 204 for (y=0; y<src->sy; ++y) { in gdImageBrightness() 250 for (y=0; y<src->sy; ++y) { in gdImageContrast() 305 for (y=0; y<src->sy; ++y) { in gdImageColor() 358 gdImageCopy(srcback, src,0,0,0,0,src->sx,src->sy); in gdImageConvolution() 362 for ( y=0; y<src->sy; y++) { in gdImageConvolution() 369 int yv = MIN(MAX(y - 1 + j, 0), src->sy - 1); in gdImageConvolution() [all …]
|
H A D | gd_gd2.c | 99 if (!gdGetWord(sy, in)) { in _gd2GetHeader() 103 GD2_DBG(gd_error("Image is %dx%d", *sx, *sy)); in _gd2GetHeader() 193 im = gdImageCreateTrueColor(*sx, *sy); in _gd2CreateFromFile() 195 im = gdImageCreate(*sx, *sy); in _gd2CreateFromFile() 269 int sx, sy; in gdImageCreateFromGd2Ctx() local 320 if (yhi > im->sy) { in gdImageCreateFromGd2Ctx() 321 yhi = im->sy; in gdImageCreateFromGd2Ctx() 657 gdPutWord(im->sy, out); in _gd2PutHeader() 702 ncy = (im->sy + cs - 1) / cs; in _gdImageGd2() 746 if (yhi > im->sy) { in _gdImageGd2() [all …]
|
H A D | gd_xbm.c | 147 if (y == im->sy) { in gdImageCreateFromXbm() 179 int x, y, c, b, sx, sy, p; in gdImageXbmCtx() local 210 sy = gdImageSY(image); in gdImageXbmCtx() 211 for (y = 0; y < sy; y++) { in gdImageXbmCtx()
|
H A D | gd.c | 200 im->sy = sy; in gdImageCreate() 252 im->sy = sy; in gdImageCreateTrueColor() 2560 sy = sy1; in gdImageCopyResampled() 2564 yportion = 1.0f - (sy - floor_cast(sy)); in gdImageCopyResampled() 2568 sy = floor_cast(sy); in gdImageCopyResampled() 2605 sy += 1.0f; 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() [all …]
|
H A D | gd_pixelate.c | 14 for (y = 0; y < im->sy; y += block_size) { in gdImagePixelate() 24 for (y = 0; y < im->sy; y += block_size) { in gdImagePixelate()
|
H A D | gd_topal.c | 324 int num_rows = oim->sy; in prescan_quantize() 1140 int num_rows = oim->sy; in pass2_no_dither() 1205 int num_rows = oim->sy; in pass2_fs_dither() 1450 for (i = 0; i < oim->sy; i++) in free_truecolor_image_data() 1472 nim = gdImageCreate(oim->sx, oim->sy); in gdImageTrueColorToPaletteBody() 1484 gdImageCopy(nim, oim, 0, 0, 0, 0, oim->sx, oim->sy); in gdImageTrueColorToPaletteBody() 1501 nim->pixels = gdCalloc (oim->sy, sizeof (unsigned char *)); in gdImageTrueColorToPaletteBody() 1507 for (i = 0; (i < nim->sy); i++) in gdImageTrueColorToPaletteBody() 1634 for (i = 0; i < nim->sy; i++) in gdImageTrueColorToPaletteBody()
|
H A D | gd_interpolation.c | 692 int sy = (int)(y); in getPixelInterpolateWeight() local 694 const double yf = y - (double)sy; in getPixelInterpolateWeight() 703 …im->trueColor == 1 ? getPixelOverflowTC(im, sx, sy, bgColor) : getPixelOverflowPalette(im,… in getPixelInterpolateWeight() 704 …trueColor == 1 ? getPixelOverflowTC(im, sx - 1, sy, bgColor) : getPixelOverflowPalette(im, sx … in getPixelInterpolateWeight() 705 …im->trueColor == 1 ? getPixelOverflowTC(im, sx, sy - 1, bgColor) : getPixelOverflowPalette(im,… in getPixelInterpolateWeight() 706 …->trueColor == 1 ? getPixelOverflowTC(im, sx - 1, sy - 1, bgColor) : getPixelOverflowPalette(im, s… in getPixelInterpolateWeight() 710 if (y < 0) sy--; in getPixelInterpolateWeight() 1112 const float dy = (float)im->sy / (float)new_height; in gdImageScaleNearestNeighbour() 1618 im_scaled = gdImageScaleTwoPass(src, src->sx, src->sy, new_width, new_height); in gdImageScale() 2169 gdImagePtr dst = gdImageCreateTrueColor(src->sx, src->sy); in gdImageRotateInterpolated() [all …]
|
H A D | gd.h | 174 int sy; member 340 gdImagePtr gdImageCreate(int sx, int sy); 346 gdImagePtr gdImageCreateTrueColor(int sx, int sy); 767 #define gdImageSY(im) ((im)->sy)
|
H A D | gd_jpeg.c | 203 cinfo.image_height = im->sy; in _gdImageJpegCtx() 242 for (i = 0; i < im->sy; i++) { in _gdImageJpegCtx() 257 for (i = 0; i < im->sy; i++) { in _gdImageJpegCtx()
|
H A D | gd_bmp.c | 119 bitmap_size = ((im->sx * (im->trueColor ? 24 : 8)) / 8) * im->sy; in gdImageBmpCtx() 145 gdBMPPutInt(out, im->sy); /* height */ in gdImageBmpCtx() 179 for (row = (im->sy - 1); row >= 0; row--) { in gdImageBmpCtx() 234 for (row = (im->sy - 1); row >= 0; row--) { in gdImageBmpCtx()
|
H A D | gd_gif_out.c | 147 out, tim->sx, tim->sy, interlace, 0, tim->transparent, BitsPerPixel, in _gdImageGifCtx()
|
H A D | gd_png.c | 493 int height = im->sy; in gdImagePngCtxEx()
|
H A D | gdft.c | 723 if (y >= im->sy || y < 0) {
|
/PHP-8.3/ext/gd/tests/ |
H A D | imagefttext.phpt | 18 $sy = imagesy($im); 23 imagefilledrectangle($im, 0, 0, $sx - 1, $sy - 1, $colour_b); 24 imagefttext($im, $sy * 0.75, 0, 0, $sy - 1, $colour_w, $fontfile, "A", array()); 27 for ($y = 0; $y < $sy; ++$y) { 38 return ($cnt < ($sx * $sy));
|