# HG changeset patch
# User Pradeep Ramachandran <[email protected]>
# Date 1456246672 -19800
#      Tue Feb 23 22:27:52 2016 +0530
# Node ID b84c509d503f9f91689dd3a8ed82b871328ed0b1
# Parent  c2228fb8151ddce111a75fb1c02b25eca5a68604
stats: add clear() function to frame-level stats struct

diff -r c2228fb8151d -r b84c509d503f source/x265.h
--- a/source/x265.h     Fri Feb 19 09:50:42 2016 +0530
+++ b/source/x265.h     Tue Feb 23 22:27:52 2016 +0530
@@ -396,6 +396,17 @@
     double        psnrV;
     double        ssim;
     uint32_t      numPics;
+    
+    void clear() {
+        avgQp   = 0.0;
+        bitrate = 0.0;
+        psnrY   = 0.0;
+        psnrU   = 0.0;
+        psnrV   = 0.0;
+        ssim    = 0.0;
+        numPics = 0;
+    }
+
 } x265_sliceType_stats;
 
 /* Output statistics from encoder */
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel

Reply via email to