[x265] [PATCH 3 of 3] compress: save intra costs in rd <= 2 also in m_sa8dCost

deepthi at multicorewareinc.com deepthi at multicorewareinc.com
Sun Jul 13 15:21:11 CEST 2014


# HG changeset patch
# User Deepthi Nandakumar <deepthi at multicorewareinc.com>
# Date 1405256653 -19800
#      Sun Jul 13 18:34:13 2014 +0530
# Node ID a78e82d72988d66be640a1047039ceee3b50c576
# Parent  1bdad29895e601ec5b72d330158bb0ed550d3fb0
compress: save intra costs in rd <= 2 also in m_sa8dCost.

Basically, all sa8d costs are always saved in m_sa8dCost.

diff -r 1bdad29895e6 -r a78e82d72988 source/encoder/compress.cpp
--- a/source/encoder/compress.cpp	Sun Jul 13 18:19:39 2014 +0530
+++ b/source/encoder/compress.cpp	Sun Jul 13 18:34:13 2014 +0530
@@ -197,7 +197,7 @@
 
     cu->m_totalBits = bbits;
     cu->m_totalDistortion = bsad;
-    cu->m_totalRDCost = bcost;
+    cu->m_sa8dCost = bcost;
 
     // generate predYuv for the best mode
     cu->setLumaIntraDirSubParts(bmode, partOffset, depth + initTrDepth);
@@ -501,8 +501,8 @@
                         }
                         else
                         {
-                            intraInInterCost = m_intraInInterCU[depth]->m_totalRDCost;
-                            bestCost = outBestCU->m_totalRDCost;
+                            intraInInterCost = m_intraInInterCU[depth]->m_sa8dCost;
+                            bestCost = outBestCU->m_sa8dCost;
 
                         }
                         if (intraInInterCost < bestCost)


More information about the x265-devel mailing list