Changeset 1307 in 3DVCSoftware for branches/HTM-14.1-update-dev1/source/Lib/TLibEncoder
- Timestamp:
- 3 Aug 2015, 03:23:44 (9 years ago)
- Location:
- branches/HTM-14.1-update-dev1/source/Lib/TLibEncoder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev1/source/Lib/TLibEncoder/TEncCu.cpp
r1305 r1307 517 517 518 518 const Bool bBoundary = !( uiRPelX < sps.getPicWidthInLumaSamples() && uiBPelY < sps.getPicHeightInLumaSamples() ); 519 520 if ( !bBoundary ) 521 { 522 #if H_3D_FAST_TEXTURE_ENCODING 519 #if NH_3D_FAST_TEXTURE_ENCODING 523 520 Bool bIVFMerge = false; 524 521 Int iIVFMaxD = 0; 525 522 Bool bFMD = false; 526 #endif 523 Bool bSubBranch = true; 524 #endif 525 if ( !bBoundary ) 526 { 527 527 for (Int iQP=iMinQP; iQP<=iMaxQP; iQP++) 528 528 { … … 650 650 } 651 651 } 652 #if H_3D_FAST_TEXTURE_ENCODING652 #if NH_3D_FAST_TEXTURE_ENCODING 653 653 if(rpcTempCU->getSlice()->getViewIndex() && !rpcTempCU->getSlice()->getIsDepth() && rpcTempCU->getSlice()->getDefaultRefViewIdxAvailableFlag() ) 654 654 { … … 674 674 rpcTempCU->setICFlagSubParts(bICFlag, 0, 0, uiDepth); 675 675 #endif 676 #if H_3D_FAST_TEXTURE_ENCODING677 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2Nx2N , bFMD ); rpcTempCU->initEstData( uiDepth, iQP, bIsLosslessMode );//by Competition for inter_2Nx2N676 #if NH_3D_FAST_TEXTURE_ENCODING 677 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2Nx2N DEBUG_STRING_PASS_INTO(sDebug), bFMD ); rpcTempCU->initEstData( uiDepth, iQP, bIsLosslessMode );//by Competition for inter_2Nx2N 678 678 #else 679 679 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2Nx2N DEBUG_STRING_PASS_INTO(sDebug) ); … … 689 689 #endif 690 690 xCheckRDCostMerge2Nx2N( rpcBestCU, rpcTempCU DEBUG_STRING_PASS_INTO(sDebug), &earlyDetectionSkipMode );//by Merge for inter_2Nx2N 691 #if H_3D_FAST_TEXTURE_ENCODING691 #if NH_3D_FAST_TEXTURE_ENCODING 692 692 bFMD = bIVFMerge && rpcBestCU->isSkipped(0); 693 693 #endif … … 704 704 rpcTempCU->setICFlagSubParts(bICFlag, 0, 0, uiDepth); 705 705 #endif 706 #if H_3D_FAST_TEXTURE_ENCODING707 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2Nx2N , bFMD ); rpcTempCU->initEstData( uiDepth, iQP, bIsLosslessMode );706 #if NH_3D_FAST_TEXTURE_ENCODING 707 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2Nx2N DEBUG_STRING_PASS_INTO(sDebug), bFMD ); rpcTempCU->initEstData( uiDepth, iQP, bIsLosslessMode ); 708 708 #else 709 709 … … 794 794 ) 795 795 { 796 #if H_3D_FAST_TEXTURE_ENCODING797 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_NxN, bFMD );796 #if NH_3D_FAST_TEXTURE_ENCODING 797 xCheckRDCostInter( rpcBestCU, rpcTempCU DEBUG_STRING_PASS_INTO(sDebug), SIZE_NxN, bFMD ); 798 798 #else 799 799 … … 814 814 ) 815 815 { 816 #if H_3D_FAST_TEXTURE_ENCODING817 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_Nx2N , bFMD );816 #if NH_3D_FAST_TEXTURE_ENCODING 817 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_Nx2N DEBUG_STRING_PASS_INTO(sDebug), bFMD ); 818 818 #else 819 819 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_Nx2N DEBUG_STRING_PASS_INTO(sDebug) ); … … 835 835 ) 836 836 { 837 #if H_3D_FAST_TEXTURE_ENCODING838 xCheckRDCostInter ( rpcBestCU, rpcTempCU, SIZE_2NxN , bFMD );837 #if NH_3D_FAST_TEXTURE_ENCODING 838 xCheckRDCostInter ( rpcBestCU, rpcTempCU, SIZE_2NxN DEBUG_STRING_PASS_INTO(sDebug), bFMD ); 839 839 #else 840 840 … … 876 876 ) 877 877 { 878 #if H_3D_FAST_TEXTURE_ENCODING879 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2NxnU , bFMD );878 #if NH_3D_FAST_TEXTURE_ENCODING 879 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2NxnU DEBUG_STRING_PASS_INTO(sDebug), bFMD ); 880 880 #else 881 881 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2NxnU DEBUG_STRING_PASS_INTO(sDebug) ); … … 896 896 ) 897 897 { 898 #if H_3D_FAST_TEXTURE_ENCODING899 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2NxnD , bFMD );898 #if NH_3D_FAST_TEXTURE_ENCODING 899 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2NxnD DEBUG_STRING_PASS_INTO(sDebug), bFMD ); 900 900 #else 901 901 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2NxnD DEBUG_STRING_PASS_INTO(sDebug) ); … … 922 922 ) 923 923 { 924 #if H_3D_FAST_TEXTURE_ENCODING925 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2NxnU , bFMD, true );924 #if NH_3D_FAST_TEXTURE_ENCODING 925 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2NxnU DEBUG_STRING_PASS_INTO(sDebug), bFMD, true ); 926 926 #else 927 927 … … 944 944 ) 945 945 { 946 #if H_3D_FAST_TEXTURE_ENCODING947 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2NxnD , bFMD, true );946 #if NH_3D_FAST_TEXTURE_ENCODING 947 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2NxnD DEBUG_STRING_PASS_INTO(sDebug), bFMD, true ); 948 948 #else 949 949 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_2NxnD DEBUG_STRING_PASS_INTO(sDebug), true ); … … 971 971 ) 972 972 { 973 #if H_3D_FAST_TEXTURE_ENCODING974 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_nLx2N , bFMD );973 #if NH_3D_FAST_TEXTURE_ENCODING 974 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_nLx2N DEBUG_STRING_PASS_INTO(sDebug), bFMD ); 975 975 #else 976 976 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_nLx2N DEBUG_STRING_PASS_INTO(sDebug) ); … … 992 992 ) 993 993 { 994 #if H_3D_FAST_TEXTURE_ENCODING995 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_nRx2N , bFMD );994 #if NH_3D_FAST_TEXTURE_ENCODING 995 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_nRx2N DEBUG_STRING_PASS_INTO(sDebug), bFMD ); 996 996 #else 997 997 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_nRx2N DEBUG_STRING_PASS_INTO(sDebug) ); … … 1012 1012 ) 1013 1013 { 1014 #if H_3D_FAST_TEXTURE_ENCODING1015 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_nLx2N , bFMD, true );1014 #if NH_3D_FAST_TEXTURE_ENCODING 1015 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_nLx2N DEBUG_STRING_PASS_INTO(sDebug), bFMD, true ); 1016 1016 #else 1017 1017 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_nLx2N DEBUG_STRING_PASS_INTO(sDebug), true ); … … 1032 1032 ) 1033 1033 { 1034 #if H_3D_FAST_TEXTURE_ENCODING1035 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_nRx2N , bFMD, true );1034 #if NH_3D_FAST_TEXTURE_ENCODING 1035 xCheckRDCostInter( rpcBestCU, rpcTempCU, SIZE_nRx2N DEBUG_STRING_PASS_INTO(sDebug), bFMD, true ); 1036 1036 #else 1037 1037 … … 1086 1086 } 1087 1087 } 1088 #if H_3D_FAST_TEXTURE_ENCODING1088 #if NH_3D_FAST_TEXTURE_ENCODING 1089 1089 if(!bFMD) 1090 1090 { … … 1178 1178 } 1179 1179 } 1180 #if H_3D_FAST_TEXTURE_ENCODING1180 #if NH_3D_FAST_TEXTURE_ENCODING 1181 1181 } 1182 1182 #endif … … 1205 1205 m_pcRDGoOnSbacCoder->store(m_pppcRDSbacCoder[uiDepth][CI_NEXT_BEST]); 1206 1206 } 1207 #if H_3D_FAST_TEXTURE_ENCODING1207 #if NH_3D_FAST_TEXTURE_ENCODING 1208 1208 if(rpcBestCU->getSlice()->getViewIndex() && !rpcBestCU->getSlice()->getIsDepth() && (uiDepth >=iIVFMaxD) && rpcBestCU->isSkipped(0)) 1209 1209 { … … 1247 1247 iMaxQP = iMinQP; // If all TUs are forced into using transquant bypass, do not loop here. 1248 1248 } 1249 1249 #if NH_3D_FAST_TEXTURE_ENCODING 1250 bSubBranch = bSubBranch && (bBoundary || !( m_pcEncCfg->getUseEarlyCU() && rpcBestCU->getTotalCost()!=MAX_DOUBLE && rpcBestCU->isSkipped(0) )); 1251 #else 1250 1252 const Bool bSubBranch = bBoundary || !( m_pcEncCfg->getUseEarlyCU() && rpcBestCU->getTotalCost()!=MAX_DOUBLE && rpcBestCU->isSkipped(0) ); 1253 #endif 1251 1254 #if NH_3D_QTLPC 1252 1255 if( bSubBranch && uiDepth < sps.getLog2DiffMaxMinCodingBlockSize() && (!getFastDeltaQp() || uiWidth > fastDeltaQPCuMaxSize || bBoundary) && bTrySplitDQP ) … … 2232 2235 2233 2236 #if AMP_MRG 2234 #if H_3D_FAST_TEXTURE_ENCODING2235 Void TEncCu::xCheckRDCostInter( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU, PartSize ePartSize , Bool bFMD, Bool bUseMRG)2237 #if NH_3D_FAST_TEXTURE_ENCODING 2238 Void TEncCu::xCheckRDCostInter( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU, PartSize ePartSize DEBUG_STRING_FN_DECLARE(sDebug), Bool bFMD, Bool bUseMRG) 2236 2239 #else 2237 2240 Void TEncCu::xCheckRDCostInter( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU, PartSize ePartSize DEBUG_STRING_FN_DECLARE(sDebug), Bool bUseMRG) … … 2257 2260 const Bool bTransquantBypassFlag = rpcTempCU->getCUTransquantBypass(0); 2258 2261 #endif 2259 #if H_3D_FAST_TEXTURE_ENCODING2262 #if NH_3D_FAST_TEXTURE_ENCODING 2260 2263 if(!(bFMD && (ePartSize == SIZE_2Nx2N))) //have motion estimation or merge check 2261 2264 { … … 2318 2321 #if AMP_MRG 2319 2322 rpcTempCU->setMergeAMP (true); 2320 #if H_3D_FAST_TEXTURE_ENCODING2321 m_pcPredSearch->predInterSearch ( rpcTempCU, m_ppcOrigYuv[uhDepth], m_ppcPredYuvTemp[uhDepth], m_ppcResiYuvTemp[uhDepth], m_ppcRecoYuvTemp[uhDepth] , bFMD, false, bUseMRG );2323 #if NH_3D_FAST_TEXTURE_ENCODING 2324 m_pcPredSearch->predInterSearch ( rpcTempCU, m_ppcOrigYuv[uhDepth], m_ppcPredYuvTemp[uhDepth], m_ppcResiYuvTemp[uhDepth], m_ppcRecoYuvTemp[uhDepth] DEBUG_STRING_PASS_INTO(sTest), bFMD, false, bUseMRG ); 2322 2325 #else 2323 2326 m_pcPredSearch->predInterSearch ( rpcTempCU, m_ppcOrigYuv[uhDepth], m_ppcPredYuvTemp[uhDepth], m_ppcResiYuvTemp[uhDepth], m_ppcRecoYuvTemp[uhDepth] DEBUG_STRING_PASS_INTO(sTest), false, bUseMRG ); … … 2458 2461 } 2459 2462 #endif 2460 #if H_3D_FAST_TEXTURE_ENCODING2463 #if NH_3D_FAST_TEXTURE_ENCODING 2461 2464 } 2462 2465 #endif -
branches/HTM-14.1-update-dev1/source/Lib/TLibEncoder/TEncCu.h
r1287 r1307 150 150 151 151 #if AMP_MRG 152 #if H_3D_FAST_TEXTURE_ENCODING153 Void xCheckRDCostInter ( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU, PartSize ePartSize , Bool bFMD, Bool bUseMRG = false ) ;152 #if NH_3D_FAST_TEXTURE_ENCODING 153 Void xCheckRDCostInter ( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU, PartSize ePartSize DEBUG_STRING_FN_DECLARE(sDebug), Bool bFMD, Bool bUseMRG = false ) ; 154 154 #else 155 155 Void xCheckRDCostInter ( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU, PartSize ePartSize DEBUG_STRING_FN_DECLARE(sDebug), Bool bUseMRG = false ); -
branches/HTM-14.1-update-dev1/source/Lib/TLibEncoder/TEncSearch.cpp
r1304 r1307 4092 4092 //! search of the best candidate for inter prediction 4093 4093 #if AMP_MRG 4094 #if H_3D_FAST_TEXTURE_ENCODING4095 Void TEncSearch::predInterSearch( TComDataCU* pcCU, TComYuv* pcOrgYuv, TComYuv* & rpcPredYuv, TComYuv*& rpcResiYuv, TComYuv*& rpcRecoYuv, Bool bFMD, Bool bUseRes, Bool bUseMRG )4094 #if NH_3D_FAST_TEXTURE_ENCODING 4095 Void TEncSearch::predInterSearch( TComDataCU* pcCU, TComYuv* pcOrgYuv, TComYuv* pcPredYuv, TComYuv* pcResiYuv, TComYuv* pcRecoYuv DEBUG_STRING_FN_DECLARE(sDebug), Bool bFMD, Bool bUseRes, Bool bUseMRG ) 4096 4096 #else 4097 4097 Void TEncSearch::predInterSearch( TComDataCU* pcCU, TComYuv* pcOrgYuv, TComYuv* pcPredYuv, TComYuv* pcResiYuv, TComYuv* pcRecoYuv DEBUG_STRING_FN_DECLARE(sDebug), Bool bUseRes, Bool bUseMRG ) … … 4196 4196 #if AMP_MRG 4197 4197 Bool bTestNormalMC = true; 4198 #if H_3D_FAST_TEXTURE_ENCODING4198 #if NH_3D_FAST_TEXTURE_ENCODING 4199 4199 if (bFMD||( bUseMRG && pcCU->getWidth( 0 ) > 8 && iNumPart == 2 )) 4200 4200 #else -
branches/HTM-14.1-update-dev1/source/Lib/TLibEncoder/TEncSearch.h
r1304 r1307 211 211 TComYuv* pcResiYuv, 212 212 TComYuv* pcRecoYuv 213 #if H_3D_FAST_TEXTURE_ENCODING 213 DEBUG_STRING_FN_DECLARE(sDebug), 214 #if NH_3D_FAST_TEXTURE_ENCODING 214 215 Bool bFMD, 215 216 #endif 216 DEBUG_STRING_FN_DECLARE(sDebug),217 217 Bool bUseRes = false 218 218 #if AMP_MRG
Note: See TracChangeset for help on using the changeset viewer.