Searched refs:sy (Results 1 - 19 of 19) sorted by relevance

/PHP_TRUNK/ext/gd/libgd/
H A Dgd_color.c29 if( (im1->sx != im2->sx) || (im1->sy != im2->sy) ) {
40 for( y=0; y<im1->sy; y++ ) {
H A Dgd_filter.c30 for (y=0; y<src->sy; ++y) {
62 for (y=0; y<src->sy; ++y) {
99 for (y=0; y<src->sy; ++y) {
145 for (y=0; y<src->sy; ++y) {
200 for (y=0; y<src->sy; ++y) {
244 srcback = gdImageCreateTrueColor (src->sx, src->sy);
253 gdImageCopy(srcback, src,0,0,0,0,src->sx,src->sy);
257 for ( y=0; y<src->sy; y++) {
263 int yv = MIN(MAX(y - 1 + j, 0), src->sy - 1);
310 srcback = gdImageCreateTrueColor (src->sx, src->sy);
[all...]
H A Dgd_gd.c97 static gdImagePtr _gdCreateFromFile (gdIOCtx * in, int *sx, int *sy) argument
117 if (!gdGetWord(sy, in)) {
121 GD2_DBG(printf("Image is %dx%d\n", *sx, *sy));
124 im = gdImageCreateTrueColor(*sx, *sy);
126 im = gdImageCreate(*sx, *sy);
167 int sx, sy; local
172 im = _gdCreateFromFile(in, &sx, &sy);
181 for (y = 0; y < sy; y++) {
191 for (y = 0; y < sy; y++) {
242 gdPutWord(im->sy, ou
[all...]
H A Dgd_gd2.c54 static int _gd2GetHeader(gdIOCtxPtr in, int *sx, int *sy, int *cs, int *vers, int *fmt, int *ncx, int *ncy, t_chunk_info ** chunkIdx) argument
98 if (!gdGetWord(sy, in)) {
102 GD2_DBG(php_gd_error("Image is %dx%d", *sx, *sy));
165 static gdImagePtr _gd2CreateFromFile (gdIOCtxPtr in, int *sx, int *sy, int *cs, int *vers, int *fmt, int *ncx, int *ncy, t_chunk_info ** cidx) argument
169 if (_gd2GetHeader (in, sx, sy, cs, vers, fmt, ncx, ncy, cidx) != 1) {
175 im = gdImageCreateTrueColor(*sx, *sy);
177 im = gdImageCreate(*sx, *sy);
251 int sx, sy; local
269 if (!(im = _gd2CreateFromFile(in, &sx, &sy, &cs, &vers, &fmt, &ncx, &ncy, &chunkIdx))) {
302 if (yhi > im->sy) {
[all...]
H A Dgd_gif_out.c135 out, tim->sx, tim->sy, tim->interlace, 0, tim->transparent, BitsPerPixel,
H A Dgd_pixelate.c14 for (y = 0; y < im->sy; y += block_size) {
24 for (y = 0; y < im->sy; y += block_size) {
H A Dgd_topal.c361 int num_rows = oim->sy;
1291 int num_rows = oim->sy;
1396 int num_rows = oim->sy;
1791 nim = gdImageCreate(oim->sx, oim->sy);
1803 gdImageCopy(nim, oim, 0, 0, 0, 0, oim->sx, oim->sy);
1820 nim->pixels = gdCalloc (sizeof (unsigned char *), oim->sy);
1826 for (i = 0; (i < nim->sy); i++)
2010 for (i = 0; i < oim->sy; i++)
2024 for (i = 0; i < nim->sy; i++)
H A Dwebpimg.c359 int height = im->sy;
540 int y_height = im2->sy;
552 im = gdImageCreateTrueColor(im2->sx, im2->sy);
557 gdImageCopy(im, im2, 0, 0, 0, 0, im->sx, im->sy);
H A Dgd_transform.c8 for (y = 0; y < im->sy / 2; y++) {
10 int *row_src = im->tpixels[im->sy - 1 - y];
14 row_dst[x] = im->tpixels[im->sy - 1 - y][x];
20 for (y = 0; y < im->sy / 2; y++) {
23 im->pixels[y][x] = im->pixels[im->sy - 1 - y][x];
24 im->pixels[im->sy - 1 - y][x] = p;
39 for (y = 0; y < im->sy; y++) {
53 for (y = 0; y < im->sy; y++) {
H A Dgd_png.c468 int height = im->sy;
H A Dgd_rotate.c140 for (i = 0; i < src->sy; i++) {
186 if ((iYPos >= 0) && (iYPos < dst->sy)) {
194 if (i < dst->sy) {
199 while (++i < dst->sy) {
218 dst = gdImageCreateTrueColor(src->sy, src->sx);
228 for (uY = 0; uY<src->sy; uY++) {
239 gdImageSetPixel(dst, uY, (dst->sy - uX - 1), dst->transparent);
241 gdImageSetPixel(dst, uY, (dst->sy - uX - 1), c);
265 dst = gdImageCreateTrueColor(src->sx, src->sy);
275 for (uY = 0; uY<src->sy; u
[all...]
H A Dgd_webp.c169 int height = im->sy;
H A Dgd.c123 gdImagePtr gdImageCreate (int sx, int sy) argument
128 if (overflow2(sx, sy)) {
132 if (overflow2(sizeof(unsigned char *), sy)) {
139 im->pixels = (unsigned char **) gdMalloc(sizeof(unsigned char *) * sy);
140 im->AA_opacity = (unsigned char **) gdMalloc(sizeof(unsigned char *) * sy);
146 for (i = 0; i < sy; i++) {
152 im->sy = sy;
170 im->cy2 = im->sy - 1;
176 gdImagePtr gdImageCreateTrueColor (int sx, int sy) argument
2468 double sx, sy; local
2785 int sx, sy; local
3024 const unsigned int sy = gdImageSY(src); local
[all...]
H A Dxbm.c144 if (y == im->sy) {
176 int x, y, c, b, sx, sy, p; local
207 sy = gdImageSY(image);
208 for (y = 0; y < sy; y++) {
213 if ((b == 128) || (x == sx && y == sy)) {
H A Dgd.h62 access sx, sy, the color table, and colorsTotal for
173 int sy; member in struct:gdImageStruct
348 gdImagePtr gdImageCreate(int sx, int sy);
354 gdImagePtr gdImageCreateTrueColor(int sx, int sy);
729 #define gdImageSY(im) ((im)->sy)
H A Dgd_crop.c65 if (crop->x < 0 || crop->x>=src->sx || crop->y<0 || crop->y>=src->sy) {
73 if ((src->sy - crop->height) < crop->y) {
74 crop->height = src->sy - crop->y;
H A Dgd_interpolation.c749 int sy = (int)(y); local
751 const double yf = y - (double)sy;
760 const int c1 = im->trueColor == 1 ? getPixelOverflowTC(im, sx, sy, bgColor) : getPixelOverflowPalette(im, sx, sy, bgColor);
761 const int c2 = im->trueColor == 1 ? getPixelOverflowTC(im, sx - 1, sy, bgColor) : getPixelOverflowPalette(im, sx - 1, sy, bgColor);
762 const int c3 = im->trueColor == 1 ? getPixelOverflowTC(im, sx, sy - 1, bgColor) : getPixelOverflowPalette(im, sx, sy - 1, bgColor);
763 const int c4 = im->trueColor == 1 ? getPixelOverflowTC(im, sx - 1, sy - 1, bgColor) : getPixelOverflowPalette(im, sx, sy
[all...]
H A Dgd_jpeg.c194 cinfo.image_height = im->sy;
228 for (i = 0; i < im->sy; i++) {
243 for (i = 0; i < im->sy; i++) {
H A Dgdft.c705 if (y >= im->sy || y < 0) {

Completed in 44 milliseconds