changeset 5443:660ec2c02798

aq: bug fix for hash mismatch between recon with decoded output
author Aarthi Thirumalai
date Tue, 03 Dec 2013 16:31:35 +0530
parents 86d23688b017
children 80938e33bb04
files source/encoder/compress.cpp
diffstat 1 files changed, 4 insertions(+-), 0 deletions(-) [+]
line wrap: on
line diff
--- a/source/encoder/compress.cpp	Tue Dec 03 11:24:15 2013 +0530
+++ b/source/encoder/compress.cpp	Tue Dec 03 16:31:35 2013 +0530
@@ -74,6 +74,7 @@ void TEncCu::xEncodeIntraInInter(TComDat
 
     cu->m_totalBits = m_entropyCoder->getNumberOfWrittenBits();
     cu->m_totalCost = m_rdCost->calcRdCost(cu->m_totalDistortion, cu->m_totalBits);
+    xCheckDQP(cu);
 }
 
 void TEncCu::xComputeCostIntraInInter(TComDataCU* cu, PartSize partSize)
@@ -302,6 +303,7 @@ void TEncCu::xComputeCostMerge2Nx2N(TCom
 
     //No-residue mode
     m_search->encodeResAndCalcRdInterCU(outTempCU, m_origYuv[depth], bestPredYuv, m_tmpResiYuv[depth], m_bestResiYuv[depth], m_tmpRecoYuv[depth], true);
+    xCheckDQP(outTempCU);
 
     tmp = outTempCU;
     outTempCU = outBestCU;
@@ -313,6 +315,7 @@ void TEncCu::xComputeCostMerge2Nx2N(TCom
 
     //Encode with residue
     m_search->estimateRDInterCU(outTempCU, m_origYuv[depth], bestPredYuv, m_tmpResiYuv[depth], m_bestResiYuv[depth], m_tmpRecoYuv[depth], false);
+    xCheckDQP(outTempCU);
 
     if (outTempCU->m_totalCost < outBestCU->m_totalCost)    //Choose best from no-residue mode and residue mode
     {
@@ -485,6 +488,7 @@ void TEncCu::xCompressInterCU(TComDataCU
 
                 m_search->estimateRDInterCU(outBestCU, m_origYuv[depth], m_bestPredYuv[depth], m_tmpResiYuv[depth],
                                             m_bestResiYuv[depth], m_bestRecoYuv[depth], false);
+                xCheckDQP(outBestCU);
 
                 if (m_bestMergeCU[depth]->m_totalCost < outBestCU->m_totalCost)
                 {