diff options
author | u3shit <u3shit@gmail.com> | 2023-02-24 21:56:43 +0100 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2023-02-26 19:41:38 +0100 |
commit | 8ed007c4e8d44eda1710141efe14008caa5c027d (patch) | |
tree | 62f27aed4fcbfbb6c3629586870786d983f0cb0b /media/libyuv/util/psnr.h | |
parent | 466b7731793af0617ce403f56abad2615dc66292 (diff) | |
download | uxp-8ed007c4e8d44eda1710141efe14008caa5c027d.tar.gz |
Issue #2101 - Part 3: Update libyuv
Updated to version 1861, git revision 88b050f337cc0ca2a51800fe7bf4737222c87344 from
https://chromium.googlesource.com/libyuv/libyuv/
Diffstat (limited to 'media/libyuv/util/psnr.h')
-rw-r--r-- | media/libyuv/util/psnr.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/media/libyuv/util/psnr.h b/media/libyuv/util/psnr.h index 0816b97600..aac128cbca 100644 --- a/media/libyuv/util/psnr.h +++ b/media/libyuv/util/psnr.h @@ -20,7 +20,7 @@ extern "C" { #endif #if !defined(INT_TYPES_DEFINED) && !defined(UINT8_TYPE_DEFINED) -typedef unsigned char uint8; +typedef unsigned char uint8_t; #define UINT8_TYPE_DEFINED #endif @@ -31,7 +31,9 @@ static const double kMaxPSNR = 128.0; #if !defined(HAVE_JPEG) // Computer Sum of Squared Error (SSE). // Pass this to ComputePSNR for final result. -double ComputeSumSquareError(const uint8* org, const uint8* rec, int size); +double ComputeSumSquareError(const uint8_t* src_a, + const uint8_t* src_b, + int count); #endif // PSNR formula: psnr = 10 * log10 (Peak Signal^2 * size / sse) |