[x265] [PATCH] rd: check DQP before best cu is copied to the pic in rd 0
deepthidevaki at multicorewareinc.com
deepthidevaki at multicorewareinc.com
Tue Dec 17 11:01:26 CET 2013
# HG changeset patch
# User Deepthi Devaki <deepthidevaki at multicorewareinc.com>
# Date 1387273662 -19800
# Node ID b2c92128d73b327246365f722a542b0ad5cdd602
# Parent ddee6ba8609eeed314a398ec2b3dc5da63fa0a3e
rd: check DQP before best cu is copied to the pic in rd 0
diff -r ddee6ba8609e -r b2c92128d73b source/encoder/compress.cpp
--- a/source/encoder/compress.cpp Tue Dec 17 15:09:43 2013 +0530
+++ b/source/encoder/compress.cpp Tue Dec 17 15:17:42 2013 +0530
@@ -607,6 +607,7 @@
if (m_mergeCU[depth]->m_totalDistortion < threshold[index])
{
m_mergeCU[depth]->setSkipFlagSubParts(true, 0, depth);
+ xCheckDQP(m_mergeCU[depth]);
outBestCU = m_mergeCU[depth];
if (bestMergePred != m_bestPredYuv[depth])
{
@@ -899,6 +900,7 @@
//Residual encoding
m_search->residualTransformQuantInter(cu, 0, 0, m_tmpResiYuv[depth], cu->getDepth(0), true);
+ xCheckDQP(cu);
if (lcu->getMergeFlag(absPartIdx) && cu->getPartitionSize(0) == SIZE_2Nx2N && !cu->getQtRootCbf(0))
{
@@ -931,7 +933,6 @@
reco = m_bestRecoYuv[0]->getCrAddr(absPartIdx);
primitives.chroma[m_cfg->param.internalCsp].add_ps[part](reco, dststride, pred, res, src1stride, src2stride);
m_bestRecoYuv[0]->copyToPicYuv(lcu->getPic()->getPicYuvRec(), lcu->getAddr(), 0);
- xCheckDQP(cu);
return;
}
}
@@ -959,9 +960,9 @@
{
m_origYuv[0]->copyPartToYuv(m_origYuv[depth], absPartIdx);
m_search->generateCoeffRecon(cu, m_origYuv[depth], m_modePredYuv[5][depth], m_tmpResiYuv[depth], m_tmpRecoYuv[depth], false);
+ xCheckDQP(cu);
m_tmpRecoYuv[depth]->copyToPicYuv(cu->getPic()->getPicYuvRec(), lcu->getAddr(), absPartIdx);
m_tmpRecoYuv[depth]->copyToPartYuv(m_bestRecoYuv[0], absPartIdx);
cu->copyCodedToPic(depth);
}
- xCheckDQP(cu);
}
More information about the x265-devel
mailing list