Changeset 280 in 3DVCSoftware for branches/HTM-5.1-dev0/source/Lib/TLibEncoder/TEncCu.cpp
- Timestamp:
- 14 Feb 2013, 23:41:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.1-dev0/source/Lib/TLibEncoder/TEncCu.cpp
r275 r280 636 636 { 637 637 #if HHI_INTER_VIEW_RESIDUAL_PRED 638 #if MTK_MDIVRP_C0138 639 Bool bResPredAvailable = false; 640 UInt uiResPrdId = 0; 641 #else 638 642 // check availability of residual prediction 639 643 Bool bResPredAvailable = false; … … 651 655 652 656 for( UInt uiResPrdId = 0; uiResPrdId < ( bResPredAvailable ? 2 : 1 ); uiResPrdId++ ) 657 #endif 653 658 { 654 659 Bool bResPredFlag = ( uiResPrdId > 0 ); … … 764 769 { 765 770 #if HHI_INTER_VIEW_RESIDUAL_PRED 771 #if MTK_MDIVRP_C0138 772 Bool bResPredAvailable = false; 773 UInt uiResPrdId = 0; 774 #else 766 775 // check availability of residual prediction 767 776 Bool bResPredAvailable = false; … … 779 788 780 789 for( UInt uiResPrdId = 0; uiResPrdId < ( bResPredAvailable ? 2 : 1 ); uiResPrdId++ ) 790 #endif 781 791 { 782 792 Bool bResPredFlag = ( uiResPrdId > 0 ); … … 1789 1799 m_pcEntropyCoder->encodeICFlag ( pcCU, uiAbsPartIdx ); 1790 1800 #endif 1791 #if HHI_INTER_VIEW_RESIDUAL_PRED 1801 #if HHI_INTER_VIEW_RESIDUAL_PRED && !MTK_MDIVRP_C0138 1792 1802 m_pcEntropyCoder->encodeResPredFlag( pcCU, uiAbsPartIdx, 0 ); 1793 1803 #endif … … 1820 1830 m_pcEntropyCoder->encodeICFlag ( pcCU, uiAbsPartIdx ); 1821 1831 #endif 1822 #if HHI_INTER_VIEW_RESIDUAL_PRED 1832 #if HHI_INTER_VIEW_RESIDUAL_PRED && !MTK_MDIVRP_C0138 1823 1833 if( !pcCU->isIntra( uiAbsPartIdx ) ) 1824 1834 { … … 1860 1870 Int numValidMergeCand = 0; 1861 1871 1862 #if HHI_INTER_VIEW_RESIDUAL_PRED 1872 #if HHI_INTER_VIEW_RESIDUAL_PRED && !MTK_MDIVRP_C0138 1863 1873 Bool bResPrdAvail = rpcTempCU->getResPredAvail( 0 ); 1864 1874 Bool bResPrdFlag = rpcTempCU->getResPredFlag ( 0 ); … … 1896 1906 rpcTempCU->getInterMergeCandidates( 0, 0, uhDepth, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand ); 1897 1907 #endif 1908 #if MTK_MDIVRP_C0138 1909 Bool bResPredAvail = rpcTempCU->getResPredAvail(0); 1910 #endif 1911 1898 1912 #if FAST_DECISION_FOR_MRG_RD_COST 1899 1913 Bool bestIsSkip = false; … … 1958 1972 1959 1973 #if HHI_INTER_VIEW_RESIDUAL_PRED 1974 #if MTK_MDIVRP_C0138 1975 rpcTempCU->setResPredAvailSubParts(bResPredAvail, 0, 0, uhDepth); 1976 #else 1960 1977 rpcTempCU->setResPredAvailSubParts( bResPrdAvail, 0, 0, uhDepth ); 1961 1978 rpcTempCU->setResPredFlagSubParts ( bResPrdFlag, 0, 0, uhDepth ); 1979 #endif 1962 1980 #endif 1963 1981 #if LGE_ILLUCOMP_B0045 … … 1976 1994 #else 1977 1995 m_pcPredSearch->motionCompensation ( rpcTempCU, m_ppcPredYuvTemp[uhDepth] ); 1996 #endif 1997 #if MTK_MDIVRP_C0138 1998 if (uiMergeCand == 0 && rpcTempCU->getResPredAvail(0)) 1999 { 2000 m_pcPredSearch->residualPrediction(rpcTempCU, m_ppcPredYuvTemp[uhDepth], m_ppcResPredTmp [uhDepth]); 2001 } 1978 2002 #endif 1979 2003 // save pred adress … … 1990 2014 #else 1991 2015 m_pcPredSearch->motionCompensation ( rpcTempCU, m_ppcPredYuvTemp[uhDepth] ); 2016 #endif 2017 #if MTK_MDIVRP_C0138 2018 if (uiMergeCand == 0 && rpcTempCU->getResPredAvail(0)) 2019 { 2020 m_pcPredSearch->residualPrediction(rpcTempCU, m_ppcPredYuvTemp[uhDepth], m_ppcResPredTmp [uhDepth]); 2021 } 1992 2022 #endif 1993 2023 // save pred adress … … 2112 2142 rpcTempCU->setMergeAMP (true); 2113 2143 #if HHI_INTERVIEW_SKIP 2114 #if LG_RESTRICTEDRESPRED_M24766 2144 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 2115 2145 m_pcPredSearch->predInterSearch ( rpcTempCU, m_ppcOrigYuv[uhDepth], m_ppcResPredTmp[uhDepth], m_ppcPredYuvTemp[uhDepth], m_ppcResiYuvTemp[uhDepth], m_ppcRecoYuvTemp[uhDepth], bSkipRes, bUseMRG); 2116 2146 #else
Note: See TracChangeset for help on using the changeset viewer.