ref: 83a9bf0aa750ea2cf64f0e79339e5286187556a4
parent: 94ffa1f51776e8ec5b035ca765aa6e1d928cecc4
author: volvet <volvet2002@gmail.com>
date: Fri Jan 4 04:41:39 EST 2019
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
/*