[XviD-devel] xvid_bench from HEAD cvs gave me 2 quantizer CRC errors...is this expected?

Joe Millenbach jmillenbach at hotmail.com
Tue Jun 10 23:55:53 CEST 2003


...
=====  test quant =====
PLAINC -   quant4_intra 65.978 usec       crc=29809
PLAINC -   quant4_inter -96.911 usec       crc=12574
PLAINC - dequant4_intra -40.233 usec       crc=24052
PLAINC - dequant4_inter 145.859 usec       crc=63847
PLAINC -    quant_intra -71.991 usec       crc=25662
PLAINC -    quant_inter -61.561 usec       crc=23972
PLAINC -  dequant_intra 103.125 usec       crc=49900
PLAINC -  dequant_inter -69.530 usec       crc=48899
---
MMX    -   quant4_intra 15.273 usec       crc=3459
*** CRC ERROR! ***
MMX    -   quant4_inter 12.812 usec       crc=13247
*** CRC ERROR! ***
...

I'm using .NET Studio and want to make sure it's not my config...

Also the time calculation seems to be wrong for win32.  On mine it causes 
some negative times to be displayed.  Not sure if it's different on other 
versions of Visual Studio, but in .NET "CLOCKS_PER_SEC" = 1000.  And if I 
change the following line in xvid_bench.c from...

return clk * 1000000 / CLOCKS_PER_SEC;

to...

return clk * 1000;

It fixes the negative times.  I'm guessing it multiplies first then 
overflows the int.  Parenthesis would probably fix it too ("return clk * 
(1000000.0 / CLOCKS_PER_SEC);"...added the decimal to make the result a 
double just in case).

Thanks,
Joe

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



More information about the XviD-devel mailing list