Ignore:
Timestamp:
19 Feb 2013, 20:33:52 (12 years ago)
Author:
tech
Message:

Removed HM-6.1 related guard macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-5.1-dev0/source/Lib/TLibEncoder/TEncCu.cpp

    r292 r294  
    107107 
    108108  m_bEncodeDQP = false;
    109 #if BURST_IPCM
    110109  m_checkBurstIPCMFlag = false;
    111 #endif
    112110
    113111  // initialize partition order.
     
    285283  }
    286284
    287 #if BURST_IPCM
    288285  TComPic* pcPic = pcCU->getPic();
    289286  Bool checkBurstIPCMFlag = (pcPic->getSlice(0)->getSPS()->getUsePCM())? true : false;
     
    293290  pcCU->setNumSucIPCM(0);
    294291  pcCU->setLastCUSucIPCMFlag(false);
    295 #endif
    296292
    297293  // Encode CU data
    298294  xEncodeCU( pcCU, 0, 0 );
    299295 
    300 #if OL_FLUSH
    301296  bool bTerminateSlice = bForceTerminate;
    302297  UInt uiCUAddr = pcCU->getAddr();
    303298    /* If at the end of an LCU line but not at the end of a substream, perform CABAC flush */
    304 #if WPP_SIMPLIFICATION
    305299    if (!bTerminateSlice && pcCU->getSlice()->getPPS()->getNumSubstreams() > 1)
    306 #else
    307     if (!bTerminateSlice && pcCU->getSlice()->getPPS()->getCabacIstateReset())
    308 #endif
    309300    {
    310301      Int iNumSubstreams = pcCU->getSlice()->getPPS()->getNumSubstreams();
     
    312303      UInt uiCol     = uiCUAddr % uiWidthInLCUs;
    313304      UInt uiLin     = uiCUAddr / uiWidthInLCUs;
    314 #if !REMOVE_TILE_DEPENDENCE
    315       Int iBreakDep = pcCU->getPic()->getPicSym()->getTileBoundaryIndependenceIdr();
    316 #endif
    317305      UInt uiTileStartLCU = pcCU->getPic()->getPicSym()->getTComTile(pcCU->getPic()->getPicSym()->getTileIdxMap(uiCUAddr))->getFirstCUAddr();
    318306      UInt uiTileLCUX = uiTileStartLCU % uiWidthInLCUs;
     
    321309      UInt uiTileHeight = pcCU->getPic()->getPicSym()->getTComTile(pcCU->getPic()->getPicSym()->getTileIdxMap(uiCUAddr))->getTileHeight();
    322310      Int iNumSubstreamsPerTile = iNumSubstreams;
    323 #if !REMOVE_TILE_DEPENDENCE
    324 #if WPP_SIMPLIFICATION
    325       if (iBreakDep && pcCU->getSlice()->getPPS()->getNumSubstreams() > 1)
    326 #else
    327       if (iBreakDep && pcCU->getSlice()->getPPS()->getEntropyCodingSynchro())
    328 #endif
     311      if (pcCU->getSlice()->getPPS()->getNumSubstreams() > 1)
     312      {
    329313        iNumSubstreamsPerTile /= pcCU->getPic()->getPicSym()->getNumTiles();
    330       if ((iBreakDep && (uiCol == uiTileLCUX+uiTileWidth-1) && (uiLin+iNumSubstreamsPerTile < uiTileLCUY+uiTileHeight))
    331           || (!iBreakDep && (uiCol == uiWidthInLCUs-1) && (uiLin+iNumSubstreams < pcCU->getPic()->getFrameHeightInCU())))
     314      }
     315      if ((uiCol == uiTileLCUX+uiTileWidth-1) && (uiLin+iNumSubstreamsPerTile < uiTileLCUY+uiTileHeight))
    332316      {
    333317        m_pcEntropyCoder->encodeFlush();
    334318      }
    335 #else
    336 #if WPP_SIMPLIFICATION
    337       if (pcCU->getSlice()->getPPS()->getNumSubstreams() > 1)
    338 #else
    339       if (pcCU->getSlice()->getPPS()->getEntropyCodingSynchro())
    340 #endif
    341       {
    342         iNumSubstreamsPerTile /= pcCU->getPic()->getPicSym()->getNumTiles();
    343       }
    344       if ((uiCol == uiTileLCUX+uiTileWidth-1) && (uiLin+iNumSubstreamsPerTile < uiTileLCUY+uiTileHeight))
    345       {
    346         m_pcEntropyCoder->encodeFlush();
    347       }
    348 #endif
    349     }
    350 #endif // OL_FLUSH
     319    }
    351320}
    352321
     
    556525#if LOSSLESS_CODING
    557526  Bool isAddLowestQP = false;
    558 #if H0736_AVC_STYLE_QP_RANGE
    559527  Int lowestQP = -rpcTempCU->getSlice()->getSPS()->getQpBDOffsetY();
    560 #else
    561   Int lowestQP = 0;
    562 #endif
    563528#endif
    564529
     
    566531  {
    567532    Int idQP = m_pcEncCfg->getMaxDeltaQP();
    568 #if H0736_AVC_STYLE_QP_RANGE
    569533    iMinQP = Clip3( -rpcTempCU->getSlice()->getSPS()->getQpBDOffsetY(), MAX_QP, iBaseQP-idQP );
    570534    iMaxQP = Clip3( -rpcTempCU->getSlice()->getSPS()->getQpBDOffsetY(), MAX_QP, iBaseQP+idQP );
     
    576540
    577541    }
    578 #endif
    579 #else
    580     iMinQP = Clip3( MIN_QP, MAX_QP, iBaseQP-idQP );
    581     iMaxQP = Clip3( MIN_QP, MAX_QP, iBaseQP+idQP );
    582 #if LOSSLESS_CODING
    583     if ( (rpcTempCU->getSlice()->getSPS()->getUseLossless()) && (lowestQP < iMinQP) && rpcTempCU->getSlice()->getPPS()->getUseDQP() )
    584     {
    585       isAddLowestQP = true;
    586       iMinQP = iMinQP - 1;
    587     }
    588 #endif
    589542#endif
    590543  }
     
    13171270  {
    13181271    Int idQP = m_pcEncCfg->getMaxDeltaQP();
    1319 #if H0736_AVC_STYLE_QP_RANGE
    13201272    iMinQP = Clip3( -rpcTempCU->getSlice()->getSPS()->getQpBDOffsetY(), MAX_QP, iBaseQP-idQP );
    13211273    iMaxQP = Clip3( -rpcTempCU->getSlice()->getSPS()->getQpBDOffsetY(), MAX_QP, iBaseQP+idQP );
     
    13261278      iMinQP = iMinQP - 1;     
    13271279    }
    1328 #endif
    1329 #else
    1330     iMinQP = Clip3( MIN_QP, MAX_QP, iBaseQP-idQP );
    1331     iMaxQP = Clip3( MIN_QP, MAX_QP, iBaseQP+idQP );
    1332 #if LOSSLESS_CODING
    1333     if ( (rpcTempCU->getSlice()->getSPS()->getUseLossless()) && (lowestQP < iMinQP) && rpcTempCU->getSlice()->getPPS()->getUseDQP() )
    1334     {
    1335       isAddLowestQP = true;
    1336       iMinQP = iMinQP - 1;
    1337     }
    1338 #endif
    13391280#endif
    13401281  }
     
    16351576    &&((uiPosY+pcCU->getHeight(uiAbsPartIdx))%uiGranularityWidth==0||(uiPosY+pcCU->getHeight(uiAbsPartIdx)==uiHeight));
    16361577 
    1637 #if BURST_IPCM
    16381578  if(granularityBoundary && (!(pcCU->getIPCMFlag(uiAbsPartIdx) && ( pcCU->getNumSucIPCM() > 1 ))))
    1639 #else
    1640   if(granularityBoundary)
    1641 #endif
    16421579  {
    16431580    // The 1-terminating bit is added to all streams, so don't add it here when it's 1.
     
    17311668    iQpOffset = Int(floor( dQpOffset + 0.49999 ));
    17321669  }
    1733 #if H0736_AVC_STYLE_QP_RANGE
    17341670  return Clip3(-pcCU->getSlice()->getSPS()->getQpBDOffsetY(), MAX_QP, iBaseQp+iQpOffset );
    1735 #else
    1736   return Clip3( MIN_QP, MAX_QP, iBaseQp+iQpOffset );
    1737 #endif
    17381671}
    17391672
     
    17541687  UInt uiBPelY   = uiTPelY + (g_uiMaxCUHeight>>uiDepth) - 1;
    17551688 
    1756 #if BURST_IPCM
    17571689  if( getCheckBurstIPCMFlag() )
    17581690  {
     
    17601692    pcCU->setNumSucIPCM( countNumSucIPCM ( pcCU, uiAbsPartIdx ) );
    17611693  }
    1762 #endif
    17631694
    17641695  TComSlice * pcSlice = pcCU->getPic()->getSlice(pcCU->getPic()->getCurrSliceIdx());
     
    18331764      setdQPFlag(true);
    18341765    }
    1835 #if BURST_IPCM
    18361766    pcCU->setNumSucIPCM(0);
    18371767    pcCU->setLastCUSucIPCMFlag(false);
    1838 #endif
    18391768    for ( UInt uiPartUnitIdx = 0; uiPartUnitIdx < 4; uiPartUnitIdx++, uiAbsPartIdx+=uiQNumParts )
    18401769    {
     
    19911920#endif
    19921921
    1993 #if FAST_DECISION_FOR_MRG_RD_COST
    19941922  Bool bestIsSkip = false;
    1995 #endif
    19961923 
    19971924  for( UInt uiMergeCand = 0; uiMergeCand < numValidMergeCand; ++uiMergeCand )
     
    20231950#endif
    20241951      {
    2025 #if FAST_DECISION_FOR_MRG_RD_COST
    20261952        if( !(bestIsSkip && uiNoResidual == 0) )
    20271953        {
    2028 #endif
    20291954          // set MC parameters
    20301955          rpcTempCU->setPredModeSubParts( MODE_SKIP, 0, uhDepth ); // interprets depth relative to LCU level
     
    20882013          else
    20892014          {
    2090 #if FAST_DECISION_FOR_MRG_RD_COST
    20912015            if( bestIsSkip)
    20922016            {
     
    21072031            else
    21082032            {
    2109 #endif
    21102033              if ( pcPredYuvTemp != m_ppcPredYuvTemp[uhDepth])
    21112034              {
     
    21132036                pcPredYuvTemp = m_ppcPredYuvBest[uhDepth];
    21142037              }
    2115 #if FAST_DECISION_FOR_MRG_RD_COST
    21162038            }
    2117 #endif
    21182039          }
    21192040#if HHI_VSO
     
    21402061          Bool bQtRootCbf = rpcTempCU->getQtRootCbf(0) == 1;
    21412062
    2142 #if H0736_AVC_STYLE_QP_RANGE
    21432063          Int orgQP = rpcTempCU->getQP( 0 );
    21442064          xCheckDQP( rpcTempCU );
    21452065          xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth);
    21462066          rpcTempCU->initEstData( uhDepth, orgQP );
    2147 #else
    2148           UInt uiOrgQP = rpcTempCU->getQP( 0 );
    2149           xCheckDQP( rpcTempCU );
    2150           xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth);
    2151           rpcTempCU->initEstData( uhDepth, uiOrgQP );
    2152 #endif
    2153 
    2154 #if FAST_DECISION_FOR_MRG_RD_COST
     2067
    21552068          if( m_pcEncCfg->getUseFastDecisionForMerge() && !bestIsSkip )
    21562069          {
    21572070            bestIsSkip = rpcBestCU->getQtRootCbf(0) == 0;
    21582071          }
    2159 #endif
    21602072
    21612073          if (!bQtRootCbf)
    21622074            break;
    2163 #if FAST_DECISION_FOR_MRG_RD_COST
    21642075        }
    2165 #endif
    21662076      }
    21672077    }
     
    25152425}
    25162426
    2517 #if BURST_IPCM
    25182427/** Check whether the last CU shares the same root as the current CU and is IPCM or not. 
    25192428 * \param pcCU
     
    26072516  return numSucIPCM;
    26082517}
    2609 #endif
    26102518
    26112519Void TEncCu::xCopyAMVPInfo (AMVPInfo* pSrc, AMVPInfo* pDst)
Note: See TracChangeset for help on using the changeset viewer.