[x265] fix getQuadtreeTULog2MinSizeInCU()

Satoshi Nakagawa nakagawa424 at oki.com
Fri Sep 5 06:57:14 CEST 2014


# HG changeset patch
# User Satoshi Nakagawa <nakagawa424 at oki.com>
# Date 1409892209 -32400
#      Fri Sep 05 13:43:29 2014 +0900
# Node ID e30143ac87fe32b6c20152e8fd41723cc9fdeb3c
# Parent  93db2f53fe573537bcd4eb53ca3cdb69af557eb5
fix getQuadtreeTULog2MinSizeInCU()

diff -r 93db2f53fe57 -r e30143ac87fe source/Lib/TLibCommon/TComDataCU.cpp
--- a/source/Lib/TLibCommon/TComDataCU.cpp	Thu Sep 04 16:42:24 2014 -0700
+++ b/source/Lib/TLibCommon/TComDataCU.cpp	Fri Sep 05 13:43:29 2014 +0900
@@ -1197,9 +1197,9 @@
 {
     uint32_t log2CUSize = getLog2CUSize(absPartIdx);
     PartSize partSize   = getPartitionSize(absPartIdx);
-    uint32_t quadtreeTUMaxDepth = getPredictionMode(0) == MODE_INTRA ? m_slice->m_sps->quadtreeTUMaxDepthIntra : m_slice->m_sps->quadtreeTUMaxDepthInter;
+    uint32_t quadtreeTUMaxDepth = getPredictionMode(absPartIdx) == MODE_INTRA ? m_slice->m_sps->quadtreeTUMaxDepthIntra : m_slice->m_sps->quadtreeTUMaxDepthInter;
     uint32_t intraSplitFlag = (getPredictionMode(absPartIdx) == MODE_INTRA && partSize == SIZE_NxN) ? 1 : 0;
-    uint32_t interSplitFlag = ((quadtreeTUMaxDepth == 1) && (getPredictionMode(0) == MODE_INTER) && (partSize != SIZE_2Nx2N));
+    uint32_t interSplitFlag = ((quadtreeTUMaxDepth == 1) && (getPredictionMode(absPartIdx) == MODE_INTER) && (partSize != SIZE_2Nx2N));
 
     tuDepthRange[0] = m_slice->m_sps->quadtreeTULog2MinSize;
     tuDepthRange[1] = m_slice->m_sps->quadtreeTULog2MaxSize;


More information about the x265-devel mailing list