wiki:FATE/UseOftiny_psnr

Use of tiny_psnr

This program is in tests/tiny_psnr

This program can compute the best matching shift. If you run the program without arguments it shows the following output:

tiny_psnr <file1> <file2> [<elem size>|u8|s16|f32|f64 [<shift> [<skip bytes> [<shift search range>]]]]

For example, if we have the original.wav and encoded.wav files. We can calculate the best shift value by doing tests/tiny_psnr original.wav and encoded.wav s16 0 0 5000

Where s16 is the sample fmt and 5000 is the range. After a while the program shows the following:

Best PSNR is  39.66 for shift 4096

And the best shift value is 4096.

Last modified 9 years ago Last modified on May 10, 2016, 3:39:02 PM
Note: See TracWiki for help on using the wiki.