# HG changeset patch
# User Aarthi Priya Thirumalai <[email protected]>
# Date 1468235606 -19800
#      Mon Jul 11 16:43:26 2016 +0530
# Node ID b8c3278330fdd67dc2d3d6ea32ec2b6b8bebe00b
# Parent  a932b4366235ab6597c8d124c1569dade6ff790a
rcStats: add more fields to rcStats

diff -r a932b4366235 -r b8c3278330fd source/common/frame.h
--- a/source/common/frame.h     Mon Jul 04 21:25:59 2016 +0530
+++ b/source/common/frame.h     Mon Jul 11 16:43:26 2016 +0530
@@ -49,6 +49,9 @@
     double   pCuCount;
     double   skipCuCount;
     double   qScale;
+    double   cumulativePQp;
+    double   cumulativePNorm;
+    double   lastQScaleFor[3];
     int      mvBits;
     int      miscBits;
     int      coeffBits;
diff -r a932b4366235 -r b8c3278330fd source/encoder/encoder.cpp
--- a/source/encoder/encoder.cpp        Mon Jul 04 21:25:59 2016 +0530
+++ b/source/encoder/encoder.cpp        Mon Jul 11 16:43:26 2016 +0530
@@ -777,7 +777,7 @@
                 if (m_rateControl->writeRateControlFrameStats(outFrame, 
&curEncoder->m_rce))
                     m_aborted = true;
 
-            if (pic_out && m_param->rc.bStatWrite)
+            if (pic_out)
             {
                 /* m_rcData is allocated for every frame */
                 pic_out->rcData = outFrame->m_rcData;
diff -r a932b4366235 -r b8c3278330fd source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp    Mon Jul 04 21:25:59 2016 +0530
+++ b/source/encoder/ratecontrol.cpp    Mon Jul 11 16:43:26 2016 +0530
@@ -1223,6 +1223,10 @@
         /* copy value of lastRceq into thread local rce struct *to be used in 
RateControlEnd() */
         rce->qRceq = m_lastRceq;
         accumPQpUpdate();
+        curFrame->m_rcData->cumulativePQp = m_accumPQp;
+        curFrame->m_rcData->cumulativePNorm = m_accumPNorm;
+        for (int i = 0; i < 3; i++)
+            curFrame->m_rcData->lastQScaleFor[i] = m_lastQScaleFor[i];
     }
     else // CQP
     {
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel

Reply via email to