ref: 63a546ee08e62cba076fdfc1178016c029126ca6
parent: 94ffa1f51776e8ec5b035ca765aa6e1d928cecc4
parent: 83a9bf0aa750ea2cf64f0e79339e5286187556a4
author: huili2 <huili2@cisco.com>
date: Fri Jan 4 09:32:30 EST 2019
Merge pull request #3081 from cisco/psnr refine the macro for PSNR calculate
--- a/codec/common/src/utils.cpp
+++ b/codec/common/src/utils.cpp
@@ -76,7 +76,7 @@
#ifndef CALC_PSNR
#define CONST_FACTOR_PSNR (10.0 / log(10.0)) // for good computation
-#define CALC_PSNR(w, h, s) ((float)(CONST_FACTOR_PSNR * log( 65025.0 * w * h / iSqe )))
+#define CALC_PSNR(w, h, s) ((float)(CONST_FACTOR_PSNR * log( 65025.0 * w * h / s )))
#endif//CALC_PSNR
/*