Ignore:
Timestamp:
7 Sep 2015, 18:40:35 (10 years ago)
Author:
tech
Message:

Removed 3D-HEVC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-15.1-MV-draft-4/source/Lib/TLibEncoder/TEncSlice.cpp

    r1313 r1325  
    136136  m_pdRdPicQp         = (Double*)xMalloc( Double, m_pcCfg->getDeltaQpRD() * 2 + 1 );
    137137  m_piRdPicQp         = (Int*   )xMalloc( Int,    m_pcCfg->getDeltaQpRD() * 2 + 1 );
    138 #if KWU_RC_MADPRED_E0227
    139   if(m_pcCfg->getUseRateCtrl())
    140   {
    141     m_pcRateCtrl        = pcEncTop->getRateCtrl();
    142   }
    143   else
    144   {
    145     m_pcRateCtrl        = NULL;
    146   }
    147 #else
    148138  m_pcRateCtrl        = pcEncTop->getRateCtrl();
    149 #endif
    150139
    151140}
     
    217206  rpcSlice->setViewId      ( pVPS->getViewId      ( layerId ) );   
    218207  rpcSlice->setViewIndex   ( pVPS->getViewIndex   ( layerId ) );
    219 #if NH_3D
    220   rpcSlice->setIsDepth     ( pVPS->getDepthId     ( layerId ) != 0 );   
    221 #endif
    222208#endif
    223209  rpcSlice->setSliceBits(0);
     
    226212  rpcSlice->setPicOutputFlag( true );
    227213  rpcSlice->setPOC( pocCurr );
    228 #if NH_3D_IC
    229   rpcSlice->setApplyIC( false );
    230 #endif
    231214  // depth computation based on GOP size
    232215  Int depth;
     
    439422  setUpLambda(rpcSlice, dLambda, iQP);
    440423
    441 #if NH_3D_VSO
    442   m_pcRdCost->setUseLambdaScaleVSO  ( (m_pcCfg->getUseVSO() ||  m_pcCfg->getForceLambdaScaleVSO()) && m_pcCfg->getIsDepth() );
    443   m_pcRdCost->setLambdaVSO          ( dLambda * m_pcCfg->getLambdaScaleVSO() );
    444 
    445   // Should be moved to TEncTop
    446  
    447   // SAIT_VSO_EST_A0033
    448   m_pcRdCost->setDisparityCoeff( m_pcCfg->getDispCoeff() );
    449 
    450   // LGE_WVSO_A0119
    451   if( m_pcCfg->getUseWVSO() && m_pcCfg->getIsDepth() )
    452   {
    453     m_pcRdCost->setDWeight  ( m_pcCfg->getDWeight()   );
    454     m_pcRdCost->setVSOWeight( m_pcCfg->getVSOWeight() );
    455     m_pcRdCost->setVSDWeight( m_pcCfg->getVSDWeight() );
    456   }
    457 
    458 #endif
    459424
    460425  if (m_pcCfg->getFastMEForGenBLowDelayEnabled())
     
    567532  rpcSlice->setSliceSegmentMode     ( m_pcCfg->getSliceSegmentMode()     );
    568533  rpcSlice->setSliceSegmentArgument ( m_pcCfg->getSliceSegmentArgument() );
    569 #if NH_3D_IV_MERGE
    570 #else
    571534  rpcSlice->setMaxNumMergeCand        ( m_pcCfg->getMaxNumMergeCand()        );
    572 #endif
    573535}
    574536
     
    682644    compressSlice   ( pcPic, true, m_pcCfg->getFastDeltaQp());
    683645
    684 #if NH_3D_VSO
    685     Dist64 uiPicDist        = m_uiPicDist;
    686 #else
    687646    UInt64 uiPicDist        = m_uiPicDist; // Distortion, as calculated by compressSlice.
    688647    // NOTE: This distortion is the chroma-weighted SSE distortion for the slice.
     
    693652    // m_pcGOPEncoder->preLoopFilterPicAll( pcPic, uiPicDist );
    694653
    695 #endif
    696654
    697655    // compute RD cost and choose the best
    698656    Double dPicRdCost = m_pcRdCost->calcRdCost64( m_uiPicTotalBits, uiPicDist, true, DF_SSE_FRAME); // NOTE: Is the 'true' parameter really necessary?
    699 #if H_3D
    700     // Above calculation need to be fixed for VSO, including frameLambda value.
    701 #endif
    702657
    703658    if ( dPicRdCost < dPicRdCostBest )
     
    825780#endif
    826781
    827 #if NH_3D_IC
    828   if ( m_pcCfg->getViewIndex() && m_pcCfg->getUseIC() &&
    829        !( ( pcSlice->getSliceType() == P_SLICE && pcSlice->getPPS()->getUseWP() ) || ( pcSlice->getSliceType() == B_SLICE && pcSlice->getPPS()->getWPBiPred() ) )
    830      )
    831   {
    832     pcSlice ->xSetApplyIC(m_pcCfg->getUseICLowLatencyEnc());
    833     if ( pcSlice->getApplyIC() )
    834     {
    835       pcSlice->setIcSkipParseFlag( pcSlice->getPOC() % m_pcCfg->getIntraPeriod() != 0 );
    836     }
    837   }
    838 #endif
    839782
    840783
     
    857800
    858801  // for every CTU in the slice segment (may terminate sooner if there is a byte limit on the slice-segment)
    859 #if NH_3D_VSO
    860   Int iLastPosY = -1;
    861 #endif
    862802
    863803  for( UInt ctuTsAddr = startCtuTsAddr; ctuTsAddr < boundingCtuTsAddr; ++ctuTsAddr )
     
    867807    TComDataCU* pCtu = pcPic->getCtu( ctuRsAddr );
    868808    pCtu->initCtu( pcPic, ctuRsAddr );
    869 #if NH_3D_VSO
    870     if ( m_pcRdCost->getUseRenModel() )
    871     {
    872       // updated renderer model if necessary
    873       Int iCurPosX;
    874       Int iCurPosY;
    875       pCtu->getPosInPic(0, iCurPosX, iCurPosY );
    876       if ( iCurPosY != iLastPosY )
    877       {
    878         iLastPosY = iCurPosY;         
    879         TEncTop* pcEncTop = (TEncTop*) m_pcCfg; // Fix this later.
    880         pcEncTop->setupRenModel( pcSlice->getPOC() , pcSlice->getViewIndex(), pcSlice->getIsDepth() ? 1 : 0, iCurPosY, pcSlice->getSPS()->getMaxCUHeight() );
    881       }
    882     }
    883 #endif
    884809
    885810    // update CABAC state
     
    931856      else
    932857      {
    933 #if KWU_RC_MADPRED_E0227
    934           if(pcSlice->getLayerId() != 0 && m_pcCfg->getUseDepthMADPred() && !pcSlice->getIsDepth())
    935           {
    936             Double zn, zf, focallength, position, camShift;
    937             Double basePos;
    938             Bool bInterpolated;
    939             Int direction = pcSlice->getViewId() - pcCU->getSlice()->getIvPic(false, 0)->getViewId();
    940             Int disparity;
    941 
    942             pcEncTop->getCamParam()->xGetZNearZFar(pcEncTop->getCamParam()->getBaseViewNumbers()[pcSlice->getViewIndex()], pcSlice->getPOC(), zn, zf);
    943             pcEncTop->getCamParam()->xGetGeometryData(pcEncTop->getCamParam()->getBaseViewNumbers()[0], pcSlice->getPOC(), focallength, basePos, camShift, bInterpolated);
    944             pcEncTop->getCamParam()->xGetGeometryData(pcEncTop->getCamParam()->getBaseViewNumbers()[pcSlice->getViewIndex()], pcSlice->getPOC(), focallength, position, camShift, bInterpolated);
    945             bpp       = m_pcRateCtrl->getRCPic()->getLCUTargetBppforInterView( m_pcRateCtrl->getPicList(), pcCU,
    946               basePos, position, focallength, zn, zf, (direction > 0 ? 1 : -1), &disparity );
    947           }
    948           else
    949           {
    950 #endif
    951858        bpp = m_pcRateCtrl->getRCPic()->getLCUTargetBpp(pcSlice->getSliceType());
    952859        if ( pcPic->getSlice( 0 )->getSliceType() == I_SLICE)
     
    959866          estQP     = m_pcRateCtrl->getRCPic()->getLCUEstQP    ( estLambda, pcSlice->getSliceQp() );
    960867        }
    961 #if KWU_RC_MADPRED_E0227
    962           estLambda = m_pcRateCtrl->getRCPic()->getLCUEstLambda( bpp );
    963           estQP     = m_pcRateCtrl->getRCPic()->getLCUEstQP    ( estLambda, pcSlice->getSliceQp() );
    964 #endif
    965868
    966869        estQP     = Clip3( -pcSlice->getSPS()->getQpBDOffset(CHANNEL_TYPE_LUMA), MAX_QP, estQP );
     
    1039942    if ( m_pcCfg->getUseRateCtrl() )
    1040943    {
    1041 #if KWU_RC_MADPRED_E0227
    1042         UInt SAD    = m_pcCuEncoder->getLCUPredictionSAD();
    1043         Int height  = min( pcSlice->getSPS()->getMaxCUHeight(),pcSlice->getSPS()->getPicHeightInLumaSamples() - uiCUAddr / rpcPic->getFrameWidthInCU() * pcSlice->getSPS()->getMaxCUHeight() );
    1044         Int width   = min( pcSlice->getSPS()->getMaxCUWidth(),pcSlice->getSPS()->getPicWidthInLumaSamples() - uiCUAddr % rpcPic->getFrameWidthInCU() * pcSlice->getSPS()->getMaxCUWidth() );
    1045         Double MAD = (Double)SAD / (Double)(height * width);
    1046         MAD = MAD * MAD;
    1047         ( m_pcRateCtrl->getRCPic()->getLCU(uiCUAddr) ).m_MAD = MAD;
    1048 #endif
    1049944
    1050945      Int actualQP        = g_RCInvalidQPValue;
     
    12031098    }
    12041099
    1205 #if NH_3D_QTLPC
    1206     pcPic->setReduceBitsFlag(true);
    1207 #endif
    12081100    if ( pcSlice->getSPS()->getUseSAO() )
    12091101    {
     
    12751167      }
    12761168    }
    1277 #if NH_3D_QTLPC
    1278     pcPic->setReduceBitsFlag(false);
    1279 #endif
    12801169  } // CTU-loop
    12811170
Note: See TracChangeset for help on using the changeset viewer.