/PHP-7.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 | 140 for (i = 0; i < src->sy; i++) { in gdImageSkewY() 186 if ((iYPos >= 0) && (iYPos < dst->sy)) { in gdImageSkewY() 194 if (i < dst->sy) { in gdImageSkewY() 199 while (++i < dst->sy) { in gdImageSkewY() 218 dst = gdImageCreateTrueColor(src->sy, src->sx); in gdImageRotate90() 228 for (uY = 0; uY<src->sy; uY++) { in gdImageRotate90() 241 gdImageSetPixel(dst, uY, (dst->sy - uX - 1), c); in gdImageRotate90() 265 dst = gdImageCreateTrueColor(src->sx, src->sy); in gdImageRotate180() 275 for (uY = 0; uY<src->sy; uY++) { in gdImageRotate180() 313 dst = gdImageCreateTrueColor (src->sy, src->sx); in gdImageRotate270() [all …]
|
H A D | gd_color_match.c | 29 if( (im1->sx != im2->sx) || (im1->sy != im2->sy) ) { in gdImageColorMatch() 40 for( y=0; y<im1->sy; y++ ) { in gdImageColorMatch()
|
H A D | gd_filter.c | 30 for (y=0; y<src->sy; ++y) { in gdImageNegate() 67 for (y=0; y<src->sy; ++y) { in gdImageGrayScale() 106 for (y=0; y<src->sy; ++y) { in gdImageBrightness() 152 for (y=0; y<src->sy; ++y) { in gdImageContrast() 207 for (y=0; y<src->sy; ++y) { in gdImageColor() 251 srcback = gdImageCreateTrueColor (src->sx, src->sy); in gdImageConvolution() 260 gdImageCopy(srcback, src,0,0,0,0,src->sx,src->sy); in gdImageConvolution() 264 for ( y=0; y<src->sy; y++) { in gdImageConvolution() 271 int yv = MIN(MAX(y - 1 + j, 0), src->sy - 1); in gdImageConvolution() 322 gdImageCopy(srcback, src,0,0,0,0,src->sx,src->sy); in gdImageSelectiveBlur() [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 | 149 if (y == im->sy) { in gdImageCreateFromXbm() 181 int x, y, c, b, sx, sy, p; in gdImageXbmCtx() local 212 sy = gdImageSY(image); in gdImageXbmCtx() 213 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() 2558 sy = sy1; in gdImageCopyResampled() 2562 yportion = 1.0f - (sy - floor_cast(sy)); in gdImageCopyResampled() 2566 sy = floor_cast(sy); in gdImageCopyResampled() 2603 sy += 1.0f; in gdImageCopyResampled() 2876 int sx, sy; in gdImageCompare() local 2898 sy = im1->sy; in gdImageCompare() 2899 if (im1->sy != im2->sy) { in gdImageCompare() 2901 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 (sizeof (unsigned char *), oim->sy); 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 | 688 int sy = (int)(y); in getPixelInterpolateWeight() local 690 const double yf = y - (double)sy; in getPixelInterpolateWeight() 699 …im->trueColor == 1 ? getPixelOverflowTC(im, sx, sy, bgColor) : getPixelOverflowPalette(im,… in getPixelInterpolateWeight() 700 …trueColor == 1 ? getPixelOverflowTC(im, sx - 1, sy, bgColor) : getPixelOverflowPalette(im, sx … in getPixelInterpolateWeight() 701 …im->trueColor == 1 ? getPixelOverflowTC(im, sx, sy - 1, bgColor) : getPixelOverflowPalette(im,… in getPixelInterpolateWeight() 702 …->trueColor == 1 ? getPixelOverflowTC(im, sx - 1, sy - 1, bgColor) : getPixelOverflowPalette(im, s… in getPixelInterpolateWeight() 706 if (y < 0) sy--; in getPixelInterpolateWeight() 1078 const float dy = (float)im->sy / (float)new_height; in gdImageScaleNearestNeighbour() 1634 im_scaled = gdImageScaleTwoPass(src, src->sx, src->sy, new_width, new_height); in gdImageScale() 2185 gdImagePtr dst = gdImageCreateTrueColor(src->sx, src->sy); in gdImageRotateInterpolated() [all …]
|
H A D | gd.h | 184 int sy; member 350 gdImagePtr gdImageCreate(int sx, int sy); 356 gdImagePtr gdImageCreateTrueColor(int sx, int sy); 738 #define gdImageSY(im) ((im)->sy)
|
H A D | gd_jpeg.c | 195 cinfo.image_height = im->sy; in gdImageJpegCtx() 234 for (i = 0; i < im->sy; i++) { in gdImageJpegCtx() 249 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 | 135 out, tim->sx, tim->sy, interlace, 0, tim->transparent, BitsPerPixel, in gdImageGifCtx()
|
H A D | gd_png.c | 483 int height = im->sy; in gdImagePngCtxEx()
|
H A D | gdft.c | 713 if (y >= im->sy || y < 0) {
|
/PHP-7.3/ext/gd/tests/ |
H A D | imagefttext.phpt | 19 $sy = imagesy($im); 24 imagefilledrectangle($im, 0, 0, $sx - 1, $sy - 1, $colour_b); 25 imagefttext($im, $sy * 0.75, 0, 0, $sy - 1, $colour_w, $fontfile, "A", array()); 28 for ($y = 0; $y < $sy; ++$y) { 39 return ($cnt < ($sx * $sy));
|