Changeset 389 in SHVCSoftware for branches/SHM-3.1-dev/source/Lib/TLibCommon/TComDataCU.cpp
- Timestamp:
- 10 Sep 2013, 17:27:55 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.1-dev/source/Lib/TLibCommon/TComDataCU.cpp
r378 r389 1273 1273 UInt uiNumPartInCUWidth = m_pcPic->getNumPartInWidth(); 1274 1274 1275 #if REPN_FORMAT_IN_VPS 1276 if( ( m_pcPic->getCU(m_uiCUAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxRT] + m_pcPic->getMinCUWidth() ) >= m_pcSlice->getPicWidthInLumaSamples() ) 1277 #else 1275 1278 if( ( m_pcPic->getCU(m_uiCUAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxRT] + m_pcPic->getMinCUWidth() ) >= m_pcSlice->getSPS()->getPicWidthInLumaSamples() ) 1279 #endif 1276 1280 { 1277 1281 uiARPartUnitIdx = MAX_UINT; … … 1335 1339 UInt uiAbsZorderCUIdxLB = g_auiZscanToRaster[ m_uiAbsIdxInLCU ] + (m_puhHeight[0] / m_pcPic->getMinCUHeight() - 1)*m_pcPic->getNumPartInWidth(); 1336 1340 UInt uiNumPartInCUWidth = m_pcPic->getNumPartInWidth(); 1337 1341 1342 #if REPN_FORMAT_IN_VPS 1343 if( ( m_pcPic->getCU(m_uiCUAddr)->getCUPelY() + g_auiRasterToPelY[uiAbsPartIdxLB] + m_pcPic->getMinCUHeight() ) >= m_pcSlice->getPicHeightInLumaSamples() ) 1344 #else 1338 1345 if( ( m_pcPic->getCU(m_uiCUAddr)->getCUPelY() + g_auiRasterToPelY[uiAbsPartIdxLB] + m_pcPic->getMinCUHeight() ) >= m_pcSlice->getSPS()->getPicHeightInLumaSamples() ) 1346 #endif 1339 1347 { 1340 1348 uiBLPartUnitIdx = MAX_UINT; … … 1384 1392 UInt uiNumPartInCUWidth = m_pcPic->getNumPartInWidth(); 1385 1393 1394 #if REPN_FORMAT_IN_VPS 1395 if( ( m_pcPic->getCU(m_uiCUAddr)->getCUPelY() + g_auiRasterToPelY[uiAbsPartIdxLB] + (m_pcPic->getPicSym()->getMinCUHeight() * uiPartUnitOffset)) >= m_pcSlice->getPicHeightInLumaSamples()) 1396 #else 1386 1397 if( ( m_pcPic->getCU(m_uiCUAddr)->getCUPelY() + g_auiRasterToPelY[uiAbsPartIdxLB] + (m_pcPic->getPicSym()->getMinCUHeight() * uiPartUnitOffset)) >= m_pcSlice->getSPS()->getPicHeightInLumaSamples()) 1398 #endif 1387 1399 { 1388 1400 uiBLPartUnitIdx = MAX_UINT; … … 1432 1444 UInt uiNumPartInCUWidth = m_pcPic->getNumPartInWidth(); 1433 1445 1446 #if REPN_FORMAT_IN_VPS 1447 if( ( m_pcPic->getCU(m_uiCUAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxRT] + (m_pcPic->getPicSym()->getMinCUHeight() * uiPartUnitOffset)) >= m_pcSlice->getPicWidthInLumaSamples() ) 1448 #else 1434 1449 if( ( m_pcPic->getCU(m_uiCUAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxRT] + (m_pcPic->getPicSym()->getMinCUHeight() * uiPartUnitOffset)) >= m_pcSlice->getSPS()->getPicWidthInLumaSamples() ) 1450 #endif 1435 1451 { 1436 1452 uiARPartUnitIdx = MAX_UINT; … … 2684 2700 Int uiLCUIdx = -1; 2685 2701 2702 #if REPN_FORMAT_IN_VPS 2703 if ( ( m_pcPic->getCU(m_uiCUAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxTmp] + m_pcPic->getMinCUWidth() ) >= m_pcSlice->getPicWidthInLumaSamples() ) // image boundary check 2704 { 2705 } 2706 else if ( ( m_pcPic->getCU(m_uiCUAddr)->getCUPelY() + g_auiRasterToPelY[uiAbsPartIdxTmp] + m_pcPic->getMinCUHeight() ) >= m_pcSlice->getPicHeightInLumaSamples() ) 2707 { 2708 } 2709 #else 2686 2710 if ( ( m_pcPic->getCU(m_uiCUAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxTmp] + m_pcPic->getMinCUWidth() ) >= m_pcSlice->getSPS()->getPicWidthInLumaSamples() ) // image boundary check 2687 2711 { … … 2690 2714 { 2691 2715 } 2716 #endif 2692 2717 else 2693 2718 { … … 3020 3045 uiAbsPartIdx = g_auiZscanToRaster[uiPartIdxRB]; 3021 3046 Int uiLCUIdx = -1; 3047 #if REPN_FORMAT_IN_VPS 3048 if ( ( m_pcPic->getCU(m_uiCUAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdx] + m_pcPic->getMinCUWidth() ) >= m_pcSlice->getPicWidthInLumaSamples() ) // image boundary check 3049 { 3050 } 3051 else if ( ( m_pcPic->getCU(m_uiCUAddr)->getCUPelY() + g_auiRasterToPelY[uiAbsPartIdx] + m_pcPic->getMinCUHeight() ) >= m_pcSlice->getPicHeightInLumaSamples() ) 3052 { 3053 } 3054 #else 3022 3055 if ( ( m_pcPic->getCU(m_uiCUAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdx] + m_pcPic->getMinCUWidth() ) >= m_pcSlice->getSPS()->getPicWidthInLumaSamples() ) // image boundary check 3023 3056 { … … 3026 3059 { 3027 3060 } 3061 #endif 3028 3062 else 3029 3063 { … … 3095 3129 Int iMvShift = 2; 3096 3130 Int iOffset = 8; 3131 #if REPN_FORMAT_IN_VPS 3132 Int iHorMax = ( m_pcSlice->getPicWidthInLumaSamples() + iOffset - m_uiCUPelX - 1 ) << iMvShift; 3133 #else 3097 3134 Int iHorMax = ( m_pcSlice->getSPS()->getPicWidthInLumaSamples() + iOffset - m_uiCUPelX - 1 ) << iMvShift; 3135 #endif 3098 3136 Int iHorMin = ( -(Int)g_uiMaxCUWidth - iOffset - (Int)m_uiCUPelX + 1 ) << iMvShift; 3099 3137 3138 #if REPN_FORMAT_IN_VPS 3139 Int iVerMax = ( m_pcSlice->getPicHeightInLumaSamples() + iOffset - m_uiCUPelY - 1 ) << iMvShift; 3140 #else 3100 3141 Int iVerMax = ( m_pcSlice->getSPS()->getPicHeightInLumaSamples() + iOffset - m_uiCUPelY - 1 ) << iMvShift; 3142 #endif 3101 3143 Int iVerMin = ( -(Int)g_uiMaxCUHeight - iOffset - (Int)m_uiCUPelY + 1 ) << iMvShift; 3102 3144
Note: See TracChangeset for help on using the changeset viewer.