History

refine the macro for PSNR calculate

volvet committed 7 years ago

Commit 83a9bf01 parent 94ffa1f1 file · +1 −1Browse files

Showing the changes to codec/common/src/utils.cpp (1 of 1 file). Show all

Unified · Split

codec/common/src/utils.cpp+1−1
@@ -76,7 +76,7 @@ void WelsLog (SLogContext* logCtx, int32_t iLevel, const char* kpFmt, ...) { · 75 unmodified lines
7676
7777 #ifndef CALC_PSNR
7878 #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 )))
8080 #endif//CALC_PSNR
8181
8282 /*

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t