--- trunk/xvidcore/examples/xvid_bench.c 2006/06/05 21:30:49 1707 +++ trunk/xvidcore/examples/xvid_bench.c 2006/10/30 11:21:42 1743 @@ -19,7 +19,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * - * $Id: xvid_bench.c,v 1.28 2006-06-05 21:30:49 Skal Exp $ + * $Id: xvid_bench.c,v 1.33 2006-10-30 11:21:42 Skal Exp $ * ****************************************************************************/ @@ -1725,8 +1725,8 @@ for(tst=0; tst255) ? 255 : v1; + Ref2[i] = (v2<0) ? 0 : (v2>255) ? 255 : v2; + } + lumc = ieee_rand(0, 255); + lumo = ieee_rand(0, 255); + + for(cpu = cpu_list; cpu->name!=0; ++cpu) + { + double t; + int m; + if (!init_cpu(cpu)) + continue; + lum8x8 = lum_8x8_c; + lum2x8 = lum_2x8_c; + csim = consim_c; + if (cpu->cpu & XVID_CPU_MMX){ + lum8x8 = lum_8x8_mmx; + csim = consim_mmx; + } + if (cpu->cpu & XVID_CPU_MMX){ + csim = consim_sse2; + } + + t = gettime_usec(); + emms(); + for(tst=0; tstname, t, m, + (m!=8230)?"| ERROR": "" ); + + t = gettime_usec(); + emms(); + for(tst=0; tstname, t, m, + (m!=681)?"| ERROR": "" ); + + t = gettime_usec(); + emms(); + for(tst=0; tstname, t, devs[0], devs[1], devs[2], + (devs[0]!=0x1bdf0f || devs[1]!=0x137258 || devs[2]!=0xcdb13)?"| ERROR": "" ); + printf( " --- \n" ); + } +} /********************************************************************* * main @@ -2015,6 +2166,8 @@ if (what==0 || what==12) test_gcd(); if (what==0 || what==13) test_compiler(); if (what==0 || what==14) test_yuv(); + if (what==0 || what==15) test_SSIM(); + if (what==0 || what==16) test_yuv2(); if (what==7) {