[x265] [PATCH] remove redundant state m_avgQpRc from TComSlice

aarthi at multicorewareinc.com aarthi at multicorewareinc.com
Tue Feb 25 21:39:31 CET 2014


# HG changeset patch
# User Aarthi Thirumalai
# Date 1393360756 -19800
#      Wed Feb 26 02:09:16 2014 +0530
# Node ID 9b12cbfaec857615c2552c07dbb93802b9c229eb
# Parent  94fdd039f101eb2afb580b0320524dce2dcea51d
remove redundant state m_avgQpRc from TComSlice.

This has been moved to TComPic already.

diff -r 94fdd039f101 -r 9b12cbfaec85 source/Lib/TLibCommon/TComSlice.cpp
--- a/source/Lib/TLibCommon/TComSlice.cpp	Wed Feb 26 01:46:34 2014 +0530
+++ b/source/Lib/TLibCommon/TComSlice.cpp	Wed Feb 26 02:09:16 2014 +0530
@@ -80,7 +80,6 @@
     , m_numEntryPointOffsets(0)
     , m_temporalLayerNonReferenceFlag(false)
     , m_enableTMVPFlag(true)
-    , m_avgQpRc(0)
 {
     m_numRefIdx[0] = m_numRefIdx[1] = 0;
 
diff -r 94fdd039f101 -r 9b12cbfaec85 source/Lib/TLibCommon/TComSlice.h
--- a/source/Lib/TLibCommon/TComSlice.h	Wed Feb 26 01:46:34 2014 +0530
+++ b/source/Lib/TLibCommon/TComSlice.h	Wed Feb 26 02:09:16 2014 +0530
@@ -1356,7 +1356,6 @@
 
     wpScalingParam  m_weightPredTable[2][MAX_NUM_REF][3]; // [REF_PIC_LIST_0 or REF_PIC_LIST_1][refIdx][0:Y, 1:U, 2:V]
     int             m_numWPRefs;                          // number of references for which unidirectional weighted prediction is used
-    int             m_avgQpRc;
 
     TComSlice();
     virtual ~TComSlice();
diff -r 94fdd039f101 -r 9b12cbfaec85 source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp	Wed Feb 26 01:46:34 2014 +0530
+++ b/source/encoder/ratecontrol.cpp	Wed Feb 26 02:09:16 2014 +0530
@@ -438,7 +438,6 @@
     framesDone++;
     /* set the final QP to slice structure */
     curSlice->setSliceQp(qp);
-    curSlice->m_avgQpRc = qp;
 }
 
 void RateControl::accumPQpUpdate()


More information about the x265-devel mailing list