[x265] [PATCH 2 of 3] rd level: remove the redundant splitflag bit calculation with EARLY EXIT ON

sumalatha at multicorewareinc.com sumalatha at multicorewareinc.com
Thu Dec 12 07:38:31 CET 2013


# HG changeset patch
# User Sumalatha Polureddy
# Date 1386829935 -19800
# Node ID cf078fec958afeaaa99c652115471196a2b5e502
# Parent  6d0bfe850f70962b4af354a88f7403ea29537ec8
rd level: remove the redundant splitflag bit calculation with EARLY EXIT ON

diff -r 6d0bfe850f70 -r cf078fec958a source/encoder/compress.cpp
--- a/source/encoder/compress.cpp	Thu Dec 12 12:00:25 2013 +0530
+++ b/source/encoder/compress.cpp	Thu Dec 12 12:02:15 2013 +0530
@@ -702,10 +702,6 @@
 
             if (outBestCU->m_totalCost < lambda * avgCost && avgCost != 0 && depth != 0)
             {
-                m_entropyCoder->resetBits();
-                m_entropyCoder->encodeSplitFlag(outBestCU, 0, depth, true);
-                outBestCU->m_totalBits += m_entropyCoder->getNumberOfWrittenBits();        // split bits
-                outBestCU->m_totalCost  = m_rdCost->calcRdCost(outBestCU->m_totalDistortion, outBestCU->m_totalBits);
                 /* Copy Best data to Picture for next partition prediction. */
                 outBestCU->copyToPic((UChar)depth);
 


More information about the x265-devel mailing list