[x265] [PATCH] compress: missed few lines of code while applying previous patch

sumalatha at multicorewareinc.com sumalatha at multicorewareinc.com
Fri Feb 14 08:10:19 CET 2014


# HG changeset patch
# User Sumalatha Polureddy
# Date 1392361799 -19800
# Node ID 11ffc3cfe0d810f2e229eec0bb49053139ec123d
# Parent  0d033b5677da7c0b00582082c8b00feba3abb9fa
compress: missed few lines of code while applying previous patch

1. Increase the eraly skips in rd2
2. Sa8d cost is not calculated, but used in the code

diff -r 0d033b5677da -r 11ffc3cfe0d8 source/encoder/compress.cpp
--- a/source/encoder/compress.cpp	Fri Feb 14 00:53:22 2014 -0600
+++ b/source/encoder/compress.cpp	Fri Feb 14 12:39:59 2014 +0530
@@ -287,7 +287,9 @@
         outTempCU->m_totalBits = outBestCU->m_totalBits;
         outTempCU->m_totalDistortion = outBestCU->m_totalDistortion;
         outTempCU->m_totalCost = m_rdCost->calcRdSADCost(outTempCU->m_totalDistortion, outTempCU->m_totalBits);
-        if (m_cfg->param.rdLevel > 2)
+        outTempCU->m_sa8dCost = outTempCU->m_totalCost;
+        outBestCU->m_sa8dCost = outTempCU->m_sa8dCost;
+        if (m_cfg->param.rdLevel >= 2)
         {
             //calculate the motion compensation for chroma for the best mode selected
             int numPart = outBestCU->getNumPartInter();


More information about the x265-devel mailing list