Changeset 1239 in 3DVCSoftware for branches/HTM-14.1-update-dev1-RWTH/source/Lib/TLibEncoder
- Timestamp:
- 31 May 2015, 20:35:03 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev1-RWTH/source/Lib/TLibEncoder/TEncSearch.cpp
r1236 r1239 3143 3143 3144 3144 #if NH_3D_DMM 3145 const TComRectangle &puRect=tuRecurseWithPU.getRect(COMPONENT_Y); 3146 const UInt uiAbsPartIdx=tuRecurseWithPU.GetAbsPartIdxTU(); 3147 3148 Pel* piOrg = pcOrgYuv ->getAddr( COMPONENT_Y, uiAbsPartIdx ); 3149 Pel* piPred = pcPredYuv->getAddr( COMPONENT_Y, uiAbsPartIdx ); 3150 UInt uiStride = pcPredYuv->getStride( COMPONENT_Y ); 3145 3151 if( m_pcEncCfg->getIsDepth() ) 3146 3152 { 3147 const TComRectangle &puRect=tuRecurseWithPU.getRect(COMPONENT_Y);3148 const UInt uiAbsPartIdx=tuRecurseWithPU.GetAbsPartIdxTU();3149 3150 Pel* piOrg = pcOrgYuv ->getAddr( COMPONENT_Y, uiAbsPartIdx );3151 Pel* piPred = pcPredYuv->getAddr( COMPONENT_Y, uiAbsPartIdx );3152 UInt uiStride = pcPredYuv->getStride( COMPONENT_Y );3153 3154 3153 if( puRect.width >= DMM_MIN_SIZE && puRect.width <= DMM_MAX_SIZE && puRect.width == puRect.height && 3155 3154 ((m_pcEncCfg->getUseDMM() && pcCU->getSlice()->getIntraSdcWedgeFlag()) || pcCU->getSlice()->getIntraContourFlag()) ) … … 3229 3228 DEBUG_STRING_NEW(sPU) 3230 3229 UInt uiBestPUMode = 0; 3231 #if H_3D_FAST_INTRA_SDC3230 #if NH_3D_ENC_DEPTH 3232 3231 UInt uiBestPUModeConv = 0; 3233 3232 UInt uiSecondBestPUModeConv = 0; … … 3242 3241 Double dBestPUCost = MAX_DOUBLE; 3243 3242 3244 #if H_3D_FAST_INTRA_SDC3243 #if NH_3D_ENC_DEPTH 3245 3244 Double dBestPUCostConv = MAX_DOUBLE; 3246 UInt varCU = m_pcRdCost->calcVAR(piOrg, uiStride, uiWidth,uiHeight,pcCU->getDepth(0));3245 UInt varCU = m_pcRdCost->calcVAR(piOrg, uiStride, puRect.width, puRect.height, pcCU->getDepth(0), pcCU->getSlice()->getSPS()->getMaxCUWidth()); 3247 3246 UInt rdSDC = m_pcEncCfg->getIsDepth() ? numModesForFullRD : 0; 3248 3247 #endif … … 3251 3250 Pel apBestDCOffsets[2] = {0,0}; 3252 3251 #endif 3253 #if H_3D_FAST_INTRA_SDC3252 #if NH_3D_ENC_DEPTH 3254 3253 for( UInt uiMode = 0; uiMode < numModesForFullRD + rdSDC; uiMode++ ) 3255 3254 #else … … 3269 3268 { 3270 3269 // set luma prediction mode 3271 #if ! H_3D_FAST_INTRA_SDC3270 #if !NH_3D_ENC_DEPTH 3272 3271 UInt uiOrgMode = uiRdModeList[uiMode]; 3273 3272 #endif 3274 3273 3275 #if H_3D_FAST_INTRA_SDC3274 #if NH_3D_ENC_DEPTH 3276 3275 UInt uiOrgMode; 3277 3276 if (uiMode < numModesForFullRD) … … 3299 3298 3300 3299 #if NH_3D_SDC_INTRA 3301 #if H_3D_FAST_INTRA_SDC3300 #if NH_3D_ENC_DEPTH 3302 3301 Bool bTestSDC = ( ( m_pcEncCfg->getUseSDC() && pcCU->getSlice()->getIntraSdcWedgeFlag() ) && pcCU->getSDCAvailable(uiPartOffset) && uiMode >= numModesForFullRD); 3303 3302 #else … … 3307 3306 for( UInt uiSDC=0; uiSDC<=(bTestSDC?1:0); uiSDC++ ) 3308 3307 { 3309 #if H_3D_FAST_INTRA_SDC3308 #if NH_3D_ENC_DEPTH 3310 3309 if (!uiSDC && uiMode >= numModesForFullRD) continue; 3311 3310 #endif … … 3392 3391 #if NH_3D_ENC_DEPTH 3393 3392 xRecurIntraCodingLumaQT( pcOrgYuv, pcPredYuv, pcResiYuv, resiLumaPU, uiPUDistY, true, dPUCost, tuRecurseWithPU DEBUG_STRING_PASS_INTO(sMode), (zeroResi != 0) ); 3394 #if H_3D_FAST_INTRA_SDC3393 #if NH_3D_ENC_DEPTH 3395 3394 if( dPUCost < dBestPUCostConv ) 3396 3395 { … … 3624 3623 if( !tuRecurseWithPU.IsLastSection() ) 3625 3624 { 3626 const TComRectangle &puRect=tuRecurseWithPU.getRect(COMPONENT_Y);3625 //const TComRectangle &puRect=tuRecurseWithPU.getRect(COMPONENT_Y); 3627 3626 const UInt uiCompWidth = puRect.width; 3628 3627 const UInt uiCompHeight = puRect.height;
Note: See TracChangeset for help on using the changeset viewer.