Ticket #515: delta_qp_bug.patch

File delta_qp_bug.patch, 931 bytes (added by bheng, 9 years ago)
  • Lib/TLibCommon/TComDataCU.cpp

     
    17241724  UInt uiNumPartInCUWidth = m_pcPic->getNumPartInWidth();
    17251725
    17261726  UInt uiAbsRorderQpMinCUIdx   = g_auiZscanToRaster[(uiCurrAbsIdxInLCU>>((g_uiMaxCUDepth - getSlice()->getPPS()->getMaxCuDQPDepth())<<1))<<((g_uiMaxCUDepth -getSlice()->getPPS()->getMaxCuDQPDepth())<<1)];
    1727   UInt uiNumPartInQpMinCUWidth = getSlice()->getPPS()->getMinCuDQPSize()>>2;
     1727  UInt uiNumPartInQpMinCUWidth = (m_pcPic->getNumPartInWidth() >> getSlice()->getPPS()->getMaxCuDQPDepth());
    17281728
    17291729  UInt uiAbsZorderQpMinCUIdx   = (uiCurrAbsIdxInLCU>>((g_uiMaxCUDepth - getSlice()->getPPS()->getMaxCuDQPDepth())<<1))<<((g_uiMaxCUDepth - getSlice()->getPPS()->getMaxCuDQPDepth())<<1);
    17301730  if( (uiCurrAbsIdxInLCU != uiAbsZorderQpMinCUIdx) &&