Changeset 246 in 3DVCSoftware for branches/HTM-5.1-dev3-Mediatek/source/Lib
- Timestamp:
- 31 Jan 2013, 07:39:49 (12 years ago)
- Location:
- branches/HTM-5.1-dev3-Mediatek/source/Lib/TLibCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.1-dev3-Mediatek/source/Lib/TLibCommon/TComDataCU.cpp
r245 r246 5808 5808 uiBRIdx = uiPartIdxLT; 5809 5809 UInt uiAbsPartIdxTmp = g_auiZscanToRaster[uiPartIdxRB]; 5810 #if MTK_SIMPLIFY_DVTC 5811 if (( m_pcPic->getCU(m_uiCUAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxTmp] + m_pcPic->getMinCUWidth() )>= m_pcSlice->getSPS()->getPicWidthInLumaSamples() ) 5812 { 5813 uiLCUnew = -1; 5814 } 5815 else if(( m_pcPic->getCU(m_uiCUAddr)->getCUPelY() + g_auiRasterToPelY[uiAbsPartIdxTmp] + m_pcPic->getMinCUHeight() )>= m_pcSlice->getSPS()->getPicHeightInLumaSamples() ) 5816 { 5817 uiLCUnew = -1; 5818 } 5819 else 5820 #else 5810 5821 if ( (( m_pcPic->getCU(m_uiCUAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxTmp] + m_pcPic->getMinCUWidth() ) < m_pcSlice->getSPS()->getPicWidthInLumaSamples() ) &&(( m_pcPic->getCU(m_uiCUAddr)->getCUPelY() + g_auiRasterToPelY[uiAbsPartIdxTmp] + m_pcPic->getMinCUHeight() ) < m_pcSlice->getSPS()->getPicHeightInLumaSamples() )) // image boundary check 5822 #endif 5811 5823 { 5812 5824 if ( ( uiAbsPartIdxTmp % uiNumPartInCUWidth < uiNumPartInCUWidth - 1 ) && // is not at the last column of LCU … … 5818 5830 { 5819 5831 uiBRIdx = g_auiRasterToZscan[ (uiAbsPartIdxTmp + uiNumPartInCUWidth + 1) % m_pcPic->getNumPartInCU() ]; 5832 #if MTK_SIMPLIFY_DVTC 5833 uiLCUnew = -1; 5834 #else 5820 5835 uiLCUnew = uiLCUIdx + m_pcPic->getFrameWidthInCU(); 5836 #endif 5821 5837 } 5822 5838 else if ( uiAbsPartIdxTmp / uiNumPartInCUWidth < m_pcPic->getNumPartInHeight() - 1 ) // is not at the last row of LCU But is last column of LCU … … 5828 5844 { 5829 5845 uiBRIdx = 0; 5846 #if MTK_SIMPLIFY_DVTC 5847 uiLCUnew = -1; 5848 #else 5830 5849 uiLCUnew = uiLCUIdx + m_pcPic->getFrameWidthInCU() + 1; 5850 #endif 5831 5851 } 5832 5852 } … … 5854 5874 if( m_pcSlice->getViewId() == getSlice()->getRefPic( eRefPicList, lpRef)->getViewId() ) 5855 5875 { 5876 #if !MTK_SIMPLIFY_DVTC 5856 5877 if (uiViewIdxCurr > 1) 5857 5878 { 5879 #endif 5858 5880 if( (uiLCUnew >= 0 && xGetColDisMV( eRefPicList, lpRef, uiLCUnew, uiBRIdx, cColMv, iTargetViewIdx, iTStartViewIdx)) ) 5859 5881 { … … 5875 5897 return ; 5876 5898 } 5899 #if !MTK_SIMPLIFY_DVTC 5877 5900 } 5878 5901 #endif 5879 5902 if(xGetColDisMV( eRefPicList, lpRef, uiLCUIdx, uiPartIdxCenter, cColMv, iTargetViewIdx, iTStartViewIdx )) 5880 5903 { … … 5895 5918 return ; 5896 5919 } 5920 #if !MTK_SIMPLIFY_DVTC 5897 5921 if(uiViewIdxCurr == 1) 5898 5922 { … … 5916 5940 } 5917 5941 } 5942 #endif 5918 5943 } 5919 5944 } … … 6502 6527 uiBRIdx = uiPartIdxLT; 6503 6528 UInt uiAbsPartIdxTmp = g_auiZscanToRaster[uiPartIdxRB]; 6529 #if MTK_SIMPLIFY_DVTC 6530 if (( m_pcPic->getCU(m_uiCUAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxTmp] + m_pcPic->getMinCUWidth() )>= m_pcSlice->getSPS()->getPicWidthInLumaSamples() ) 6531 { 6532 uiLCUnew = -1; 6533 } 6534 else if(( m_pcPic->getCU(m_uiCUAddr)->getCUPelY() + g_auiRasterToPelY[uiAbsPartIdxTmp] + m_pcPic->getMinCUHeight() )>= m_pcSlice->getSPS()->getPicHeightInLumaSamples() ) 6535 { 6536 uiLCUnew = -1; 6537 } 6538 else 6539 #else 6504 6540 if ( (( m_pcPic->getCU(m_uiCUAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxTmp] + m_pcPic->getMinCUWidth() ) < m_pcSlice->getSPS()->getPicWidthInLumaSamples() ) &&(( m_pcPic->getCU(m_uiCUAddr)->getCUPelY() + g_auiRasterToPelY[uiAbsPartIdxTmp] + m_pcPic->getMinCUHeight() ) < m_pcSlice->getSPS()->getPicHeightInLumaSamples() )) // image boundary check 6541 #endif 6505 6542 { 6506 6543 if ( ( uiAbsPartIdxTmp % uiNumPartInCUWidth < uiNumPartInCUWidth - 1 ) && // is not at the last column of LCU … … 6512 6549 { 6513 6550 uiBRIdx = g_auiRasterToZscan[ (uiAbsPartIdxTmp + uiNumPartInCUWidth + 1) % m_pcPic->getNumPartInCU() ]; 6551 #if MTK_SIMPLIFY_DVTC 6552 uiLCUnew = -1; 6553 #else 6514 6554 uiLCUnew = uiLCUIdx + m_pcPic->getFrameWidthInCU(); 6555 #endif 6515 6556 } 6516 6557 else if ( uiAbsPartIdxTmp / uiNumPartInCUWidth < m_pcPic->getNumPartInHeight() - 1 ) // is not at the last row of LCU But is last column of LCU … … 6522 6563 { 6523 6564 uiBRIdx = 0; 6565 #if MTK_SIMPLIFY_DVTC 6566 uiLCUnew = -1; 6567 #else 6524 6568 uiLCUnew = uiLCUIdx + m_pcPic->getFrameWidthInCU() + 1; 6569 #endif 6525 6570 } 6526 6571 } … … 6548 6593 if( m_pcSlice->getViewId() == getSlice()->getRefPic( eRefPicList, lpRef)->getViewId() ) 6549 6594 { 6595 #if !MTK_SIMPLIFY_DVTC 6550 6596 if (uiViewIdxCurr > 1) 6551 6597 { 6598 #endif 6552 6599 if( (uiLCUnew >= 0 && xGetColDisMV( eRefPicList, lpRef, uiLCUnew, uiBRIdx, cColMv, iTargetViewIdx, iTStartViewIdx)) ) 6553 6600 { … … 6569 6616 return ; 6570 6617 } 6618 #if !MTK_SIMPLIFY_DVTC 6571 6619 } 6572 6620 #endif 6573 6621 if(xGetColDisMV( eRefPicList, lpRef, uiLCUIdx, uiPartIdxCenter, cColMv, iTargetViewIdx, iTStartViewIdx )) 6574 6622 { … … 6589 6637 return ; 6590 6638 } 6639 #if !MTK_SIMPLIFY_DVTC 6591 6640 if(uiViewIdxCurr == 1) 6592 6641 { … … 6610 6659 } 6611 6660 } 6661 #endif 6612 6662 } 6613 6663 } -
branches/HTM-5.1-dev3-Mediatek/source/Lib/TLibCommon/TypeDef.h
r245 r246 144 144 #define QC_SIMPLE_NBDV_B0047 1 // JCT3V-B0047 145 145 #define MTK_SAIT_TEMPORAL_FIRST_ORDER 1 // JCT3V-C00141/C0097 146 #define MTK_SIMPLIFY_DVTC 1 // JCT3V-C00135 146 147 ///// ***** MOTION PARAMETER INHERITANCE ********* 147 148 #define HHI_MPI 1 // motion parameter inheritance from texture picture for depth map coding
Note: See TracChangeset for help on using the changeset viewer.