summaryrefslogtreecommitdiff
path: root/tests/tiny_psnr.c
Commit message (Collapse)AuthorAge
* Drop pointless assert.h #includesDiego Biurrun2016-05-03
|
* tiny_psnr: Support large filesThomas Lee2016-02-09
| | | | | | | If an input file is bigger than 2GB (assume sizeof(int) == 4)), size0/size1 will overflow, making stddev and PSNR invalid. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* tiny_psnr: Use the correct abs() versionVittorio Giovara2015-09-29
|
* tiny_psnr: switch f32 handling to floating pointAnton Khirnov2013-10-15
| | | | Also add support for f64.
* tiny_psnr: fix range calculation for sample size of 32 bitsMans Rullgard2012-10-15
| | | | | | | | | For a sample size of 32 bits, the shift would overflow producing undefined results. Incidentally, in the only test currently using 32-bit samples, the output matches the reference exactly on most systems meaning the bad 'max' value is never used. Signed-off-by: Mans Rullgard <mans@mansr.com>
* tiny_psnr: check for specified sample size less than 1Mans Rullgard2012-10-15
| | | | | | | A zero or negative sample size is impossible and should be reported as an error. Signed-off-by: Mans Rullgard <mans@mansr.com>
* tiny_psnr: support 32-bit float samplesMans Rullgard2012-07-29
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* tests: K&R formatting cosmetics for test programsGaurav Narula2012-01-18
|
* tests: Remove disabled code.Diego Biurrun2011-04-29
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* tiny_psnr: change error exit code from -1 to 1Måns Rullgård2010-07-09
| | | | Originally committed as revision 24149 to svn://svn.ffmpeg.org/ffmpeg/trunk
* tiny_psnr: check fread() return valuesMåns Rullgård2010-07-09
| | | | Originally committed as revision 24148 to svn://svn.ffmpeg.org/ffmpeg/trunk
* tiny_psnr: use abs()Måns Rullgård2010-07-09
| | | | Originally committed as revision 24146 to svn://svn.ffmpeg.org/ffmpeg/trunk
* tiny_psnr: skip wav headers on input filesMåns Rullgård2010-07-09
| | | | | | | | | | The byte count printed excludes the header, and offsets are applied after the the headers are skipped. Reference files updated to reflect new output. Some stddev/psnr values have changed slightly due to headers no longer being compared. Originally committed as revision 24143 to svn://svn.ffmpeg.org/ffmpeg/trunk
* tiny_psnr: print max absolute difference between filesVitor Sessak2010-07-09
| | | | | | | | | Regression test reference updates are due to the extra output from tiny_psnr. Patch by Vitor Sessak Originally committed as revision 24132 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fix a rounding error in the PSNR calculation and update the many regressionJustin Ruggles2009-11-09
| | | | | | test references that this change affects. Originally committed as revision 20492 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix tiny_psnr so it compares all bytes (it did skip the last block).Michael Niedermayer2008-07-24
| | | | | | | | | Also display both file sizes and slightly change the output formatting. [not split in 3 patches to avoid the huge checksum files from being changed and having to be reviewed 3 times, if people want it split i can revert and split it] Originally committed as revision 14374 to svn://svn.ffmpeg.org/ffmpeg/trunk
* cosmetics: typo/grammar fixesDiego Biurrun2008-07-24
| | | | Originally committed as revision 14371 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix segfault with non existing input files.Michael Niedermayer2008-07-24
| | | | Originally committed as revision 14369 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Disable unused function, fixes the warning:Diego Biurrun2007-11-09
| | | | | | tests/tiny_psnr.c:55: warning: ‘exp16’ defined but not used Originally committed as revision 10968 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 10l: Revert accidental removal of unused code.Diego Biurrun2007-05-27
| | | | Originally committed as revision 9142 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix seek_test compilation for out-of-tree builds.Diego Biurrun2007-05-27
| | | | Originally committed as revision 9135 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use proper license header.Diego Biurrun2007-05-24
| | | | Originally committed as revision 9122 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Possibility to skip bytes in the beginning of a file.Benjamin Larsson2006-07-18
| | | | Originally committed as revision 5783 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix samples to bytes relation.Benjamin Larsson2006-04-24
| | | | Originally committed as revision 5314 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Update licensing information: The FSF changed postal address.Diego Biurrun2006-01-12
| | | | Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk
* COSMETICS: Remove all trailing whitespace.Diego Biurrun2005-12-17
| | | | Originally committed as revision 4749 to svn://svn.ffmpeg.org/ffmpeg/trunk
* support comparing files with some posiion offset relative to each otherMichael Niedermayer2005-02-01
| | | | Originally committed as revision 3921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* signed 16bit supportMichael Niedermayer2005-02-01
| | | | Originally committed as revision 3913 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fopen "r" -> "rb"Michael Niedermayer2004-12-23
| | | | Originally committed as revision 3772 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 1/0 fix for files with size=0Michael Niedermayer2004-09-20
| | | | Originally committed as revision 3484 to svn://svn.ffmpeg.org/ffmpeg/trunk
* overflow fixMichael Niedermayer2004-06-25
| | | | Originally committed as revision 3250 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fixpoint log() for tiny_psnr so it can output actual PSNRMichael Niedermayer2003-12-31
| | | | Originally committed as revision 2640 to svn://svn.ffmpeg.org/ffmpeg/trunk
* check quality too, not only md5 (but dont take the scores too serious, the ↵Michael Niedermayer2003-04-10
different codecs use different quality/bitrates and its just based on a artificially generated testvideo) small changes to some test to check a broader area of features Originally committed as revision 1751 to svn://svn.ffmpeg.org/ffmpeg/trunk