Ignore:
Timestamp:
31 May 2015, 20:35:03 (10 years ago)
Author:
rwth
Message:
  • enabled SDC encoder speedup
  • fixed some compiler warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-14.1-update-dev1-RWTH/source/Lib/TLibEncoder/TEncSearch.cpp

    r1236 r1239  
    31433143
    31443144#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 );
    31453151    if( m_pcEncCfg->getIsDepth() )
    31463152    {
    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 
    31543153      if( puRect.width >= DMM_MIN_SIZE && puRect.width <= DMM_MAX_SIZE &&  puRect.width == puRect.height &&
    31553154          ((m_pcEncCfg->getUseDMM() &&  pcCU->getSlice()->getIntraSdcWedgeFlag()) || pcCU->getSlice()->getIntraContourFlag()) )
     
    32293228    DEBUG_STRING_NEW(sPU)
    32303229    UInt       uiBestPUMode  = 0;
    3231 #if H_3D_FAST_INTRA_SDC
     3230#if NH_3D_ENC_DEPTH
    32323231    UInt    uiBestPUModeConv  = 0;
    32333232    UInt    uiSecondBestPUModeConv  = 0;
     
    32423241    Double     dBestPUCost   = MAX_DOUBLE;
    32433242
    3244 #if H_3D_FAST_INTRA_SDC
     3243#if NH_3D_ENC_DEPTH
    32453244    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());
    32473246    UInt rdSDC = m_pcEncCfg->getIsDepth() ? numModesForFullRD : 0;
    32483247#endif
     
    32513250    Pel     apBestDCOffsets[2] = {0,0};
    32523251#endif
    3253 #if H_3D_FAST_INTRA_SDC
     3252#if NH_3D_ENC_DEPTH
    32543253    for( UInt uiMode = 0; uiMode < numModesForFullRD + rdSDC; uiMode++ )
    32553254#else
     
    32693268    {
    32703269      // set luma prediction mode
    3271 #if !H_3D_FAST_INTRA_SDC
     3270#if !NH_3D_ENC_DEPTH
    32723271      UInt uiOrgMode = uiRdModeList[uiMode];
    32733272#endif
    32743273
    3275 #if H_3D_FAST_INTRA_SDC
     3274#if NH_3D_ENC_DEPTH
    32763275      UInt uiOrgMode;
    32773276      if (uiMode < numModesForFullRD)
     
    32993298
    33003299#if NH_3D_SDC_INTRA
    3301 #if H_3D_FAST_INTRA_SDC
     3300#if NH_3D_ENC_DEPTH
    33023301      Bool bTestSDC = ( ( m_pcEncCfg->getUseSDC() &&  pcCU->getSlice()->getIntraSdcWedgeFlag() ) && pcCU->getSDCAvailable(uiPartOffset) && uiMode >= numModesForFullRD);
    33033302#else
     
    33073306      for( UInt uiSDC=0; uiSDC<=(bTestSDC?1:0); uiSDC++ )
    33083307      {
    3309 #if H_3D_FAST_INTRA_SDC
     3308#if NH_3D_ENC_DEPTH
    33103309        if (!uiSDC && uiMode >= numModesForFullRD) continue;
    33113310#endif
     
    33923391#if NH_3D_ENC_DEPTH
    33933392      xRecurIntraCodingLumaQT( pcOrgYuv, pcPredYuv, pcResiYuv, resiLumaPU, uiPUDistY, true, dPUCost, tuRecurseWithPU DEBUG_STRING_PASS_INTO(sMode), (zeroResi != 0) );
    3394 #if H_3D_FAST_INTRA_SDC   
     3393#if NH_3D_ENC_DEPTH
    33953394              if( dPUCost < dBestPUCostConv )
    33963395              {
     
    36243623    if( !tuRecurseWithPU.IsLastSection() )
    36253624    {
    3626       const TComRectangle &puRect=tuRecurseWithPU.getRect(COMPONENT_Y);
     3625      //const TComRectangle &puRect=tuRecurseWithPU.getRect(COMPONENT_Y);
    36273626      const UInt  uiCompWidth   = puRect.width;
    36283627      const UInt  uiCompHeight  = puRect.height;
Note: See TracChangeset for help on using the changeset viewer.