[x265] [PATCH] stats: add clear() function to frame-level stats struct
Pradeep Ramachandran
pradeep at multicorewareinc.com
Tue Feb 23 17:58:15 CET 2016
# HG changeset patch
# User Pradeep Ramachandran <pradeep at multicorewareinc.com>
# 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 */
More information about the x265-devel
mailing list