Showing the changes to codec/common/src/utils.cpp (1 of 1 file). Show all
Unified · Split
| @@ -76,7 +76,7 @@ void WelsLog (SLogContext* logCtx, int32_t iLevel, const char* kpFmt, ...) { · 75 unmodified lines | ||
| 76 | 76 | |
| 77 | 77 | #ifndef CALC_PSNR |
| 78 | 78 | #define CONST_FACTOR_PSNR (10.0 / log(10.0)) // for good computation |
| 79 | −#define CALC_PSNR(w, h, s) ((float)(CONST_FACTOR_PSNR * log( 65025.0 * w * h / iSqe ))) | |
| 79 | +#define CALC_PSNR(w, h, s) ((float)(CONST_FACTOR_PSNR * log( 65025.0 * w * h / s ))) | |
| 80 | 80 | #endif//CALC_PSNR |
| 81 | 81 | |
| 82 | 82 | /* |