Ticket #19: MPM_QTBT_OFF_FIX.patch

File MPM_QTBT_OFF_FIX.patch, 1.1 KB (added by XiangLi, 5 years ago)
  • Lib/TLibCommon/TComDataCU.cpp

     
    31543154
    31553155  UInt width  = getWidth(uiAbsPartIdx);
    31563156  UInt height = getHeight(uiAbsPartIdx);
     3157
     3158#if !JVET_C0024_QTBT
     3159  if( getPartitionSize(uiAbsPartIdx) == SIZE_NxN )
     3160  {
     3161    width  >>= 1;
     3162    height >>= 1;
     3163  }
     3164#endif
     3165
    31573166  UInt partIdxLT = m_absZIdxInCtu + uiAbsPartIdx;
    3158   UInt partIdxRT = g_auiRasterToZscan [g_auiZscanToRaster[ partIdxLT ] + width / m_pcPic->getMinCUWidth() - 1 ];
    3159   UInt partIdxLB = g_auiRasterToZscan [g_auiZscanToRaster[ partIdxLT ] + ( (height / m_pcPic->getMinCUHeight()) - 1 ) * m_pcPic->getNumPartInCtuWidth()];
     3167  UInt partIdxRT = g_auiRasterToZscan[ g_auiZscanToRaster[ partIdxLT ] + width / m_pcPic->getMinCUWidth() - 1 ];
     3168  UInt partIdxLB = g_auiRasterToZscan[ g_auiZscanToRaster[ partIdxLT ] + ( (height / m_pcPic->getMinCUHeight()) - 1 ) * m_pcPic->getNumPartInCtuWidth() ];
    31603169
    31613170  // left
    31623171  TComDataCU *cu = getPULeft( partIdx, partIdxLB );