Home
last modified time | relevance | path

Searched refs:im2 (Results 1 – 20 of 20) sorted by relevance

/php-src/ext/gd/libgd/
H A Dgdtest.c76 gdImageDestroy (im2); in main()
84 gdImageDestroy (im2); in main()
108 gdImageDestroy (im2); in main()
119 gdImageDestroy (im2); in main()
143 gdImageDestroy (im2); in main()
154 gdImageDestroy (im2); in main()
168 if (im2 == NULL) in main()
229 gdImageDestroy (im2); in main()
270 gdImageDestroy (im2); in main()
290 if (!im2) in main()
[all …]
H A Dgd_color_match.c10 int gdImageColorMatch (gdImagePtr im1, gdImagePtr im2) in gdImageColorMatch() argument
21 if( im2->trueColor ) { in gdImageColorMatch()
24 if( (im1->sx != im2->sx) || (im1->sy != im2->sy) ) { in gdImageColorMatch()
27 if (im2->colorsTotal<1) { in gdImageColorMatch()
36 color = im2->pixels[y][x]; in gdImageColorMatch()
47 for (color=0; color<im2->colorsTotal; color++) { in gdImageColorMatch()
50 im2->red[color] = *(bp++) / count; in gdImageColorMatch()
51 im2->green[color] = *(bp++) / count; in gdImageColorMatch()
52 im2->blue[color] = *(bp++) / count; in gdImageColorMatch()
53 im2->alpha[color] = *(bp++) / count; in gdImageColorMatch()
H A Dgd.c2925 if (im1->interlace != im2->interlace) { in gdImageCompare()
2929 if (im1->transparent != im2->transparent) { in gdImageCompare()
2933 if (im1->trueColor != im2->trueColor) { in gdImageCompare()
2938 if (im1->sx != im2->sx) { in gdImageCompare()
2940 if (im2->sx < im1->sx) { in gdImageCompare()
2941 sx = im2->sx; in gdImageCompare()
2946 if (im1->sy != im2->sy) { in gdImageCompare()
2948 if (im2->sy < im1->sy) { in gdImageCompare()
2949 sy = im2->sy; in gdImageCompare()
2953 if (im1->colorsTotal != im2->colorsTotal) { in gdImageCompare()
[all …]
H A Dgd.h576 int gdImageColorMatch(gdImagePtr im1, gdImagePtr im2);
846 int gdImageCompare(gdImagePtr im1, gdImagePtr im2);
/php-src/ext/gd/tests/
H A Dcopypalette.phpt13 $im2 = imagecreate(1,1);
14 imagepalettecopy($im2, $im);
17 $c = imagecolorsforindex($im2, $i);
28 $im2 = imagecreate(1,1);
31 imagepalettecopy($im2, $im);
32 $c = imagecolorsforindex($im2, 0);
H A Dimagewbmp-mb.phpt14 $im2 = imagecreatefromwbmp($file);
16 $c = imagecolorsforindex($im2, imagecolorat($im2, 3,3));
H A Dimagewbmp.phpt14 $im2 = imagecreatefromwbmp($file);
16 $c = imagecolorsforindex($im2, imagecolorat($im2, 3,3));
H A Dbug27582_1.phpt23 $im2 = imagecreatefrompng($dest);
24 $col = imagecolorat($im2, 5, 5);
25 $color = imagecolorsforindex($im2, $col);
H A Dcreatefromgd2.phpt16 $im2 = imagecreatefromgd2($file);
18 echo imagecolorat($im2, 4,4) == 0xffffff ? 'ok' : 'failed';
23 echo imagecolorat($im2, 4,4) == 0xffffff ? 'ok' : 'failed';
H A Dcreatefromwbmp-mb.phpt9 $im2 = imagecreatefromwbmp($file);
11 echo imagecolorat($im2, 3,3) == 0x0 ? 'ok' : 'failed';
H A Dcreatefromwbmp.phpt9 $im2 = imagecreatefromwbmp($file);
11 echo imagecolorat($im2, 3,3) == 0x0 ? 'ok' : 'failed';
H A Dcolormatch.phpt9 $im2 = imagecreate(5,5);
12 imagecolormatch($im, $im2);
H A Dbug24155.phpt21 $im2 = imagecreatefrompng($dest);
24 $col = imagecolorat($im2, 20, 20);
H A Dwebp_basic.phpt30 $im2 = imagecreatefromwebp($filename);
31 imagewebp($im2, $filename);
33 var_dump(calc_image_dissimilarity($im1, $im2) < 10e5);
H A Dpngcomp.phpt31 $im2 = imagecreatefrompng($cwd . '/test_pngcomp.png');
32 $col = imagecolorat($im2, 8,8);
H A Dgif.phpt16 $im2 = imagecreatefromgif($cwd . '/test_gif.gif');
18 $c = imagecolorsforindex($im2, imagecolorat($im2, 8,8));
/php-src/Zend/
H A Dbench.php51 $s=0; $rec=0; $imc=0; $re=0; $im=0; $re2=0; $im2=0;
64 $im2=$im*$im;
65 while( ((($re2+$im2)<1000000) && $color>0)) {
67 $re=$re2-$im2+$rec;
69 $im2=$im*$im;
/php-src/ext/gd/
H A Dgd.c769 gdImagePtr im1, im2; in PHP_FUNCTION() local
778 im2 = php_gd_libgdimageptr_from_zval_p(IM2); in PHP_FUNCTION()
780 result = gdImageColorMatch(im1, im2); in PHP_FUNCTION()
/php-src/ext/fileinfo/tests/
H A Dmagic私はガラスを食べられます28275 # IncrediMail CAB contains an initialisation file "content.ini" like in im2.ims
28281 # member Macromedia Flash data *.swf implies IncrediMail skin like in im2.ims
H A Dmagic28275 # IncrediMail CAB contains an initialisation file "content.ini" like in im2.ims
28281 # member Macromedia Flash data *.swf implies IncrediMail skin like in im2.ims

Completed in 184 milliseconds