[x265] [PATCH] Analysis: fix for binary mismatch for pass 2 in compressIntraCU()

ashok at multicorewareinc.com ashok at multicorewareinc.com
Wed Sep 17 12:51:18 CEST 2014


# HG changeset patch
# User Ashok Kumar Mishra<ashok at multicorewareinc.com>
# Date 1410950599 -19800
#      Wed Sep 17 16:13:19 2014 +0530
# Node ID 8c8356bc9307ea51951e40bf93f61c3d06bbe4d2
# Parent  199e8f2e0d54abd16657ccd0952bdc25cadf8420
Analysis: fix for binary mismatch for pass 2 in compressIntraCU()

diff -r 199e8f2e0d54 -r 8c8356bc9307 source/encoder/analysis.cpp
--- a/source/encoder/analysis.cpp	Tue Sep 16 17:50:06 2014 +0530
+++ b/source/encoder/analysis.cpp	Wed Sep 17 16:13:19 2014 +0530
@@ -461,12 +461,12 @@
         TComDataCU* subTempPartCU = m_tempCU[nextDepth];
         for (uint32_t partUnitIdx = 0; partUnitIdx < 4; partUnitIdx++)
         {
+            int qp = outTempCU->getQP(0);
+            subBestPartCU->initSubCU(outTempCU, partUnitIdx, nextDepth, qp); // clear sub partition datas or init.
+
             CU *child_cu = cuPicsym->m_CULocalData + cu->childIdx + partUnitIdx;
-
             if (child_cu->flags & CU::PRESENT)
             {
-                int qp = outTempCU->getQP(0);
-                subBestPartCU->initSubCU(outTempCU, partUnitIdx, nextDepth, qp); // clear sub partition datas or init.
                 subTempPartCU->initSubCU(outTempCU, partUnitIdx, nextDepth, qp); // clear sub partition datas or init.
                 if (0 == partUnitIdx) //initialize RD with previous depth buffer
                     m_rdEntropyCoders[nextDepth][CI_CURR_BEST].load(m_rdEntropyCoders[depth][CI_CURR_BEST]);


More information about the x265-devel mailing list