<div dir="ltr"><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jul 13, 2014 at 6:51 PM, <span dir="ltr"><<a href="mailto:deepthi@multicorewareinc.com" target="_blank">deepthi@multicorewareinc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"># HG changeset patch<br>
# User Deepthi Nandakumar <<a href="mailto:deepthi@multicorewareinc.com">deepthi@multicorewareinc.com</a>><br>
# Date 1405255779 -19800<br>
# Sun Jul 13 18:19:39 2014 +0530<br>
# Node ID 1bdad29895e601ec5b72d330158bb0ed550d3fb0<br>
# Parent 0fe178bf1f2d53636eb84cd0848e95b9b9cc4292<br>
compress: save inter sa8d costs also in m_sa8dCost<br>
<br>
diff -r 0fe178bf1f2d -r 1bdad29895e6 source/encoder/compress.cpp<br>
--- a/source/encoder/compress.cpp Sun Jul 13 18:14:05 2014 +0530<br>
+++ b/source/encoder/compress.cpp Sun Jul 13 18:19:39 2014 +0530<br>
@@ -220,7 +220,7 @@<br>
uint32_t distortion = primitives.sa8d[sizeIdx](m_origYuv[depth]->getLumaAddr(), m_origYuv[depth]->getStride(),<br>
outPredYuv->getLumaAddr(), outPredYuv->getStride());<br>
outTempCU->m_totalDistortion = distortion;<br>
- outTempCU->m_totalRDCost = m_rdCost.calcRdSADCost(distortion, outTempCU->m_totalBits);<br>
+ outTempCU->m_sa8dCost = m_rdCost.calcRdSADCost(distortion, outTempCU->m_totalBits);<br>
}<br>
else<br>
{<br>
@@ -442,12 +442,12 @@<br>
{<br>
xComputeCostInter(m_interCU_Nx2N[depth], m_modePredYuv[1][depth], SIZE_Nx2N);<br>
xComputeCostInter(m_interCU_2NxN[depth], m_modePredYuv[2][depth], SIZE_2NxN);<br>
- if (m_interCU_Nx2N[depth]->m_totalRDCost < outBestCU->m_totalRDCost)<br>
+ if (m_interCU_Nx2N[depth]->m_sa8dCost < outBestCU->m_totalRDCost)<br></blockquote><div> <font color="#0000ff">m_interCU_Nx2N->m_sa8dCost should be compared with outBestCU->m_sa8dCost.</font></div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
{<br>
outBestCU = m_interCU_Nx2N[depth];<br>
std::swap(m_bestPredYuv[depth], m_modePredYuv[1][depth]);<br>
}<br>
- if (m_interCU_2NxN[depth]->m_totalRDCost < outBestCU->m_totalRDCost)<br>
+ if (m_interCU_2NxN[depth]->m_sa8dCost < outBestCU->m_totalRDCost)<br></blockquote><div><span style="color:rgb(0,0,255)">m_interCU_2NxN->m_sa8dCost should be compared with outBestCU->m_sa8dCost.</span> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
{<br>
outBestCU = m_interCU_2NxN[depth];<br>
std::swap(m_bestPredYuv[depth], m_modePredYuv[2][depth]);<br>
@@ -519,7 +519,7 @@<br>
}<br>
if (m_param->rdLevel == 2)<br>
{<br>
- if (m_bestMergeCU[depth]->m_sa8dCost < outBestCU->m_totalRDCost)<br>
+ if (m_bestMergeCU[depth]->m_sa8dCost < outBestCU->m_sa8dCost)<br>
{<br>
outBestCU = m_bestMergeCU[depth];<br>
std::swap(m_bestPredYuv[depth], m_modePredYuv[3][depth]);<br>
@@ -541,7 +541,7 @@<br>
}<br>
else if (m_param->rdLevel == 1)<br>
{<br>
- if (m_bestMergeCU[depth]->m_sa8dCost < outBestCU->m_totalRDCost)<br>
+ if (m_bestMergeCU[depth]->m_sa8dCost < outBestCU->m_sa8dCost)<br>
{<br>
outBestCU = m_bestMergeCU[depth];<br>
std::swap(m_bestPredYuv[depth], m_modePredYuv[3][depth]);<br>
_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
</blockquote></div><br></div></div></div>