Changeset 249 in 3DVCSoftware for branches/HTM-5.1-dev3-Mediatek/source/Lib/TLibCommon/TComDataCU.cpp
- Timestamp:
- 1 Feb 2013, 04:38:14 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.1-dev3-Mediatek/source/Lib/TLibCommon/TComDataCU.cpp
r247 r249 5608 5608 #if QC_SIMPLE_NBDV_B0047 5609 5609 const Int iNumofDvMCP = 7; 5610 #if MTK_RELEASE_DV_CONSTRAINT 5610 #if MTK_RELEASE_DV_CONSTRAINT_C0129 5611 5611 Int aiDvMcpDvCandX[2][iNumofDvMCP] = {{0,}, {0,}}; // dummy, 5 spatial + 1 temporal 5612 5612 Int aiDvMcpDvCandY[2][iNumofDvMCP] = {{0,}, {0,}}; // dummy, 5 spatial + 1 temporal … … 5636 5636 deriveLeftBottomIdxGeneral( eCUMode, uiPartAddr, uiPartIdx, uiPartIdxLB ); 5637 5637 5638 #if MTK_SAIT_TEMPORAL_FIRST_ORDER 5638 #if MTK_SAIT_TEMPORAL_FIRST_ORDER_C0141_C0097 5639 5639 // copied from getInterMergeCand() 5640 5640 if ( getSlice()->getPPS()->getEnableTMVPFlag() ) … … 5803 5803 Int iTStartViewIdx = 0; 5804 5804 UInt uiPartIdxRB, uiBRIdx; 5805 #if !MTK_SIMPLIFY_DVTC_C0135 5805 5806 Int uiViewIdxCurr= getSlice()->getViewId(); 5807 #endif 5806 5808 UInt uiPartIdxCenter; 5807 5809 xDeriveCenterIdx( eCUMode, uiPartIdx, uiPartIdxCenter ); … … 5813 5815 uiBRIdx = uiPartIdxLT; 5814 5816 UInt uiAbsPartIdxTmp = g_auiZscanToRaster[uiPartIdxRB]; 5815 #if MTK_SIMPLIFY_DVTC 5817 #if MTK_SIMPLIFY_DVTC_C0135 5816 5818 if (( m_pcPic->getCU(m_uiCUAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxTmp] + m_pcPic->getMinCUWidth() )>= m_pcSlice->getSPS()->getPicWidthInLumaSamples() ) 5817 5819 { … … 5835 5837 { 5836 5838 uiBRIdx = g_auiRasterToZscan[ (uiAbsPartIdxTmp + uiNumPartInCUWidth + 1) % m_pcPic->getNumPartInCU() ]; 5837 #if MTK_SIMPLIFY_DVTC 5839 #if MTK_SIMPLIFY_DVTC_C0135 5838 5840 uiLCUnew = -1; 5839 5841 #else … … 5849 5851 { 5850 5852 uiBRIdx = 0; 5851 #if MTK_SIMPLIFY_DVTC 5853 #if MTK_SIMPLIFY_DVTC_C0135 5852 5854 uiLCUnew = -1; 5853 5855 #else … … 5879 5881 if( m_pcSlice->getViewId() == getSlice()->getRefPic( eRefPicList, lpRef)->getViewId() ) 5880 5882 { 5881 #if !MTK_SIMPLIFY_DVTC 5883 #if !MTK_SIMPLIFY_DVTC_C0135 5882 5884 if (uiViewIdxCurr > 1) 5883 5885 { … … 5902 5904 return ; 5903 5905 } 5904 #if !MTK_SIMPLIFY_DVTC 5906 #if !MTK_SIMPLIFY_DVTC_C0135 5905 5907 } 5906 5908 #endif … … 5923 5925 return ; 5924 5926 } 5925 #if !MTK_SIMPLIFY_DVTC 5927 #if !MTK_SIMPLIFY_DVTC_C0135 5926 5928 if(uiViewIdxCurr == 1) 5927 5929 { … … 6012 6014 if( cTmpMvPred.m_bDvMcp && bTmpIsSkipped ) 6013 6015 { 6014 #if MTK_RELEASE_DV_CONSTRAINT 6016 #if MTK_RELEASE_DV_CONSTRAINT_C0129 6015 6017 aiDvMcpDvCandX[iList][DVFROM_LEFT] = cTmpMvPred.m_iDvMcpDispX; 6016 6018 aiDvMcpDvCandY[iList][DVFROM_LEFT] = cTmpMvPred.m_iDvMcpDispY; … … 6103 6105 if( cTmpMvPred.m_bDvMcp && bTmpIsSkipped ) 6104 6106 { 6105 #if MTK_RELEASE_DV_CONSTRAINT 6107 #if MTK_RELEASE_DV_CONSTRAINT_C0129 6106 6108 aiDvMcpDvCandX[iList][DVFROM_ABOVE] = cTmpMvPred.m_iDvMcpDispX; 6107 6109 aiDvMcpDvCandY[iList][DVFROM_ABOVE] = cTmpMvPred.m_iDvMcpDispY; … … 6188 6190 if( cTmpMvPred.m_bDvMcp && bTmpIsSkipped ) 6189 6191 { 6190 #if MTK_RELEASE_DV_CONSTRAINT 6192 #if MTK_RELEASE_DV_CONSTRAINT_C0129 6191 6193 aiDvMcpDvCandX[iList][DVFROM_ABOVERIGHT] = cTmpMvPred.m_iDvMcpDispX; 6192 6194 aiDvMcpDvCandY[iList][DVFROM_ABOVERIGHT] = cTmpMvPred.m_iDvMcpDispY; … … 6265 6267 if( cTmpMvPred.m_bDvMcp && bTmpIsSkipped ) 6266 6268 { 6267 #if MTK_RELEASE_DV_CONSTRAINT 6269 #if MTK_RELEASE_DV_CONSTRAINT_C0129 6268 6270 aiDvMcpDvCandX[iList][DVFROM_LEFTBELOW] = cTmpMvPred.m_iDvMcpDispX; 6269 6271 aiDvMcpDvCandY[iList][DVFROM_LEFTBELOW] = cTmpMvPred.m_iDvMcpDispY; … … 6352 6354 if( cTmpMvPred.m_bDvMcp && bTmpIsSkipped ) 6353 6355 { 6354 #if MTK_RELEASE_DV_CONSTRAINT 6356 #if MTK_RELEASE_DV_CONSTRAINT_C0129 6355 6357 aiDvMcpDvCandX[iList][DVFROM_ABOVELEFT] = cTmpMvPred.m_iDvMcpDispX; 6356 6358 aiDvMcpDvCandY[iList][DVFROM_ABOVELEFT] = cTmpMvPred.m_iDvMcpDispY; … … 6380 6382 } 6381 6383 } 6382 #if !MTK_SAIT_TEMPORAL_FIRST_ORDER 6384 #if !MTK_SAIT_TEMPORAL_FIRST_ORDER_C0141_C0097 6383 6385 // copied from getInterMergeCand() 6384 6386 if ( getSlice()->getPPS()->getEnableTMVPFlag() ) … … 6547 6549 Int iTStartViewIdx = 0; 6548 6550 UInt uiPartIdxRB, uiBRIdx; 6551 #if !MTK_SIMPLIFY_DVTC_C0135 6549 6552 Int uiViewIdxCurr= getSlice()->getViewId(); 6553 #endif 6550 6554 UInt uiPartIdxCenter; 6551 6555 xDeriveCenterIdx( eCUMode, uiPartIdx, uiPartIdxCenter ); … … 6557 6561 uiBRIdx = uiPartIdxLT; 6558 6562 UInt uiAbsPartIdxTmp = g_auiZscanToRaster[uiPartIdxRB]; 6559 #if MTK_SIMPLIFY_DVTC 6563 #if MTK_SIMPLIFY_DVTC_C0135 6560 6564 if (( m_pcPic->getCU(m_uiCUAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxTmp] + m_pcPic->getMinCUWidth() )>= m_pcSlice->getSPS()->getPicWidthInLumaSamples() ) 6561 6565 { … … 6579 6583 { 6580 6584 uiBRIdx = g_auiRasterToZscan[ (uiAbsPartIdxTmp + uiNumPartInCUWidth + 1) % m_pcPic->getNumPartInCU() ]; 6581 #if MTK_SIMPLIFY_DVTC 6585 #if MTK_SIMPLIFY_DVTC_C0135 6582 6586 uiLCUnew = -1; 6583 6587 #else … … 6593 6597 { 6594 6598 uiBRIdx = 0; 6595 #if MTK_SIMPLIFY_DVTC 6599 #if MTK_SIMPLIFY_DVTC_C0135 6596 6600 uiLCUnew = -1; 6597 6601 #else … … 6623 6627 if( m_pcSlice->getViewId() == getSlice()->getRefPic( eRefPicList, lpRef)->getViewId() ) 6624 6628 { 6625 #if !MTK_SIMPLIFY_DVTC 6629 #if !MTK_SIMPLIFY_DVTC_C0135 6626 6630 if (uiViewIdxCurr > 1) 6627 6631 { … … 6646 6650 return ; 6647 6651 } 6648 #if !MTK_SIMPLIFY_DVTC 6652 #if !MTK_SIMPLIFY_DVTC_C0135 6649 6653 } 6650 6654 #endif … … 6667 6671 return ; 6668 6672 } 6669 #if !MTK_SIMPLIFY_DVTC 6673 #if !MTK_SIMPLIFY_DVTC_C0135 6670 6674 if(uiViewIdxCurr == 1) 6671 6675 { … … 6708 6712 if( abDvMcpFlag[iList][i]==true ) 6709 6713 { 6710 #if MTK_RELEASE_DV_CONSTRAINT 6714 #if MTK_RELEASE_DV_CONSTRAINT_C0129 6711 6715 TComMv dv( aiDvMcpDvCandX[iList][ i ], aiDvMcpDvCandY[iList][ i ] ); 6712 6716 #else … … 8877 8881 else 8878 8882 { 8879 #if MTK_RELEASE_DV_CONSTRAINT 8883 #if MTK_RELEASE_DV_CONSTRAINT_C0129 8880 8884 Bool bAvailable = pcResidualGenerator->getResidualSamples( this, uiPartIdx, pcYuv, cDisInfo.m_acMvCand[0] 8881 8885 #if QC_SIMPLIFIEDIVRP_M24938
Note: See TracChangeset for help on using the changeset viewer.