summaryrefslogtreecommitdiffstats
path: root/tests/tiny_psnr.c
Commit message (Collapse)AuthorAgeFilesLines
* tiny_psnr: fix range calculation for sample size of 32 bitsMans Rullgard2012-10-151-1/+1
| | | | | | | | | 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-151-1/+1
| | | | | | | 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-291-5/+49
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* tests: K&R formatting cosmetics for test programsGaurav Narula2012-01-181-87/+90
|
* tests: Remove disabled code.Diego Biurrun2011-04-291-15/+0
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-191-4/+4
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* tiny_psnr: change error exit code from -1 to 1Måns Rullgård2010-07-091-2/+2
| | | | Originally committed as revision 24149 to svn://svn.ffmpeg.org/ffmpeg/trunk
* tiny_psnr: check fread() return valuesMåns Rullgård2010-07-091-3/+6
| | | | Originally committed as revision 24148 to svn://svn.ffmpeg.org/ffmpeg/trunk
* tiny_psnr: use abs()Måns Rullgård2010-07-091-1/+1
| | | | Originally committed as revision 24146 to svn://svn.ffmpeg.org/ffmpeg/trunk
* tiny_psnr: skip wav headers on input filesMåns Rullgård2010-07-091-3/+20
| | | | | | | | | | 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-091-1/+6
| | | | | | | | | 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-091-1/+1
| | | | | | 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-241-7/+15
| | | | | | | | | 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-241-2/+2
| | | | Originally committed as revision 14371 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix segfault with non existing input files.Michael Niedermayer2008-07-241-0/+4
| | | | Originally committed as revision 14369 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Disable unused function, fixes the warning:Diego Biurrun2007-11-091-2/+4
| | | | | | 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-271-0/+13
| | | | Originally committed as revision 9142 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix seek_test compilation for out-of-tree builds.Diego Biurrun2007-05-271-13/+0
| | | | Originally committed as revision 9135 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use proper license header.Diego Biurrun2007-05-241-5/+6
| | | | 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-181-1/+7
| | | | Originally committed as revision 5783 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Fix samples to bytes relation.Benjamin Larsson2006-04-241-1/+1
| | | | Originally committed as revision 5314 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Update licensing information: The FSF changed postal address.Diego Biurrun2006-01-121-1/+1
| | | | Originally committed as revision 4842 to svn://svn.ffmpeg.org/ffmpeg/trunk
* COSMETICS: Remove all trailing whitespace.Diego Biurrun2005-12-171-8/+8
| | | | 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-011-2/+5
| | | | Originally committed as revision 3921 to svn://svn.ffmpeg.org/ffmpeg/trunk
* signed 16bit supportMichael Niedermayer2005-02-011-10/+18
| | | | Originally committed as revision 3913 to svn://svn.ffmpeg.org/ffmpeg/trunk
* fopen "r" -> "rb"Michael Niedermayer2004-12-231-2/+2
| | | | Originally committed as revision 3772 to svn://svn.ffmpeg.org/ffmpeg/trunk
* 1/0 fix for files with size=0Michael Niedermayer2004-09-201-0/+1
| | | | Originally committed as revision 3484 to svn://svn.ffmpeg.org/ffmpeg/trunk
* overflow fixMichael Niedermayer2004-06-251-2/+3
| | | | 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-311-3/+64
| | | | 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-101-0/+74
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
OpenPOWER on IntegriCloud