[x265] [PATCH] rcStats: add more fields to rcStats

gopi.satykrishna at multicorewareinc.com gopi.satykrishna at multicorewareinc.com
Wed May 17 14:12:29 CEST 2017


# HG changeset patch
# User Gopi Satykrishna Akisetty <gopi.satykrishna at multicorewareinc.com>
# Date 1495022261 -19800
#      Wed May 17 17:27:41 2017 +0530
# Node ID 4b846d3bac97134b8a91e3569bcb9f981b47ccc0
# Parent  c102c809fc4f801f26ec11a167d31321fa556672
rcStats: add more fields to rcStats

diff -r c102c809fc4f -r 4b846d3bac97 source/common/frame.h
--- a/source/common/frame.h	Mon May 08 12:09:35 2017 +0530
+++ b/source/common/frame.h	Wed May 17 17:27:41 2017 +0530
@@ -66,6 +66,10 @@
     double   shortTermCplxCount;
     int64_t  totalBits;
     int64_t  encodedBits;
+    double   coeff[4];
+    double   count[4];
+    double   offset[4];
+    double   bufferFillFinal;
 };
 
 class Frame
diff -r c102c809fc4f -r 4b846d3bac97 source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp	Mon May 08 12:09:35 2017 +0530
+++ b/source/encoder/ratecontrol.cpp	Wed May 17 17:27:41 2017 +0530
@@ -2711,6 +2711,13 @@
     {
         *filler = updateVbv(actualBits, rce);
 
+        curFrame->m_rcData->bufferFillFinal = m_bufferFillFinal;
+        for (int i = 0; i < 4; i++)
+        {
+            curFrame->m_rcData->coeff[i] = m_pred[i].coeff;
+            curFrame->m_rcData->count[i] = m_pred[i].count;
+            curFrame->m_rcData->offset[i] = m_pred[i].offset;
+        }
         if (m_param->bEmitHRDSEI)
         {
             const VUI *vui = &curEncData.m_slice->m_sps->vuiParameters;


More information about the x265-devel mailing list