google / compare-codecs

Apache License 2.0
49 stars 23 forks source link

Do sensible things for nonoverlapping PSNR ranges #36

Open alvestrand opened 9 years ago

alvestrand commented 9 years ago

At the moment, if all the PSNR values for one codec are higher than the best PSNR values for another codec, the "size AVG" calculation returns 0, and the "size DRATE" calculation returns a very large number.

These cases should be treated sensibly (either clamped to some arbitrary large/small number, or omitted from the "average improvement" calculation altogether).