summaryrefslogtreecommitdiffstats
path: root/tests/tiny_psnr.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge commit '7a00653be6b13131ce1b2cdeca696429f57caaf8'Derek Buitenhuis2016-02-161-5/+5
|\ | | | | | | | | | | | | * commit '7a00653be6b13131ce1b2cdeca696429f57caaf8': tiny_psnr: Support large files Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * tiny_psnr: Support large filesThomas Lee2016-02-091-5/+5
| | | | | | | | | | | | | | 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>
* | Merge commit '26e8fa3b508eb047e85f4e923fc8e82a1aa656ba'Hendrik Leppkes2015-09-291-1/+1
|\ \ | |/ | | | | | | | | | | * commit '26e8fa3b508eb047e85f4e923fc8e82a1aa656ba': tiny_psnr: Use the correct abs() version Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * tiny_psnr: Use the correct abs() versionVittorio Giovara2015-09-291-1/+1
| |
* | tests/tiny_psnr: do not ignore errors from run_psnrMichael Niedermayer2015-04-231-3/+6
| | | | | | | | | | | | | | failure to calculate psnr should not result in tiny_psnr returning success Reviewed-by: Timothy Gu <timothygu99@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | tests/tiny_psnr: Make the search range extend both sides from the specified ↵Michael Niedermayer2015-04-171-0/+3
| | | | | | | | | | | | | | | | shift value This is what one would expect from the help text Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | tests/tiny_psnr: remove redundant initializationMichael Niedermayer2014-11-131-2/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | tests/tiny_psnr: Print information about the supported sample types in the ↵Michael Niedermayer2014-03-241-2/+2
| | | | | | | | | | | | help and error texts Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit 'dd33637c18629c3e554ebb146bbeb45c9745a5cf'Michael Niedermayer2013-10-161-31/+87
|\ \ | |/ | | | | | | | | | | | | | | | | * commit 'dd33637c18629c3e554ebb146bbeb45c9745a5cf': tiny_psnr: switch f32 handling to floating point Conflicts: tests/tiny_psnr.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * tiny_psnr: switch f32 handling to floating pointAnton Khirnov2013-10-151-30/+84
| | | | | | | | Also add support for f64.
| * 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>
* | tests/tiny_psnr: remove unneeded include assert.hMichael Niedermayer2013-07-191-1/+0
| | | | | | | | | | | | This is the only such occurance on tests/ Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '3dc06b6972cf389269e9c36ff0a4373f80f7149b'Michael Niedermayer2012-10-161-1/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | * commit '3dc06b6972cf389269e9c36ff0a4373f80f7149b': tiny_psnr: check for specified sample size less than 1 fate: improve md5sum utility selection rangecoder-test: Drop timer output that clutters stderr Conflicts: tests/tiny_psnr.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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: fix undefined shiftMichael Niedermayer2012-08-011-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-07-301-4/+46
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: avformat: Drop pointless "format" from container long names swscale: bury one more piece of inline asm under HAVE_INLINE_ASM. wv: K&R formatting cosmetics configure: Add missing descriptions to help output h264_ps: declare array of colorspace strings on its own line. fate: amix: specify f32 sample format for comparison tiny_psnr: support 32-bit float samples eamad/eatgq/eatqi: call special EA IDCT directly eamad: remove use of MpegEncContext mpegvideo: remove unnecessary inclusions of faandct.h af_asyncts: avoid overflow in out_size with large delta values af_asyncts: add first_pts option Conflicts: configure libavcodec/eamad.c libavcodec/h264_ps.c libavformat/crcenc.c libavformat/ffmdec.c libavformat/ffmenc.c libavformat/framecrcenc.c libavformat/md5enc.c libavformat/nutdec.c libavformat/rawenc.c libavformat/yuv4mpeg.c tests/tiny_psnr.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * tiny_psnr: support 32-bit float samplesMans Rullgard2012-07-291-5/+49
| | | | | | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* | tiny_psnr: reindent after last commit.Nicolas George2012-04-151-17/+16
| |
* | tiny_psnr: support unseekable raw files.Nicolas George2012-04-151-2/+6
| | | | | | | | | | | | | | If either one of the files if not seekable, do not try to read headers. It allows to use it with pipes on whole rawvideo data.
* | tiny_psnr: allow searching for optimal shift value.Reimar Döffinger2012-04-061-17/+39
| | | | | | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-01-191-87/+90
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: avprobe, cmdutils: K&R formatting cosmetics tests: K&R formatting cosmetics for test programs lavf: free packets for muxers implementing interleave_packet(). lavf: fix and extend av_interleaved_write_frame() doxy. mov: Remove dead stores for spherical coordinates for channel position. error_resilience: K&R formatting cosmetics RELEASE_NOTES: mention hiding private symbols in shared builds. RELEASE_NOTES: mention some notable API changes in 0.8 Conflicts: cmdutils.h doc/RELEASE_NOTES ffprobe.c libavcodec/error_resilience.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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