Changeset 1256 in 3DVCSoftware for branches/HTM-14.1-update-dev2-Orange/source/Lib/TLibEncoder
- Timestamp:
- 12 Jun 2015, 18:09:57 (10 years ago)
- Location:
- branches/HTM-14.1-update-dev2-Orange/source/Lib/TLibEncoder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev2-Orange/source/Lib/TLibEncoder/TEncCu.cpp
r1225 r1256 413 413 414 414 415 #if H_3D_QTLPC415 #if NH_3D_QTLPC 416 416 Bool bLimQtPredFalg = pcPic->getSlice(0)->getQtPredFlag(); 417 417 TComPic *pcTexture = rpcBestCU->getSlice()->getTexturePic(); … … 429 429 m_ppcOrigYuv[uiDepth]->copyFromPicYuv( pcPic->getPicYuvOrg(), rpcBestCU->getCtuRsAddr(), rpcBestCU->getZorderIdxInCtu() ); 430 430 431 #if H_3D_QTLPC431 #if NH_3D_QTLPC 432 432 Bool bTrySplit = true; 433 433 Bool bTrySplitDQP = true; … … 529 529 } 530 530 531 #if H_3D_QTLPC531 #if NH_3D_QTLPC 532 532 bTrySplit = true; 533 533 #endif … … 547 547 548 548 rpcTempCU->initEstData( uiDepth, iQP, bIsLosslessMode ); 549 #if H_3D_QTLPC549 #if NH_3D_QTLPC 550 550 //logic for setting bTrySplit using the partition information that is stored of the texture colocated CU 551 551 #if H_3D_FCO … … 555 555 #endif 556 556 { 557 TComDataCU* pcTextureCU = pcTexture->getC U( rpcBestCU->getAddr() ); //Corresponding texture LCU558 UInt uiCUIdx = rpcBestCU->getZorderIdxInC U();557 TComDataCU* pcTextureCU = pcTexture->getCtu( rpcBestCU->getCtuRsAddr() ); //Corresponding texture LCU 558 UInt uiCUIdx = rpcBestCU->getZorderIdxInCtu(); 559 559 assert(pcTextureCU->getDepth(uiCUIdx) >= uiDepth); //Depth cannot be more partitioned than the texture. 560 560 if (pcTextureCU->getDepth(uiCUIdx) > uiDepth || pcTextureCU->getPartitionSize(uiCUIdx) == SIZE_NxN) //Texture was split. … … 713 713 #endif 714 714 } 715 #if H_3D_QTLPC715 #if NH_3D_QTLPC 716 716 if(depthMapDetect && !bIntraSliceDetect && !rapPic && ( m_pcEncCfg->getUseQTL() || bLimQtPredFalg )) 717 717 { … … 768 768 { 769 769 if( uiDepth == sps.getLog2DiffMaxMinCodingBlockSize() && doNotBlockPu 770 #if H_3D_QTLPC770 #if NH_3D_QTLPC 771 771 && bTrySplit 772 772 #endif … … 788 788 789 789 if(doNotBlockPu 790 #if H_3D_QTLPC790 #if NH_3D_QTLPC 791 791 && bTryNx2N 792 792 #endif … … 809 809 } 810 810 if(doNotBlockPu 811 #if H_3D_QTLPC811 #if NH_3D_QTLPC 812 812 && bTry2NxN 813 813 #endif … … 850 850 { 851 851 if(doNotBlockPu 852 #if H_3D_QTLPC852 #if NH_3D_QTLPC 853 853 && bTry2NxN 854 854 #endif … … 870 870 } 871 871 if(doNotBlockPu 872 #if H_3D_QTLPC872 #if NH_3D_QTLPC 873 873 && bTry2NxN 874 874 #endif … … 896 896 { 897 897 if(doNotBlockPu 898 #if H_3D_QTLPC898 #if NH_3D_QTLPC 899 899 && bTry2NxN 900 900 #endif … … 918 918 } 919 919 if(doNotBlockPu 920 #if H_3D_QTLPC920 #if NH_3D_QTLPC 921 921 && bTry2NxN 922 922 #endif … … 945 945 { 946 946 if(doNotBlockPu 947 #if H_3D_QTLPC947 #if NH_3D_QTLPC 948 948 && bTryNx2N 949 949 #endif … … 966 966 } 967 967 if(doNotBlockPu 968 #if H_3D_QTLPC968 #if NH_3D_QTLPC 969 969 && bTryNx2N 970 970 #endif … … 986 986 { 987 987 if(doNotBlockPu 988 #if H_3D_QTLPC988 #if NH_3D_QTLPC 989 989 && bTryNx2N 990 990 #endif … … 1006 1006 } 1007 1007 if(doNotBlockPu 1008 #if H_3D_QTLPC1008 #if NH_3D_QTLPC 1009 1009 && bTryNx2N 1010 1010 #endif … … 1027 1027 1028 1028 #else 1029 #if H_3D_QTLPC1029 #if NH_3D_QTLPC 1030 1030 if (bTry2NxN) 1031 1031 { … … 1042 1042 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 1043 1043 #endif 1044 #if H_3D_QTLPC1044 #if NH_3D_QTLPC 1045 1045 } 1046 1046 if (bTryNx2N) … … 1057 1057 rpcTempCU->setDvInfoSubParts(DvInfo, 0, uiDepth); 1058 1058 #endif 1059 #if H_3D_QTLPC1059 #if NH_3D_QTLPC 1060 1060 } 1061 1061 #endif … … 1115 1115 if( uiDepth == sps.getLog2DiffMaxMinCodingBlockSize() ) 1116 1116 { 1117 #if H_3D_QTLPC //Try IntraNxN1117 #if NH_3D_QTLPC //Try IntraNxN 1118 1118 if(bTrySplit) 1119 1119 { … … 1131 1131 rpcTempCU->initEstData( uiDepth, iQP, bIsLosslessMode ); 1132 1132 } 1133 #if H_3D_QTLPC1133 #if NH_3D_QTLPC 1134 1134 } 1135 1135 #endif … … 1247 1247 1248 1248 // further split 1249 #if H_3D_QTLPC 1250 if( bSubBranch && bTrySplitDQP && uiDepth < g_uiMaxCUDepth - g_uiAddCUDepth ) 1249 #if NH_3D_QTLPC 1250 1251 if( bSubBranch && bTrySplitDQP && uiDepth < sps.getLog2DiffMaxMinCodingBlockSize() ) 1251 1252 #else 1252 1253 if( bSubBranch && uiDepth < sps.getLog2DiffMaxMinCodingBlockSize() ) -
branches/HTM-14.1-update-dev2-Orange/source/Lib/TLibEncoder/TEncSbac.cpp
r1225 r1256 645 645 { 646 646 PartSize eSize = pcCU->getPartitionSize( uiAbsPartIdx ); 647 #if H_3D_QTLPC647 #if NH_3D_QTLPC 648 648 Bool bLimQtPredFlag = pcCU->getPic()->getSlice(0)->getQtPredFlag(); 649 649 TComPic *pcTexture = pcCU->getSlice()->getTexturePic(); … … 662 662 #endif 663 663 { 664 TComDataCU *pcTextureCU = pcTexture->getC U(pcCU->getAddr());665 UInt uiCUIdx = (pcCU->getZorderIdxInC U() == 0) ? uiAbsPartIdx : pcCU->getZorderIdxInCU();664 TComDataCU *pcTextureCU = pcTexture->getCtu(pcCU->getCtuRsAddr()); 665 UInt uiCUIdx = (pcCU->getZorderIdxInCtu() == 0) ? uiAbsPartIdx : pcCU->getZorderIdxInCtu(); 666 666 assert(pcTextureCU->getDepth(uiCUIdx) >= uiDepth); 667 667 if(pcTextureCU->getDepth(uiCUIdx) == uiDepth ) … … 694 694 DTRACE_CU("part_mode", eSize ) 695 695 #endif 696 #if H_3D_QTLPC696 #if NH_3D_QTLPC 697 697 if (depthDependent==false || uiTexturePart == SIZE_NxN|| uiTexturePart == SIZE_2Nx2N) 698 698 { … … 768 768 } 769 769 } 770 #if H_3D_QTLPC770 #if NH_3D_QTLPC 771 771 } 772 772 else if(uiTexturePart == SIZE_2NxN || uiTexturePart == SIZE_2NxnU || uiTexturePart == SIZE_2NxnD) … … 785 785 { 786 786 m_pcBinIf->encodeBin( 0, m_cCUPartSizeSCModel.get( 0, 0, 0) ); 787 if ( pcCU->getSlice()->getSPS()->getAMPAcc( uiDepth ))787 if ( pcCU->getSlice()->getSPS()->getUseAMP() && uiDepth < log2DiffMaxMinCodingBlockSize ) 788 788 { 789 789 m_pcBinIf->encodeBin( 1, m_cCUPartSizeSCModel.get( 0, 0, 1) ); … … 820 820 { 821 821 m_pcBinIf->encodeBin( 0, m_cCUPartSizeSCModel.get( 0, 0, 0) ); 822 if ( pcCU->getSlice()->getSPS()->get AMPAcc( uiDepth ))822 if ( pcCU->getSlice()->getSPS()->getUseAMP() && uiDepth < log2DiffMaxMinCodingBlockSize ) 823 823 { 824 824 m_pcBinIf->encodeBin( 1, m_cCUPartSizeSCModel.get( 0, 0, 1) ); … … 1026 1026 1027 1027 assert( uiCtx < 3 ); 1028 #if H_3D_QTLPC1028 #if NH_3D_QTLPC 1029 1029 Bool bCodeSplitFlag = true; 1030 1030 … … 1043 1043 #endif 1044 1044 { 1045 TComDataCU *pcTextureCU = pcTexture->getC U(pcCU->getAddr());1046 UInt uiCUIdx = (pcCU->getZorderIdxInC U() == 0) ? uiAbsPartIdx : pcCU->getZorderIdxInCU();1045 TComDataCU *pcTextureCU = pcTexture->getCtu(pcCU->getCtuRsAddr()); 1046 UInt uiCUIdx = (pcCU->getZorderIdxInCtu() == 0) ? uiAbsPartIdx : pcCU->getZorderIdxInCtu(); 1047 1047 assert(pcTextureCU->getDepth(uiCUIdx) >= uiDepth); 1048 1048 bCodeSplitFlag = (pcTextureCU->getDepth(uiCUIdx) > uiDepth); -
branches/HTM-14.1-update-dev2-Orange/source/Lib/TLibEncoder/TEncSearch.cpp
r1226 r1256 2894 2894 const Bool bUseHadamard=pcCU->getCUTransquantBypass(0) == 0; 2895 2895 m_pcRdCost->setDistParam(distParam, sps.getBitDepth(CHANNEL_TYPE_LUMA), piOrg, uiStride, piPred, uiStride, puRect.width, puRect.height, bUseHadamard); 2896 2897 #if NH_3D_IC_FIX 2898 distParam.bUseIC = false; 2899 #endif 2900 #if H_3D_INTER_SDC_FIX 2901 distParam.bUseSDCMRSAD = false; 2902 #endif 2896 2903 distParam.bApplyWeight = false; 2897 2904 for( Int modeIdx = 0; modeIdx < numModesAvailable; modeIdx++ ) -
branches/HTM-14.1-update-dev2-Orange/source/Lib/TLibEncoder/TEncSlice.cpp
r1225 r1256 1194 1194 } 1195 1195 1196 #if H_3D_QTLPC1197 rpcPic->setReduceBitsFlag(true);1196 #if NH_3D_QTLPC 1197 pcPic->setReduceBitsFlag(true); 1198 1198 #endif 1199 1199 if ( pcSlice->getSPS()->getUseSAO() ) … … 1266 1266 } 1267 1267 } 1268 #if H_3D_QTLPC1269 rpcPic->setReduceBitsFlag(false);1268 #if NH_3D_QTLPC 1269 pcPic->setReduceBitsFlag(false); 1270 1270 #endif 1271 1271 } // CTU-loop
Note: See TracChangeset for help on using the changeset viewer.