Searched refs:im2 (Results 1 - 8 of 8) sorted by relevance

/PHP_TRUNK/Zend/
H A Dbench.php51 $s=0; $rec=0; $imc=0; $re=0; $im=0; $re2=0; $im2=0;
64 $im2=$im*$im; variable
65 while( ((($re2+$im2)<1000000) && $color>0)) {
67 $re=$re2-$im2+$rec;
69 $im2=$im*$im; variable
/PHP_TRUNK/ext/gd/libgd/
H A Dgd_color.c12 /* bring the palette colors in im2 to be closer to im1
15 int gdImageColorMatch (gdImagePtr im1, gdImagePtr im2) argument
26 if( im2->trueColor ) {
27 return -2; /* im2 must be indexed */
29 if( (im1->sx != im2->sx) || (im1->sy != im2->sy) ) {
32 if (im2->colorsTotal<1) {
36 buf = (unsigned long *)safe_emalloc(sizeof(unsigned long), 5 * im2->colorsTotal, 0);
37 memset( buf, 0, sizeof(unsigned long) * 5 * im2->colorsTotal );
41 color = im2
[all...]
H A Dgdtest.c14 void CompareImages (char *msg, gdImagePtr im1, gdImagePtr im2);
22 gdImagePtr im, ref, im2, im3; local
70 im2 = gdImageCreateFromPng (in);
73 CompareImages ("GD->PNG File->GD", ref, im2);
76 gdImageDestroy (im2);
80 im2 = gdImageCreateFromPngCtx (ctx);
82 CompareImages ("GD->PNG ptr->GD", ref, im2);
84 gdImageDestroy (im2);
102 im2 = gdImageCreateFromGd2 (in);
105 CompareImages ("GD->GD2 File->GD", ref, im2);
360 CompareImages(char *msg, gdImagePtr im1, gdImagePtr im2) argument
[all...]
H A Dwebpimg.c535 void gd_RGBAToYUV420(gdImagePtr im2, argument
539 int y_width = im2->sx;
540 int y_height = im2->sy;
548 if (!im2->trueColor) {
552 im = gdImageCreateTrueColor(im2->sx, im2->sy);
557 gdImageCopy(im, im2, 0, 0, 0, 0, im->sx, im->sy);
560 im = im2;
H A Dgd_webp.c17 extern void gd_RGBAToYUV420(gdImagePtr im2,
H A Dgd.c2780 int gdImageCompare (gdImagePtr im1, gdImagePtr im2) argument
2787 if (im1->interlace != im2->interlace) {
2791 if (im1->transparent != im2->transparent) {
2795 if (im1->trueColor != im2->trueColor) {
2800 if (im1->sx != im2->sx) {
2802 if (im2->sx < im1->sx) {
2803 sx = im2->sx;
2808 if (im1->sy != im2->sy) {
2810 if (im2->sy < im1->sy) {
2811 sy = im2
[all...]
H A Dgd.h571 and im2 is the palette version */
572 int gdImageColorMatch(gdImagePtr im1, gdImagePtr im2);
804 int gdImageCompare(gdImagePtr im1, gdImagePtr im2);
/PHP_TRUNK/ext/gd/
H A Dgd.c179 ZEND_ARG_INFO(0, im2)
1642 /* {{{ proto bool imagecolormatch(resource im1, resource im2)
1647 gdImagePtr im1, im2; local
1655 ZEND_FETCH_RESOURCE(im2, gdImagePtr, IM2, -1, "Image", le_gd);
1657 result = gdImageColorMatch(im1, im2);

Completed in 25 milliseconds