[x265] [PATCH 4 of 5] compress/TEncCU: no reason why mode decision should reset the dqp flags

deepthi at multicorewareinc.com deepthi at multicorewareinc.com
Thu Mar 13 12:29:17 CET 2014


# HG changeset patch
# User Deepthi Nandakumar <deepthi at multicorewareinc.com>
# Date 1394708081 -19800
# Node ID 37743f00b0efa5a7c3ad1db2c860d2470557db1d
# Parent  a1d00d4c9e500b59ed63a9d5de9d38d4ce1bb4a4
compress/TEncCU: no reason why mode decision should reset the dqp flags.

diff -r a1d00d4c9e50 -r 37743f00b0ef source/Lib/TLibEncoder/TEncCu.cpp
--- a/source/Lib/TLibEncoder/TEncCu.cpp	Thu Mar 13 15:56:55 2014 +0530
+++ b/source/Lib/TLibEncoder/TEncCu.cpp	Thu Mar 13 16:24:41 2014 +0530
@@ -1402,8 +1402,7 @@
     // Encode Coefficients
     bool bCodeDQP = getdQPFlag();
     m_entropyCoder->encodeCoeff(outTempCU, 0, depth, outTempCU->getCUSize(0), outTempCU->getCUSize(0), bCodeDQP);
-    setdQPFlag(bCodeDQP);
-
+    
     m_rdGoOnSbacCoder->store(m_rdSbacCoders[depth][CI_TEMP_BEST]);
 
     outTempCU->m_totalBits = m_entropyCoder->getNumberOfWrittenBits();
@@ -1442,8 +1441,7 @@
     // Encode Coefficients
     bool bCodeDQP = getdQPFlag();
     m_entropyCoder->encodeCoeff(outTempCU, 0, depth, outTempCU->getCUSize(0), outTempCU->getCUSize(0), bCodeDQP);
-    setdQPFlag(bCodeDQP);
-
+    
     m_rdGoOnSbacCoder->store(m_rdSbacCoders[depth][CI_TEMP_BEST]);
 
     outTempCU->m_totalBits = m_entropyCoder->getNumberOfWrittenBits();
diff -r a1d00d4c9e50 -r 37743f00b0ef source/encoder/compress.cpp
--- a/source/encoder/compress.cpp	Thu Mar 13 15:56:55 2014 +0530
+++ b/source/encoder/compress.cpp	Thu Mar 13 16:24:41 2014 +0530
@@ -66,8 +66,7 @@
     // Encode Coefficients
     bool bCodeDQP = getdQPFlag();
     m_entropyCoder->encodeCoeff(cu, 0, depth, cu->getCUSize(0), cu->getCUSize(0), bCodeDQP);
-    setdQPFlag(bCodeDQP);
-
+    
     m_rdGoOnSbacCoder->store(m_rdSbacCoders[depth][CI_TEMP_BEST]);
 
     cu->m_totalBits = m_entropyCoder->getNumberOfWrittenBits();


More information about the x265-devel mailing list