19 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
20 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
* |
* |
22 |
* $Id: xvid_bench.c,v 1.29 2006-10-11 14:55:28 Skal Exp $ |
* $Id: xvid_bench.c,v 1.31 2006-10-13 15:19:48 Skal Exp $ |
23 |
* |
* |
24 |
****************************************************************************/ |
****************************************************************************/ |
25 |
|
|
2012 |
|
|
2013 |
t = gettime_usec(); |
t = gettime_usec(); |
2014 |
emms(); |
emms(); |
2015 |
for(tst=0; tst<nb_tests; ++tst) m = lum2x8(Ref1, 16); |
for(tst=0; tst<nb_tests; ++tst) m = lum2x8(Ref1+8, 16); |
2016 |
emms(); |
emms(); |
2017 |
t = (gettime_usec() - t) / nb_tests; |
t = (gettime_usec() - t) / nb_tests; |
2018 |
printf("%s - ssim-lum2x8 %.3f usec m=%d %s\n", |
printf("%s - ssim-lum2x8 %.3f usec m=%d %s\n", |
2019 |
cpu->name, t, m, |
cpu->name, t, m, |
2020 |
(m!=-841)?"| ERROR": "" ); |
(m!=681)?"| ERROR": "" ); |
2021 |
|
|
2022 |
t = gettime_usec(); |
t = gettime_usec(); |
2023 |
emms(); |
emms(); |
2024 |
for(tst=0; tst<nb_tests; ++tst) csim(Ref1, Ref2, 16, lumo, lumc, devs+0, devs+1, devs+2); |
for(tst=0; tst<nb_tests; ++tst) csim(Ref1, Ref2, 16, lumo, lumc, devs+0, devs+1, devs+2); |
2025 |
emms(); |
emms(); |
2026 |
t = (gettime_usec() - t) / nb_tests; |
t = (gettime_usec() - t) / nb_tests; |
2027 |
printf("%s - ssim-lum2x8 %.3f usec devs=[0x%x 0x%x 0x%x] %s\n", |
printf("%s - ssim-consim %.3f usec devs=[0x%x 0x%x 0x%x] %s\n", |
2028 |
cpu->name, t, devs[0], devs[1], devs[2], |
cpu->name, t, devs[0], devs[1], devs[2], |
2029 |
(devs[0]!=0xeba80 || devs[1]!=0x1053e7 || devs[2]!=0x51215)?"| ERROR": "" ); |
(devs[0]!=0xeba80 || devs[1]!=0x1053e7 || devs[2]!=0x51215)?"| ERROR": "" ); |
2030 |
|
|