[x265] [PATCH] analysis: fix bug in compressSharedIntraCTU while analysis-mode=load

gopu at multicorewareinc.com gopu at multicorewareinc.com
Fri Oct 10 07:26:45 CEST 2014


# HG changeset patch
# User Gopu Govindaswamy <gopu at multicorewareinc.com>
# Date 1412918795 -19800
#      Fri Oct 10 10:56:35 2014 +0530
# Node ID 850c26341c248342c7eccc013bdf130e55550d40
# Parent  4495af3b30bb7a361c3252a8800f8dfa9f191145
analysis: fix bug in compressSharedIntraCTU while analysis-mode=load

using boundary condition for cu while encoding each frame not required for
analysis data load mode, it bypasses split and mode analysis for that CU

diff -r 4495af3b30bb -r 850c26341c24 source/encoder/analysis.cpp
--- a/source/encoder/analysis.cpp	Thu Oct 09 14:28:14 2014 +0530
+++ b/source/encoder/analysis.cpp	Fri Oct 10 10:56:35 2014 +0530
@@ -719,10 +719,11 @@
         for (uint32_t partUnitIdx = 0; partUnitIdx < 4; partUnitIdx++)
         {
             CU *child_cu = pic->getCU(outTempCU->m_cuAddr)->m_cuLocalData + cu->childIdx + partUnitIdx;
-            int qp = outTempCU->getQP(0);
-            subBestPartCU->initSubCU(outTempCU, child_cu, partUnitIdx, nextDepth, qp); // clear sub partition datas or init.
             if (child_cu->flags & CU::PRESENT)
             {
+                int qp = outTempCU->getQP(0);
+                subBestPartCU->initSubCU(outTempCU, child_cu, partUnitIdx, nextDepth, qp); // clear sub partition datas or init.
+
                 subTempPartCU->initSubCU(outTempCU, child_cu, partUnitIdx, nextDepth, qp); // clear sub partition datas or init.
 
                 if (partUnitIdx) // initialize RD with previous depth buffer


More information about the x265-devel mailing list