Changeset 1209 in 3DVCSoftware for branches/HTM-14.1-update-dev1-HHI/source/Lib/TLibEncoder/TEncCu.cpp
- Timestamp:
- 13 May 2015, 15:16:14 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev1-HHI/source/Lib/TLibEncoder/TEncCu.cpp
r1200 r1209 733 733 } 734 734 #endif 735 #if H_3D_DIM_ENC735 #if NH_3D_ENC_DEPTH 736 736 if( rpcBestCU->getSlice()->getIsDepth() && rpcBestCU->getSlice()->isIRAP() ) 737 737 { … … 1075 1075 1076 1076 if((rpcBestCU->getSlice()->getSliceType() == I_SLICE) || 1077 ((!m_pcEncCfg->getDisableIntraPUsInInterSlices()) && (1077 ((!m_pcEncCfg->getDisableIntraPUsInInterSlices()) && ( // avoid very complex intra if it is unlikely 1078 1078 (rpcBestCU->getCbf( 0, COMPONENT_Y ) != 0) || 1079 1079 ((rpcBestCU->getCbf( 0, COMPONENT_Cb ) != 0) && (numberValidComponents > COMPONENT_Cb)) || 1080 ((rpcBestCU->getCbf( 0, COMPONENT_Cr ) != 0) && (numberValidComponents > COMPONENT_Cr))) 1081 // avoid very complex intra if it is unlikely 1082 #if H_3D_DIM_ENC 1080 ((rpcBestCU->getCbf( 0, COMPONENT_Cr ) != 0) && (numberValidComponents > COMPONENT_Cr)) 1081 #if NH_3D_ENC_DEPTH 1083 1082 || rpcBestCU->getSlice()->getIsDepth() 1084 1083 #endif 1085 )) 1084 ))) 1086 1085 { 1087 #if H_3D_DIM1086 #if NH_3D_ENC_DEPTH 1088 1087 Bool bOnlyIVP = false; 1089 1088 Bool bUseIVP = true; 1090 if( rpcBestCU->getSlice()->getIsDepth() && !(rpcBestCU->getSlice()->isIRAP()) && 1091 rpcBestCU->getSlice()->getSliceType() != I_SLICE && 1092 rpcBestCU->getCbf( 0, TEXT_LUMA ) == 0 && 1093 rpcBestCU->getCbf( 0, TEXT_CHROMA_U ) == 0 && 1094 rpcBestCU->getCbf( 0, TEXT_CHROMA_V ) == 0 1095 ) 1089 if( (rpcBestCU->getSlice()->getSliceType() != I_SLICE) && 1090 !( (rpcBestCU->getCbf( 0, COMPONENT_Y ) != 0) || 1091 ((rpcBestCU->getCbf( 0, COMPONENT_Cb ) != 0) && (numberValidComponents > COMPONENT_Cb)) || 1092 ((rpcBestCU->getCbf( 0, COMPONENT_Cr ) != 0) && (numberValidComponents > COMPONENT_Cr)) ) && 1093 (rpcBestCU->getSlice()->getIsDepth() && !(rpcBestCU->getSlice()->isIRAP())) ) 1096 1094 { 1097 1095 bOnlyIVP = true; … … 1100 1098 if( bUseIVP ) 1101 1099 { 1102 xCheckRDCostIntra( rpcBestCU, rpcTempCU, SIZE_2Nx2N, bOnlyIVP );1100 xCheckRDCostIntra( rpcBestCU, rpcTempCU, intraCost, SIZE_2Nx2N DEBUG_STRING_PASS_INTO(sDebug), bOnlyIVP ); 1103 1101 #else 1104 1102 xCheckRDCostIntra( rpcBestCU, rpcTempCU, intraCost, SIZE_2Nx2N DEBUG_STRING_PASS_INTO(sDebug) ); … … 1122 1120 { 1123 1121 Double tmpIntraCost; 1124 #if H_3D_DIM1125 xCheckRDCostIntra( rpcBestCU, rpcTempCU, SIZE_NxN, bOnlyIVP );1122 #if NH_3D_ENC_DEPTH 1123 xCheckRDCostIntra( rpcBestCU, rpcTempCU, tmpIntraCost, SIZE_NxN DEBUG_STRING_PASS_INTO(sDebug), bOnlyIVP ); 1126 1124 #else 1127 1125 xCheckRDCostIntra( rpcBestCU, rpcTempCU, tmpIntraCost, SIZE_NxN DEBUG_STRING_PASS_INTO(sDebug) ); … … 1135 1133 #endif 1136 1134 } 1137 #if H_3D1135 #if NH_3D_ENC_DEPTH 1138 1136 } 1139 1137 #endif … … 2654 2652 #endif 2655 2653 2656 #if H_3D_DIM2657 Void TEncCu::xCheckRDCostIntra( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU, PartSize eSize, Bool bOnlyIVP )2658 #else2659 2654 Void TEncCu::xCheckRDCostIntra( TComDataCU *&rpcBestCU, 2660 2655 TComDataCU *&rpcTempCU, 2661 2656 Double &cost, 2662 2657 PartSize eSize 2663 DEBUG_STRING_FN_DECLARE(sDebug) ) 2664 #endif 2658 DEBUG_STRING_FN_DECLARE(sDebug) 2659 #if NH_3D_ENC_DEPTH 2660 , Bool bOnlyIVP 2661 #endif 2662 ) 2665 2663 { 2666 2664 DEBUG_STRING_NEW(sTest) … … 2690 2688 Pel resiLuma[NUMBER_OF_STORED_RESIDUAL_TYPES][MAX_CU_SIZE * MAX_CU_SIZE]; 2691 2689 2692 m_pcPredSearch->estIntraPredLumaQT( rpcTempCU, m_ppcOrigYuv[uiDepth], m_ppcPredYuvTemp[uiDepth], m_ppcResiYuvTemp[uiDepth], m_ppcRecoYuvTemp[uiDepth], resiLuma DEBUG_STRING_PASS_INTO(sTest) ); 2690 m_pcPredSearch->estIntraPredLumaQT( rpcTempCU, m_ppcOrigYuv[uiDepth], m_ppcPredYuvTemp[uiDepth], m_ppcResiYuvTemp[uiDepth], m_ppcRecoYuvTemp[uiDepth], resiLuma DEBUG_STRING_PASS_INTO(sTest) 2691 #if NH_3D_ENC_DEPTH 2692 , bOnlyIVP 2693 #endif 2694 ); 2693 2695 2694 2696 m_ppcRecoYuvTemp[uiDepth]->copyToPicComponent(COMPONENT_Y, rpcTempCU->getPic()->getPicYuvRec(), rpcTempCU->getCtuRsAddr(), rpcTempCU->getZorderIdxInCtu() ); … … 2696 2698 if (rpcBestCU->getPic()->getChromaFormat()!=CHROMA_400) 2697 2699 { 2698 #if H_3D_DIM2699 m_pcPredSearch->estIntraPredQT ( rpcTempCU, m_ppcOrigYuv[uiDepth], m_ppcPredYuvTemp[uiDepth], m_ppcResiYuvTemp[uiDepth], m_ppcRecoYuvTemp[uiDepth], uiPreCalcDistC, bSeparateLumaChroma, bOnlyIVP );2700 #else2701 2700 m_pcPredSearch->estIntraPredChromaQT( rpcTempCU, m_ppcOrigYuv[uiDepth], m_ppcPredYuvTemp[uiDepth], m_ppcResiYuvTemp[uiDepth], m_ppcRecoYuvTemp[uiDepth], resiLuma DEBUG_STRING_PASS_INTO(sTest) ); 2702 #endif2703 2701 } 2704 2702 #if H_3D_DIM_SDC
Note: See TracChangeset for help on using the changeset viewer.