[x265] [PATCH] search: remove unnecessary set of cbf flags in xEstimateResidualQT()

ashok at multicorewareinc.com ashok at multicorewareinc.com
Fri Oct 24 10:35:37 CEST 2014


# HG changeset patch
# User Ashok Kumar Mishra<ashok at multicorewareinc.com>
# Date 1414136341 -19800
#      Fri Oct 24 13:09:01 2014 +0530
# Node ID a0c07b8e583b8578554d0ab8359b38b9e981c279
# Parent  e3a3d17b821cf37094d9e7857994c7ebf3dfcae4
search: remove unnecessary set of cbf flags in xEstimateResidualQT()

diff -r e3a3d17b821c -r a0c07b8e583b source/encoder/search.cpp
--- a/source/encoder/search.cpp	Thu Oct 23 21:03:47 2014 -0500
+++ b/source/encoder/search.cpp	Fri Oct 24 13:09:01 2014 +0530
@@ -3067,25 +3067,11 @@
             m_entropyCoder.store(m_rqt[depth].rqtTest);
             m_entropyCoder.load(m_rqt[depth].rqtRoot);
         }
+
         uint32_t subdivDist = 0;
         uint32_t subdivBits = 0;
         uint64_t subDivCost = 0;
         uint32_t subDivPsyEnergy = 0;
-        bestCBF[TEXT_LUMA] = cu.getCbf(absPartIdx, TEXT_LUMA, trMode);
-        if (bCodeChroma)
-        {
-            for (uint32_t chromId = TEXT_CHROMA_U; chromId <= TEXT_CHROMA_V; chromId++)
-            {
-                bestCBF[chromId] = cu.getCbf(absPartIdx, (TextType)chromId, trMode);
-                if (splitIntoSubTUs)
-                {
-                    uint32_t partIdxesPerSubTU = absPartIdxStep >> 1;
-                    for (uint32_t subTU = 0; subTU < 2; subTU++)
-                        bestsubTUCBF[chromId][subTU] = cu.getCbf((absPartIdx + (subTU * partIdxesPerSubTU)), (TextType)chromId, subTUDepth);
-                }
-            }
-        }
-
         const uint32_t qPartNumSubdiv = NUM_CU_PARTITIONS >> ((depth + 1) << 1);
         for (uint32_t i = 0; i < 4; ++i)
         {


More information about the x265-devel mailing list