Changeset 280 in 3DVCSoftware for branches/HTM-5.1-dev0/source/Lib/TLibEncoder
- Timestamp:
- 14 Feb 2013, 23:41:41 (12 years ago)
- Location:
- branches/HTM-5.1-dev0/source/Lib/TLibEncoder
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.1-dev0/source/Lib/TLibEncoder/TEncCavlc.cpp
r210 r280 498 498 } 499 499 } 500 #if INTER_VIEW_VECTOR_SCALING_C0115 501 WRITE_FLAG( pcVPS->getIVScalingFlag(), "inter_view_vector_scaling_flag" ); 502 #endif 500 503 } 501 504 … … 508 511 #endif 509 512 #endif 510 #if HHI_MPI 513 #if HHI_MPI || OL_QTLIMIT_PREDCODING_B0068 511 514 Void TEncCavlc::codeSPS( TComSPS* pcSPS, Bool bIsDepth ) 512 515 #else … … 1304 1307 #elif HHI_MPI 1305 1308 const int iExtraMergeCandidates = pcSlice->getSPS()->getUseMVI() ? 1 : 0; 1309 #elif MTK_DEPTH_MERGE_TEXTURE_CANDIDATE_C0137 1310 const int iExtraMergeCandidates = ( pcSlice->getIsDepth() || pcSlice->getSPS()->getMultiviewMvPredMode() ) ? 1 : 0; 1306 1311 #else 1307 1312 const int iExtraMergeCandidates = pcSlice->getSPS()->getMultiviewMvPredMode() ? 1 : 0; -
branches/HTM-5.1-dev0/source/Lib/TLibEncoder/TEncCavlc.h
r210 r280 118 118 #endif 119 119 120 #if HHI_MPI 120 #if HHI_MPI || OL_QTLIMIT_PREDCODING_B0068 121 121 Void codeSPS ( TComSPS* pcSPS, Bool bIsDepth ); 122 122 #else -
branches/HTM-5.1-dev0/source/Lib/TLibEncoder/TEncCfg.h
r210 r280 170 170 Bool m_bUseIC; 171 171 #endif 172 #if INTER_VIEW_VECTOR_SCALING_C0115 173 Bool m_bUseIVS; 174 #endif 172 175 #if SAO_UNIT_INTERLEAVING 173 176 Int m_maxNumOffsetsPerPic; … … 713 716 Void setUseIC ( Bool bVal ) {m_bUseIC = bVal;} 714 717 Bool getUseIC () {return m_bUseIC;} 718 #endif 719 #if INTER_VIEW_VECTOR_SCALING_C0115 720 Void setUseIVS ( Bool bVal ) {m_bUseIVS = bVal;} 721 Bool getUseIVS () {return m_bUseIVS;} 715 722 #endif 716 723 #if SAO_UNIT_INTERLEAVING … … 869 876 Void setCodedOffset ( Int** p ) { m_aaiCodedOffset = p; } 870 877 871 #if SONY_COLPIC_AVAILABILITY872 Int getViewOrderIdx () { return m_iViewOrderIdx; } 878 #if INTER_VIEW_VECTOR_SCALING_C0115 879 Int getViewOrderIdx () { return m_iViewOrderIdx; } // will be changed to view_id 873 880 #endif 874 881 }; -
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 -
branches/HTM-5.1-dev0/source/Lib/TLibEncoder/TEncEntropy.cpp
r231 r280 133 133 #endif 134 134 135 #if HHI_MPI 135 #if HHI_MPI || OL_QTLIMIT_PREDCODING_B0068 136 136 Void TEncEntropy::encodeSPS( TComSPS* pcSPS, Bool bIsDepth ) 137 137 { … … 489 489 } 490 490 491 #if HHI_INTER_VIEW_RESIDUAL_PRED 491 #if HHI_INTER_VIEW_RESIDUAL_PRED && !MTK_MDIVRP_C0138 492 492 Void 493 493 TEncEntropy::encodeResPredFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiPUIdx, Bool bRD ) -
branches/HTM-5.1-dev0/source/Lib/TLibEncoder/TEncEntropy.h
r210 r280 80 80 #endif 81 81 82 #if HHI_MPI 82 #if HHI_MPI || OL_QTLIMIT_PREDCODING_B0068 83 83 virtual Void codeSPS ( TComSPS* pcSPS, Bool bIsDepth ) = 0; 84 84 #else … … 246 246 #endif 247 247 // SPS 248 #if HHI_MPI 248 #if HHI_MPI || OL_QTLIMIT_PREDCODING_B0068 249 249 Void encodeSPS ( TComSPS* pcSPS, Bool bIsDepth ); 250 250 #else … … 270 270 Void encodeMergeFlag ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiPUIdx ); 271 271 Void encodeMergeIndex ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiPUIdx, Bool bRD = false ); 272 #if HHI_INTER_VIEW_RESIDUAL_PRED 272 #if HHI_INTER_VIEW_RESIDUAL_PRED && !MTK_MDIVRP_C0138 273 273 Void encodeResPredFlag ( TComDataCU* pcCU, UInt uiAbsPartIdx, UInt uiPUIdx, Bool bRD = false ); 274 274 #endif -
branches/HTM-5.1-dev0/source/Lib/TLibEncoder/TEncGOP.cpp
r231 r280 247 247 std::vector<TComAPS>& vAPS = m_pcEncTop->getAPS(); 248 248 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 249 #if MTK_DEPTH_MERGE_TEXTURE_CANDIDATE_C0137 250 m_pcSliceEncoder->initEncSlice ( pcPic, iPOCLast, uiPOCCurr, iNumPicRcvd, iGOPid, pcSlice, m_pcEncTop->getEncTop()->getVPS(), m_pcEncTop->getSPS(), m_pcEncTop->getPPS(), m_pcEncTop->getIsDepth() ); 251 #else 249 252 m_pcSliceEncoder->initEncSlice ( pcPic, iPOCLast, uiPOCCurr, iNumPicRcvd, iGOPid, pcSlice, m_pcEncTop->getEncTop()->getVPS(), m_pcEncTop->getSPS(), m_pcEncTop->getPPS() ); 253 #endif 250 254 #else 251 255 m_pcSliceEncoder->initEncSlice ( pcPic, iPOCLast, uiPOCCurr, iNumPicRcvd, iGOPid, pcSlice, m_pcEncTop->getSPS(), m_pcEncTop->getPPS() ); … … 255 259 pcSlice->setViewId( m_pcEncTop->getViewId() ); 256 260 pcSlice->setIsDepth( m_pcEncTop->getIsDepth() ); 261 #if INTER_VIEW_VECTOR_SCALING_C0115 262 pcSlice->setIVScalingFlag( m_pcEncTop->getUseIVS() ); 263 #endif 257 264 258 265 m_pcEncTop->getSPS()->setDisInter4x4(m_pcEncTop->getDisInter4x4()); … … 340 347 pcSlice->setNumRefIdx( REF_PIC_LIST_1, min( m_pcCfg->getGOPEntry( (getNalUnitType(uiPOCCurr) == NAL_UNIT_CODED_SLICE_IDV) ? MAX_GOP : iGOPid ).m_numRefPicsActive, (pcSlice->getRPS()->getNumberOfPictures() + pcSlice->getSPS()->getNumberOfUsableInterViewRefs()) ) ); 341 348 #else 349 342 350 Bool bNalRAP = ((getNalUnitType(uiPOCCurr) == NAL_UNIT_CODED_SLICE_CRA) || (getNalUnitType(uiPOCCurr) == NAL_UNIT_CODED_SLICE_IDR)) && (pcSlice->getSPS()->getViewId()) ? 1: 0; 343 351 pcSlice->setNumRefIdx( REF_PIC_LIST_0, min( m_pcCfg->getGOPEntry( bNalRAP ? MAX_GOP : iGOPid ).m_numRefPicsActive, (pcSlice->getRPS()->getNumberOfPictures() + pcSlice->getSPS()->getNumberOfUsableInterViewRefs()) ) ); 344 352 pcSlice->setNumRefIdx( REF_PIC_LIST_1, min( m_pcCfg->getGOPEntry( bNalRAP ? MAX_GOP : iGOPid ).m_numRefPicsActive, (pcSlice->getRPS()->getNumberOfPictures() + pcSlice->getSPS()->getNumberOfUsableInterViewRefs()) ) ); 345 353 #endif 346 347 354 TComRefPicListModification* refPicListModification = pcSlice->getRefPicListModification(); 348 355 refPicListModification->setRefPicListModificationFlagL0( false ); … … 906 913 pcSlice->getSPS()->setNumSubstreams( pcSlice->getPPS()->getNumSubstreams() ); 907 914 #endif 908 #if HHI_MPI 915 #if HHI_MPI || OL_QTLIMIT_PREDCODING_B0068 909 916 m_pcEntropyCoder->encodeSPS(pcSlice->getSPS(), m_pcEncTop->getIsDepth()); 910 917 #else -
branches/HTM-5.1-dev0/source/Lib/TLibEncoder/TEncSbac.cpp
r231 r280 404 404 #endif 405 405 406 #if HHI_MPI 406 #if HHI_MPI || OL_QTLIMIT_PREDCODING_B0068 407 407 Void TEncSbac::codeSPS( TComSPS* pcSPS, Bool bIsDepth ) 408 408 #else -
branches/HTM-5.1-dev0/source/Lib/TLibEncoder/TEncSbac.h
r210 r280 102 102 #endif 103 103 104 #if HHI_MPI 104 #if HHI_MPI || OL_QTLIMIT_PREDCODING_B0068 105 105 Void codeSPS ( TComSPS* pcSPS, Bool bIsDepth ); 106 106 #else -
branches/HTM-5.1-dev0/source/Lib/TLibEncoder/TEncSearch.cpp
r275 r280 2947 2947 #else 2948 2948 #if LG_RESTRICTEDRESPRED_M24766 2949 #if MERL_VSP_C0152 2949 #if MERL_VSP_C0152 || MTK_MDIVRP_C0138 2950 #if !MTK_MDIVRP_C0138 2950 2951 Void TEncSearch::xMergeEstimation( TComDataCU* pcCU, TComYuv* pcYuvOrg, TComYuv* rpcResiPredYuv, Int iPUIdx, UInt& uiInterDir, TComMvField* pacMvField, UInt& uiMergeIndex, UInt& ruiCost, Int* iVSPIndexTrue ) 2952 #endif 2953 #if !MERL_VSP_C0152 2954 Void TEncSearch::xMergeEstimation( TComDataCU* pcCU, TComYuv* pcYuvOrg, Int iPUIdx, UInt& uiInterDir, TComMvField* pacMvField, UInt& uiMergeIndex, UInt& ruiCost ) 2955 #endif 2956 #if MERL_VSP_C0152 && MTK_MDIVRP_C0138 2957 Void TEncSearch::xMergeEstimation( TComDataCU* pcCU, TComYuv* pcYuvOrg, Int iPUIdx, UInt& uiInterDir, TComMvField* pacMvField, UInt& uiMergeIndex, UInt& ruiCost, Int* iVSPIndexTrue ) 2958 #endif 2951 2959 #else 2952 2960 Void TEncSearch::xMergeEstimation( TComDataCU* pcCU, TComYuv* pcYuvOrg, TComYuv* rpcResiPredYuv, Int iPUIdx, UInt& uiInterDir, TComMvField* pacMvField, UInt& uiMergeIndex, UInt& ruiCost ) … … 3007 3015 const int maxNumMergeCand = MRG_MAX_NUM_CANDS_SIGNALED + ( pcCU->getSlice()->getSPS()->getMultiviewMvPredMode() ? 1 : 0 ); 3008 3016 #endif 3009 #if LG_RESTRICTEDRESPRED_M24766 3017 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 3010 3018 Int iPUResiPredShift[4]; 3011 3019 Int iLastAddResiShift = -1000; … … 3038 3046 } 3039 3047 #endif 3040 #if LG_RESTRICTEDRESPRED_M24766 3048 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 3041 3049 Int iAddResiShift; 3042 3050 UInt uiPartAddr; … … 3088 3096 } 3089 3097 } 3090 #if LG_RESTRICTEDRESPRED_M24766 3098 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 3091 3099 if( pcCU->getResPredFlag( 0 ) && iLastAddResiShift >= 0) 3092 3100 { … … 3107 3115 */ 3108 3116 #if AMP_MRG 3109 #if LG_RESTRICTEDRESPRED_M24766 3117 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 3110 3118 Void TEncSearch::predInterSearch( TComDataCU* pcCU, TComYuv* pcOrgYuv, TComYuv* rpcResiPredYuv, TComYuv*& rpcPredYuv, TComYuv*& rpcResiYuv, TComYuv*& rpcRecoYuv, Bool bUseRes, Bool bUseMRG ) 3111 3119 #else … … 3214 3222 for (Int iNumRef=0; iNumRef < MAX_NUM_REF; iNumRef++) uiCostTempL0[iNumRef] = MAX_UINT; 3215 3223 UInt uiBitsTempL0[MAX_NUM_REF]; 3216 3217 #if LG_RESTRICTEDRESPRED_M24766 3224 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 3218 3225 Int iPUResiPredShift[4] = {0, 0, 0, 0}; 3219 3226 #endif … … 3236 3243 { 3237 3244 #endif 3238 #if LG_RESTRICTEDRESPRED_M24766 3245 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 3239 3246 Bool bLastResiFlag = false; 3240 3247 #endif … … 3247 3254 for ( Int iRefIdxTemp = 0; iRefIdxTemp < pcCU->getSlice()->getNumRefIdx(eRefPicList); iRefIdxTemp++ ) 3248 3255 { 3249 #if LG_RESTRICTEDRESPRED_M24766 3256 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 3250 3257 if( pcCU->getResPredFlag( 0 )) 3251 3258 { … … 3435 3442 } 3436 3443 } 3437 #if LG_RESTRICTEDRESPRED_M24766 3444 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 3438 3445 if( pcCU->getResPredFlag( 0 ) && bLastResiFlag) 3439 3446 { // subtract residual prediction from original in motion search … … 3444 3451 if ( pcCU->getSlice()->isInterB() ) 3445 3452 { 3446 #if LG_RESTRICTEDRESPRED_M24766 3453 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 3447 3454 Int iLastAddResiShift = -1000; 3448 3455 #endif … … 3552 3559 uiBitsTemp += m_auiMVPIdxCost[aaiMvpIdxBi[iRefList][iRefIdxTemp]][AMVP_MAX_NUM_CANDS]; 3553 3560 #endif 3554 #if LG_RESTRICTEDRESPRED_M24766 3561 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 3555 3562 Int iAddResiShift = -1, iPredFrom = 0; 3556 3563 Int iBestRefIdx = pcCU->getCUMvField(eRefPicList == REF_PIC_LIST_0 ? REF_PIC_LIST_1 : REF_PIC_LIST_0)->getRefIdx(uiPartAddr); … … 3641 3648 } 3642 3649 } // for loop-iter 3643 #if LG_RESTRICTEDRESPRED_M24766 3650 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 3644 3651 if( pcCU->getResPredFlag( 0 ) && iLastAddResiShift >= 0) 3645 3652 { … … 3856 3863 if (bTestNormalMC) 3857 3864 { 3858 #if LG_RESTRICTEDRESPRED_M24766 3865 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 3859 3866 Int iAddResiShift = pcCU->getResiPredMode(uiPartAddr); 3860 3867 iPUResiPredShift[0] = iPUResiPredShift[1] = iPUResiPredShift[2] = iPUResiPredShift[3] = \ … … 3867 3874 xGetInterPredictionError( pcCU, pcOrgYuv, iPartIdx, uiMEError, m_pcEncCfg->getUseHADME() ); 3868 3875 uiMECost = uiMEError + m_pcRdCost->getCost( uiMEBits ); 3869 #if LG_RESTRICTEDRESPRED_M24766 3876 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 3870 3877 if(pcCU->getResPredFlag(0) && iAddResiShift >= 0) 3871 3878 { … … 3895 3902 #else 3896 3903 #if LG_RESTRICTEDRESPRED_M24766 3897 #if MERL_VSP_C0152 3904 #if MERL_VSP_C0152 || MTK_MDIVRP_C0138 3905 3906 #if !MTK_MDIVRP_C0138 3898 3907 xMergeEstimation( pcCU, pcOrgYuv, rpcResiPredYuv, iPartIdx, uiMRGInterDir, cMRGMvField, uiMRGIndex, uiMRGCost, iVSPIndexTrue ); 3908 #endif 3909 3910 #if !MERL_VSP_C0152 3911 xMergeEstimation( pcCU, pcOrgYuv, iPartIdx, uiMRGInterDir, cMRGMvField, uiMRGIndex, uiMRGCost ); 3912 #endif 3913 3914 #if MERL_VSP_C0152 && MTK_MDIVRP_C0138 3915 xMergeEstimation( pcCU, pcOrgYuv, iPartIdx, uiMRGInterDir, cMRGMvField, uiMRGIndex, uiMRGCost, iVSPIndexTrue ); 3916 #endif 3917 3899 3918 #else 3900 3919 xMergeEstimation( pcCU, pcOrgYuv, rpcResiPredYuv, iPartIdx, uiMRGInterDir, cMRGMvField, uiMRGIndex, uiMRGCost ); 3901 3920 #endif 3921 3922 3902 3923 #else 3903 3924 xMergeEstimation( pcCU, pcOrgYuv, iPartIdx, uiMRGInterDir, cMRGMvField, uiMRGIndex, uiMRGCost ); … … 4833 4854 UInt uiWidth = pcCU->getWidth ( 0 ); 4834 4855 UInt uiHeight = pcCU->getHeight( 0 ); 4835 #if LG_RESTRICTEDRESPRED_M24766 4856 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 4836 4857 Int iPUResiPredShift[4]; 4837 4858 #endif 4838 4859 // No residual coding : SKIP mode 4839 if ( (ePredMode == MODE_SKIP && bSkipRes))4860 if ( ePredMode == MODE_SKIP && bSkipRes ) 4840 4861 { 4841 4862 rpcYuvResi->clear(); … … 4843 4864 pcYuvPred->copyToPartYuv( rpcYuvRec, 0 ); 4844 4865 4866 #if MTK_MDIVRP_C0138 4867 if (pcCU->getMergeFlag(0) && pcCU->getMergeIndex(0)==0 && pcCU->getResPredAvail(0)) 4868 { 4869 rpcYuvRec->clip( uiWidth, uiHeight ); 4870 } 4871 #else 4845 4872 #if HHI_INTER_VIEW_RESIDUAL_PRED 4846 4873 // add residual prediction … … 4855 4882 rpcYuvRec->clip( uiWidth, uiHeight ); 4856 4883 } 4884 #endif 4857 4885 #endif 4858 4886 … … 4900 4928 m_pcEntropyCoder->encodeICFlag(pcCU, 0, true); 4901 4929 #endif 4902 #if HHI_INTER_VIEW_RESIDUAL_PRED 4930 #if HHI_INTER_VIEW_RESIDUAL_PRED && !MTK_MDIVRP_C0138 4903 4931 m_pcEntropyCoder->encodeResPredFlag( pcCU, 0, 0, true ); 4904 4932 #endif … … 4978 5006 else 4979 5007 { 4980 #if LG_RESTRICTEDRESPRED_M24766 5008 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 4981 5009 iPUResiPredShift[0] = iPUResiPredShift[1] = iPUResiPredShift[2] = iPUResiPredShift[3] = 0; 4982 5010 rpcYuvResi->subtract(iPUResiPredShift, pcCU->getPartitionSize(0), pcYuvOrg, pcYuvPred, 0, uiWidth ); … … 4984 5012 rpcYuvResi->subtract( pcYuvOrg, pcYuvPred, 0, uiWidth ); 4985 5013 #endif 4986 #if HHI_INTER_VIEW_RESIDUAL_PRED 5014 #if HHI_INTER_VIEW_RESIDUAL_PRED && !MTK_MDIVRP_C0138 4987 5015 // subtract residual prediction 4988 5016 if( pcCU->getResPredFlag( 0 ) ) … … 5206 5234 #endif 5207 5235 } 5208 #if HHI_INTER_VIEW_RESIDUAL_PRED 5236 #if HHI_INTER_VIEW_RESIDUAL_PRED && !MTK_MDIVRP_C0138 5209 5237 // add residual prediction 5210 5238 if( pcCU->getResPredFlag( 0 ) ) … … 6283 6311 m_pcEntropyCoder->encodeICFlag(pcCU, 0, true); 6284 6312 #endif 6285 #if HHI_INTER_VIEW_RESIDUAL_PRED 6313 #if HHI_INTER_VIEW_RESIDUAL_PRED && !MTK_MDIVRP_C0138 6286 6314 m_pcEntropyCoder->encodeResPredFlag( pcCU, 0, 0, true ); 6287 6315 #endif … … 6306 6334 m_pcEntropyCoder->encodeICFlag(pcCU, 0, true); 6307 6335 #endif 6308 #if HHI_INTER_VIEW_RESIDUAL_PRED 6336 #if HHI_INTER_VIEW_RESIDUAL_PRED && !MTK_MDIVRP_C0138 6309 6337 m_pcEntropyCoder->encodeResPredFlag( pcCU, 0, 0, true ); 6310 6338 #endif -
branches/HTM-5.1-dev0/source/Lib/TLibEncoder/TEncSearch.h
r231 r280 196 196 Void predInterSearch ( TComDataCU* pcCU, 197 197 TComYuv* pcOrgYuv, 198 #if LG_RESTRICTEDRESPRED_M24766 198 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 199 199 TComYuv* rpcResiPredYuv, 200 200 #endif … … 500 500 Void xMergeEstimation ( TComDataCU* pcCU, 501 501 TComYuv* pcYuvOrg, 502 #if LG_RESTRICTEDRESPRED_M24766 502 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 503 503 TComYuv* rpcResiPredYuv, 504 504 #endif -
branches/HTM-5.1-dev0/source/Lib/TLibEncoder/TEncSlice.cpp
r231 r280 163 163 */ 164 164 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 165 #if MTK_DEPTH_MERGE_TEXTURE_CANDIDATE_C0137 166 Void TEncSlice::initEncSlice( TComPic* pcPic, Int iPOCLast, UInt uiPOCCurr, Int iNumPicRcvd, Int iGOPid, TComSlice*& rpcSlice, TComVPS * pVPS, TComSPS* pSPS, TComPPS *pPPS, bool isDepth ) 167 #else 165 168 Void TEncSlice::initEncSlice( TComPic* pcPic, Int iPOCLast, UInt uiPOCCurr, Int iNumPicRcvd, Int iGOPid, TComSlice*& rpcSlice, TComVPS * pVPS, TComSPS* pSPS, TComPPS *pPPS ) 169 #endif 166 170 #else 167 171 Void TEncSlice::initEncSlice( TComPic* pcPic, Int iPOCLast, UInt uiPOCCurr, Int iNumPicRcvd, Int iGOPid, TComSlice*& rpcSlice, TComSPS* pSPS, TComPPS *pPPS ) … … 186 190 rpcSlice->setPOC( uiPOCCurr ); 187 191 188 #if SONY_COLPIC_AVAILABILITY189 rpcSlice->setViewOrderIdx(m_pcCfg->getViewOrderIdx()); 192 #if INTER_VIEW_VECTOR_SCALING_C0115 193 rpcSlice->setViewOrderIdx(m_pcCfg->getViewOrderIdx()); // will be changed to view_id 190 194 #endif 191 195 #if LGE_ILLUCOMP_B0045 … … 470 474 #elif HHI_MPI 471 475 const int iExtraMergeCandidates = pSPS->getUseMVI() ? 1 : 0; 476 #elif MTK_DEPTH_MERGE_TEXTURE_CANDIDATE_C0137 477 const int iExtraMergeCandidates = ( isDepth || pSPS->getMultiviewMvPredMode() ) ? 1 : 0; 472 478 #else 473 479 const int iExtraMergeCandidates = pSPS->getMultiviewMvPredMode() ? 1 : 0; -
branches/HTM-5.1-dev0/source/Lib/TLibEncoder/TEncSlice.h
r231 r280 120 120 /// preparation of slice encoding (reference marking, QP and lambda) 121 121 #if VIDYO_VPS_INTEGRATION|QC_MVHEVC_B0046 122 #if MTK_DEPTH_MERGE_TEXTURE_CANDIDATE_C0137 123 Void initEncSlice ( TComPic* pcPic, Int iPOCLast, UInt uiPOCCurr, Int iNumPicRcvd, Int iGOPid, TComSlice*& rpcSlice, TComVPS* pVPS, TComSPS* pSPS, TComPPS *pPPS, bool isDepth ); 124 #else 122 125 Void initEncSlice ( TComPic* pcPic, Int iPOCLast, UInt uiPOCCurr, Int iNumPicRcvd, Int iGOPid, TComSlice*& rpcSlice, TComVPS* pVPS, TComSPS* pSPS, TComPPS *pPPS ); 126 #endif 123 127 #else 124 128 Void initEncSlice ( TComPic* pcPic, Int iPOCLast, UInt uiPOCCurr, Int iNumPicRcvd, Int iGOPid, TComSlice*& rpcSlice, TComSPS* pSPS, TComPPS *pPPS ); -
branches/HTM-5.1-dev0/source/Lib/TLibEncoder/TEncTop.cpp
r210 r280 404 404 pcPicYuvOrg->copyToPic( pcPicCurr->getPicYuvOrg() ); 405 405 406 #if SONY_COLPIC_AVAILABILITY407 pcPicCurr->setViewOrderIdx(m_iViewOrderIdx); 406 #if INTER_VIEW_VECTOR_SCALING_C0115 407 pcPicCurr->setViewOrderIdx(m_iViewOrderIdx); // will be changed to view_id 408 408 #endif 409 409 pcPicCurr->setScaleOffset( m_aaiCodedScale, m_aaiCodedOffset );
Note: See TracChangeset for help on using the changeset viewer.