| /PHP_TRUNK/Zend/ |
| H A D | bench.php | 51 $s=0; $rec=0; $imc=0; $re=0; $im=0; $re2=0; $im2=0; 61 $im=$imc; variable 64 $im2=$im*$im; 66 $im=$re*$im*2+$imc; variable 69 $im2=$im*$im;
|
| /PHP_TRUNK/ext/zip/examples/ |
| H A D | im.php | 3 $im = imagecreatefromgif('zip://' . dirname(__FILE__) . '/test_im.zip#pear_item.gif'); variable 4 imagepng($im, 'a.png'); 9 $im = imagecreatefromstring($im_string); variable 10 imagepng($im, 'b.png');
|
| /PHP_TRUNK/ext/gd/libgd/ |
| H A D | gd2copypal.c | 14 gdImagePtr im; local 42 im = gdImageCreateFromGd2 (in); 44 if (!im) 50 gdImagePaletteCopy (im, pal); 56 gdImageDestroy (im); 59 gdImageGd2 (im, out, 128, 2); 62 gdImageDestroy (im);
|
| H A D | gd2time.c | 15 gdImagePtr im; local 46 im = gdImageCreateFromGd2Part (in, x, y, w, h); 49 if (!im) 54 gdImageDestroy (im);
|
| H A D | gd2topng.c | 13 gdImagePtr im; local 26 im = gdImageCreateFromGd2 (in); 28 if (!im) 37 gdImageDestroy (im); 41 gdImagePng (im, out); 46 gdImageDestroy (im);
|
| H A D | gd_arc.c | 17 void gdImageEllipse(gdImagePtr im, int mx, int my, int w, int h, int c) argument 24 gdImageSetPixel(im,mx+a, my, c); 25 gdImageSetPixel(im,mx-a, my, c); 49 gdImageSetPixel(im,mx1, my1, c); 50 gdImageSetPixel(im,mx1, my2, c); 51 gdImageSetPixel(im,mx2, my1, c); 52 gdImageSetPixel(im,mx2, my2, c); 56 void gdImageFilledEllipse (gdImagePtr im, int mx, int my, int w, int h, int c) argument 67 gdImageSetPixel(im, x, my, c); 97 gdImageSetPixel(im, [all...] |
| H A D | gd_filter.c | 419 int gdImageGaussianBlur(gdImagePtr im) argument 425 return gdImageConvolution(im, filter, 16, 0); 428 int gdImageEmboss(gdImagePtr im) argument 439 return gdImageConvolution(im, filter, 1, 127); 442 int gdImageMeanRemoval(gdImagePtr im) argument 448 return gdImageConvolution(im, filter, 1, 0); 451 int gdImageSmooth(gdImagePtr im, float weight) argument 459 return gdImageConvolution(im, filter, weight+8, 0);
|
| H A D | gd_gd.c | 11 extern void gdImageGd (gdImagePtr im, FILE * out); 22 int _gdGetColors (gdIOCtx * in, gdImagePtr im, int gd2xFlag) argument 34 if (trueColorFlag != im->trueColor) { 38 if (!im->trueColor) { 39 if (!gdGetWord(&im->colorsTotal, in)) { 42 if (im->colorsTotal > gdMaxColors) { 47 if (!gdGetInt(&im->transparent, in)) { 51 if (!gdGetByte(&im->colorsTotal, in)) { 54 if (!gdGetWord(&im->transparent, in)) { 57 if (im 99 gdImagePtr im; local 144 gdImagePtr im; local 157 gdImagePtr im; local 169 gdImagePtr im; local 212 _gdPutColors(gdImagePtr im, gdIOCtx * out) argument 231 _gdPutHeader(gdImagePtr im, gdIOCtx * out) argument 247 _gdImageGd(gdImagePtr im, gdIOCtx * out) argument 265 gdImageGd(gdImagePtr im, FILE * outFile) argument 272 gdImageGdPtr(gdImagePtr im, int *size) argument [all...] |
| H A D | gd_pixelate.c | 3 int gdImagePixelate(gdImagePtr im, int block_size, const unsigned int mode) argument 14 for (y = 0; y < im->sy; y += block_size) { 15 for (x = 0; x < im->sx; x += block_size) { 16 if (gdImageBoundsSafe(im, x, y)) { 17 int c = gdImageGetPixel(im, x, y); 18 gdImageFilledRectangle(im, x, y, x + block_size - 1, y + block_size - 1, c); 24 for (y = 0; y < im->sy; y += block_size) { 25 for (x = 0; x < im->sx; x += block_size) { 34 if (!gdImageBoundsSafe(im, x + cx, y + cy)) { 37 c = gdImageGetPixel(im, [all...] |
| H A D | gd_ss.c | 11 extern void gdImagePngToSink (gdImagePtr im, gdSinkPtr out); 20 void gdImagePngToSink (gdImagePtr im, gdSinkPtr outSink) argument 23 gdImagePngCtx(im, out); 30 gdImagePtr im; local 32 im = gdImageCreateFromPngCtx(in); 36 return im; 39 void gdImagePngToSink (gdImagePtr im, gdSinkPtr outSink) argument
|
| H A D | gd_wbmp.c | 131 gdImagePtr im = NULL; local 139 if (!(im = gdImageCreate (wbmp->width, wbmp->height))) { 145 white = gdImageColorAllocate(im, 255, 255, 255); 147 black = gdImageColorAllocate(im, 0, 0, 0); 154 gdImageSetPixel(im, col, row, white); 156 gdImageSetPixel(im, col, row, black); 163 return im; 171 gdImagePtr im; local 173 im = gdImageCreateFromWBMPCtx(in); 176 return im; 181 gdImagePtr im; local 191 gdImageWBMP(gdImagePtr im, int fg, FILE * outFile) argument 201 gdImageWBMPPtr(gdImagePtr im, int *size, int fg) argument [all...] |
| H A D | gd_webp.c | 15 gdImagePtr im); 29 gdImagePtr im; local 31 im = gdImageCreateFromWebpCtx(in); 34 return im; 43 gdImagePtr im; local 53 im = gdImageCreateTrueColor(width, height); 54 if (!im) { 57 gd_YUV420toRGBA(Y, U, V, im); 58 return im; 70 gdImagePtr im; local 97 gdImageWebpEx(gdImagePtr im, FILE * outFile, int quantization) argument 104 gdImageWebp(gdImagePtr im, FILE * outFile) argument 111 gdImageWebpPtr(gdImagePtr im, int *size) argument 122 gdImageWebpPtrEx(gdImagePtr im, int *size, int quantization) argument 155 gdImageWebpCtx(gdImagePtr im, gdIOCtx * outfile, int quantization) argument [all...] |
| H A D | gdparttopng.c | 13 gdImagePtr im; local 36 im = gdImageCreateFromGd2Part (in, x, y, w, h); 38 if (!im) 47 gdImageDestroy (im); 51 gdImagePng (im, out); 56 gdImageDestroy (im);
|
| H A D | gdtest.c | 22 gdImagePtr im, ref, im2, im3; local 44 im = gdImageCreateFromPng (in); 53 CompareImages ("Initial Versions", ref, im); 61 gdImagePng (im, out); 78 iptr = gdImagePngPtr (im, &sz); 93 gdImageGd2 (im, out, 128, 2); 110 iptr = gdImageGd2Ptr (im, 128, 2, &sz); 128 gdImageGd (im, out); 145 iptr = gdImageGdPtr (im, &sz); 187 gdImagePngToSink (im, [all...] |
| H A D | gdtopng.c | 12 gdImagePtr im; local 25 im = gdImageCreateFromGd (in); 27 if (!im) 36 gdImageDestroy (im); 39 gdImagePng (im, out); 41 gdImageDestroy (im);
|
| H A D | gdxpm.c | 24 gdImagePtr im = 0; local 35 if (!(im = gdImageCreate(image.width, image.height))) { 117 colors[i] = gdImageColorResolve(im, red, green, blue); 124 gdImageSetPixel(im, j, i, colors[k]); 132 return im;
|
| H A D | pngtogd.c | 13 gdImagePtr im; local 26 im = gdImageCreateFromPng (in); 28 if (!im) 37 gdImageDestroy (im); 40 gdImageGd (im, out); 42 gdImageDestroy (im);
|
| H A D | pngtogd2.c | 14 gdImagePtr im; local 31 im = gdImageCreateFromPng (in); 33 if (!im) 42 gdImageDestroy (im); 47 gdImageGd2 (im, out, cs, fmt); 49 gdImageDestroy (im);
|
| H A D | webpng.c | 28 gdImagePtr im = 0; local 61 im = gdImageCreateFromPng (in); 64 if (!im) 92 gdImageInterlace (im, 1); 97 gdImageInterlace (im, 0); 124 gdImageColorTransparent (im, -1); 130 gdImageColorTransparent (im, index); 140 if (!im->trueColor) 144 for (j = 0; (j < gdImageColorsTotal (im)); j++) 149 gdImageRed (im, [all...] |
| H A D | xbm.c | 43 gdImagePtr im; local 99 if(!(im = gdImageCreate(width, height))) { 102 gdImageColorAllocate(im, 255, 255, 255); 103 gdImageColorAllocate(im, 0, 0, 0); 140 gdImageSetPixel(im, x++, y, (b & bit) ? 1 : 0); 141 if (x == im->sx) { 144 if (y == im->sy) { 145 return im; 153 gdImageDestroy(im);
|
| H A D | gd_transform.c | 3 void gdImageFlipVertical(gdImagePtr im) argument 7 if (im->trueColor) { 8 for (y = 0; y < im->sy / 2; y++) { 9 int *row_dst = im->tpixels[y]; 10 int *row_src = im->tpixels[im->sy - 1 - y]; 11 for (x = 0; x < im->sx; x++) { 14 row_dst[x] = im->tpixels[im->sy - 1 - y][x]; 20 for (y = 0; y < im 31 gdImageFlipHorizontal(gdImagePtr im) argument 67 gdImageFlipBoth(gdImagePtr im) argument [all...] |
| H A D | gd_crop.c | 14 * im2 = gdImageAutoCrop(im, GD_CROP_SIDES); 27 static int gdGuessBackgroundColorFromCorners(gdImagePtr im, int *color); 28 static int gdColorMatch(gdImagePtr im, int col1, int col2, float threshold); 94 * im - Source image 103 gdImagePtr gdImageCropAuto(gdImagePtr im, const unsigned int mode) argument 105 const int width = gdImageSX(im); 106 const int height = gdImageSY(im); 119 color = gdImageGetTransparent(im); 123 color = gdImageColorClosestAlpha(im, 0, 0, 0, 0); 127 color = gdImageColorClosestAlpha(im, 25 216 gdImageCropThreshold(gdImagePtr im, const unsigned int color, const float threshold) argument 293 gdGuessBackgroundColorFromCorners(gdImagePtr im, int *color) argument 333 gdColorMatch(gdImagePtr im, int col1, int col2, float threshold) argument [all...] |
| H A D | gd_png.c | 95 gdImagePtr im; local 97 im = gdImageCreateFromPngCtx(in); 100 return im; 105 gdImagePtr im; local 107 im = gdImageCreateFromPngCtx(in); 109 return im; 132 gdImagePtr im = NULL; local 196 im = gdImageCreateTrueColor((int) width, (int) height); 198 im = gdImageCreate((int) width, (int) height); 200 if (im 420 gdImagePngEx(gdImagePtr im, FILE * outFile, int level, int basefilter) argument 427 gdImagePng(gdImagePtr im, FILE * outFile) argument 434 gdImagePngPtr(gdImagePtr im, int *size) argument 445 gdImagePngPtrEx(gdImagePtr im, int *size, int level, int basefilter) argument 455 gdImagePngCtx(gdImagePtr im, gdIOCtx * outfile) argument 464 gdImagePngCtxEx(gdImagePtr im, gdIOCtx * outfile, int level, int basefilter) argument [all...] |
| H A D | gd_jpeg.c | 140 void gdImageJpeg (gdImagePtr im, FILE * outFile, int quality) argument 143 gdImageJpegCtx (im, out, quality); 147 void *gdImageJpegPtr (gdImagePtr im, int *size, int quality) argument 151 gdImageJpegCtx (im, out, quality); 160 void gdImageJpegCtx (gdImagePtr im, gdIOCtx * outfile, int quality) argument 189 cinfo.image_width = im->sx; 190 cinfo.image_height = im->sy; 199 if (gdImageGetInterlaced (im)) { 217 if (im->trueColor) { 224 for (i = 0; i < im 279 gdImagePtr im; local 294 gdImagePtr im; local 323 volatile gdImagePtr im = 0; local [all...] |
| /PHP_TRUNK/ext/gd/ |
| H A D | gd_ctx.c | 83 gdImagePtr im; local 111 ZEND_FETCH_RESOURCE(im, gdImagePtr, &imgind, -1, "Image", phpi_get_le_gd()); 162 (*func_p)(im, ctx, q); 168 (*func_p)(im, ctx, q); 171 (*func_p)(im, ctx, q, f); 176 for(i=0; i < gdImageColorsTotal(im); i++) { 177 if(!gdImageRed(im, i) && !gdImageGreen(im, i) && !gdImageBlue(im, i)) break; 182 (*func_p)(im, fil [all...] |