shithub: libvpx

Download patch

ref: 8eb69628c5bd3c3815fe7da724345d8e2ec67a25
parent: 86eb1259113250ddc012b024f48fe673797b5b95
author: angiebird <angiebird@google.com>
date: Fri Nov 8 09:55:14 EST 2019

Unite vpx_psnr_pkt and PSNR_STATS

Change-Id: Ia2be91a49dfa95906fa2ce232ff9d3a69deda4ad

--- a/vpx_dsp/psnr.h
+++ b/vpx_dsp/psnr.h
@@ -12,6 +12,7 @@
 #define VPX_VPX_DSP_PSNR_H_
 
 #include "vpx_scale/yv12config.h"
+#include "vpx/vpx_encoder.h"
 
 #define MAX_PSNR 100.0
 
@@ -19,11 +20,7 @@
 extern "C" {
 #endif
 
-typedef struct {
-  double psnr[4];       // total/y/u/v
-  uint64_t sse[4];      // total/y/u/v
-  uint32_t samples[4];  // total/y/u/v
-} PSNR_STATS;
+typedef struct vpx_psnr_pkt PSNR_STATS;
 
 // TODO(dkovalev) change vpx_sse_to_psnr signature: double -> int64_t