Ignore:
Timestamp:
2 Jan 2014, 07:21:30 (11 years ago)
Author:
seregin
Message:

update to HM-12.1 base

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-4.1-dev/source/Lib/TLibEncoder/TEncCu.cpp

    r524 r532  
    9595 
    9696  m_bEncodeDQP = false;
    97 #if RATE_CONTROL_LAMBDA_DOMAIN && !M0036_RC_IMPROVEMENT
    98   m_LCUPredictionSAD = 0;
    99   m_addSADDepth      = 0;
    100   m_temporalSAD      = 0;
    101 #endif
    10297
    10398  // initialize partition order.
     
    243238  m_ppcBestCU[0]->initCU( rpcCU->getPic(), rpcCU->getAddr() );
    244239  m_ppcTempCU[0]->initCU( rpcCU->getPic(), rpcCU->getAddr() );
    245 
    246 #if RATE_CONTROL_LAMBDA_DOMAIN && !M0036_RC_IMPROVEMENT
    247   m_addSADDepth      = 0;
    248   m_LCUPredictionSAD = 0;
    249   m_temporalSAD      = 0;
    250 #endif
    251240
    252241#if N0383_IL_CONSTRAINED_TILE_SETS_SEI
     
    433422  }
    434423
    435 #if RATE_CONTROL_LAMBDA_DOMAIN
    436424  if ( m_pcEncCfg->getUseRateCtrl() )
    437425  {
     
    439427    iMaxQP = m_pcRateCtrl->getRCQP();
    440428  }
    441 #else
    442   if(m_pcEncCfg->getUseRateCtrl())
    443   {
    444     Int qp = m_pcRateCtrl->getUnitQP();
    445     iMinQP  = Clip3( MIN_QP, MAX_QP, qp);
    446     iMaxQP  = Clip3( MIN_QP, MAX_QP, qp);
    447   }
    448 #endif
    449429
    450430  // If slice start or slice end is within this cu...
     
    538518      }
    539519    }
    540 
    541 #if RATE_CONTROL_LAMBDA_DOMAIN && !M0036_RC_IMPROVEMENT
    542     if ( uiDepth <= m_addSADDepth )
    543     {
    544       m_LCUPredictionSAD += m_temporalSAD;
    545       m_addSADDepth = uiDepth;
    546     }
    547 #endif
    548520
    549521    if(!earlyDetectionSkipMode)
     
    796768  {
    797769    bBoundary = true;
    798 #if RATE_CONTROL_LAMBDA_DOMAIN && !M0036_RC_IMPROVEMENT
    799     m_addSADDepth++;
    800 #endif
    801770  }
    802771
     
    842811    iMaxQP = iStartQP;
    843812  }
    844 #if RATE_CONTROL_LAMBDA_DOMAIN
    845813  if ( m_pcEncCfg->getUseRateCtrl() )
    846814  {
     
    848816    iMaxQP = m_pcRateCtrl->getRCQP();
    849817  }
    850 #else
    851   if(m_pcEncCfg->getUseRateCtrl())
    852   {
    853     Int qp = m_pcRateCtrl->getUnitQP();
    854     iMinQP  = Clip3( MIN_QP, MAX_QP, qp);
    855     iMaxQP  = Clip3( MIN_QP, MAX_QP, qp);
    856   }
    857 #endif
    858818  for (Int iQP=iMinQP; iQP<=iMaxQP; iQP++)
    859819  {
     
    12501210}
    12511211
    1252 #if RATE_CONTROL_INTRA
    12531212Int xCalcHADs8x8_ISlice(Pel *piOrg, Int iStrideOrg)
    12541213{
     
    13651324  return(iSumHad);
    13661325}
    1367 #endif
    13681326
    13691327/** check RD costs for a CU block encoded with merge
     
    15421500#endif
    15431501
    1544 #if RATE_CONTROL_LAMBDA_DOMAIN && !M0036_RC_IMPROVEMENT
    1545   if ( m_pcEncCfg->getUseRateCtrl() && m_pcEncCfg->getLCULevelRC() && ePartSize == SIZE_2Nx2N && uhDepth <= m_addSADDepth )
    1546   {
    1547     UInt SAD = m_pcRdCost->getSADPart( g_bitDepthY, m_ppcPredYuvTemp[uhDepth]->getLumaAddr(), m_ppcPredYuvTemp[uhDepth]->getStride(),
    1548       m_ppcOrigYuv[uhDepth]->getLumaAddr(), m_ppcOrigYuv[uhDepth]->getStride(),
    1549       rpcTempCU->getWidth(0), rpcTempCU->getHeight(0) );
    1550     m_temporalSAD = (Int)SAD;
    1551   }
    1552 #endif
    1553 
    15541502  m_pcPredSearch->encodeResAndCalcRdInterCU( rpcTempCU, m_ppcOrigYuv[uhDepth], m_ppcPredYuvTemp[uhDepth], m_ppcResiYuvTemp[uhDepth], m_ppcResiYuvBest[uhDepth], m_ppcRecoYuvTemp[uhDepth], false );
    15551503  rpcTempCU->getTotalCost()  = m_pcRdCost->calcRdCost( rpcTempCU->getTotalBits(), rpcTempCU->getTotalDistortion() );
     
    15821530 
    15831531  m_pcEntropyCoder->resetBits();
    1584 
    15851532  if ( rpcTempCU->getSlice()->getPPS()->getTransquantBypassEnableFlag())
    15861533  {
     
    16361583
    16371584  m_pcEntropyCoder->resetBits();
    1638 
    16391585  if ( rpcTempCU->getSlice()->getPPS()->getTransquantBypassEnableFlag())
    16401586  {
Note: See TracChangeset for help on using the changeset viewer.