Changeset 1195 in SHVCSoftware


Ignore:
Timestamp:
8 Jul 2015, 19:35:33 (9 years ago)
Author:
seregin
Message:

macro cleanup: RPL_INIT_N0316_N0082

Location:
branches/SHM-dev/source/Lib/TLibCommon
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1191 r1195  
    609609
    610610#if SVC_EXTENSION
    611 #if RPL_INIT_N0316_N0082
     611    // initial reference picture list construction
    612612    if( m_layerId > 0 )
    613613    {     
     
    622622      }
    623623    }
    624 #endif
    625624#endif //SVC_EXTENSION
     625
    626626    for ( i=0; i<NumPocStCurr1; i++, cIdx++)
    627627    {
     
    632632      rpsCurrList0[cIdx] = RefPicSetLtCurr[i];
    633633    }
    634 #if !RPL_INIT_N0316_N0082
    635 #if SVC_EXTENSION
    636     if( m_layerId > 0 )
    637     {
    638       for( i = 0; i < m_activeNumILRRefIdx && cIdx < numPocTotalCurr; cIdx ++, i ++)     
    639       {
    640         Int refLayerIdc = m_interLayerPredLayerIdc[i];
    641         Int maxTidIlRefPicsPlus1 = getVPS()->getMaxTidIlRefPicsPlus1(ilpPic[refLayerIdc]->getSlice(0)->getLayerIdx(), getLayerIdx());
    642         if( ((Int)(ilpPic[refLayerIdc]->getSlice(0)->getTLayer())<=maxTidIlRefPicsPlus1-1) || (maxTidIlRefPicsPlus1==0 && ilpPic[refLayerIdc]->getSlice(0)->getRapPicFlag()) )
    643         {
    644           rpsCurrList0[cIdx] = ilpPic[refLayerIdc];
    645         }
    646       }
    647     }
    648 #endif
    649 #endif
     634
    650635  assert(cIdx == numPocTotalCurr);
    651636
     
    691676    assert(cIdx >= 0 && cIdx < numPocTotalCurr);
    692677    m_apcRefPicList[REF_PIC_LIST_0][rIdx] = rpsCurrList0[ cIdx ];
    693 #if RPL_INIT_N0316_N0082
     678
     679#if SVC_EXTENSION
    694680    m_bIsUsedAsLongTerm[0][rIdx] = ( cIdx >= NumPocStCurr0 && cIdx < NumPocStCurr0 + m_activeNumILRRefIdx ) || ( cIdx >= NumPocStCurr0 + NumPocStCurr1 + m_activeNumILRRefIdx );
    695681#else
     
    39383924  TComRefPicListModification* refPicListModification = &m_RefPicListModification;
    39393925  Int numberOfRpsCurrTempList = this->getNumRpsCurrTempList();  // total number of ref pics in listTemp0 including inter-layer ref pics
    3940 #if RPL_INIT_N0316_N0082
     3926#if SVC_EXTENSION
    39413927  Int numberOfPocBeforeCurr = this->getNumNegativeRpsCurrTempList();  // number of negative temporal ref pics
    39423928#endif
     
    39463932
    39473933  //set L0 inter-layer reference picture modification
    3948 #if RPL_INIT_N0316_N0082
     3934#if SVC_EXTENSION
    39493935  Bool hasModification = (m_aiNumRefIdx[REF_PIC_LIST_0] == (numberOfPocBeforeCurr + m_activeNumILRRefIdx)) ? false : true;
    39503936
     
    39803966      for(Int i = includeNumILRP; i > 0; i-- )
    39813967      {
    3982 #if RPL_INIT_N0316_N0082
    3983         if((numberOfPocBeforeCurr) >= m_aiNumRefIdx[REF_PIC_LIST_0])
     3968#if SVC_EXTENSION
     3969        if( numberOfPocBeforeCurr >= m_aiNumRefIdx[REF_PIC_LIST_0] )
    39843970        {
    39853971          refPicListModification->setRefPicSetIdxL0(m_aiNumRefIdx[REF_PIC_LIST_0] - i, numberOfPocBeforeCurr + includeNumILRP - i);
     
    39883974        {
    39893975          refPicListModification->setRefPicSetIdxL0(m_aiNumRefIdx[REF_PIC_LIST_0] - i, numberOfPocBeforeCurr + includeNumILRP - i);
    3990           for (Int j = numberOfPocBeforeCurr; j < (m_aiNumRefIdx[REF_PIC_LIST_0] - i); j++)
     3976          for( Int j = numberOfPocBeforeCurr; j < (m_aiNumRefIdx[REF_PIC_LIST_0] - i); j++ )
    39913977          {
    39923978            assert( j + includeNumILRP < numberOfRpsCurrTempList );
     
    40334019}
    40344020
    4035 #if RPL_INIT_N0316_N0082
    40364021Int TComSlice::getNumNegativeRpsCurrTempList()
    40374022{
     
    40424027
    40434028  Int numPocBeforeCurr = 0;
     4029
    40444030  for( UInt i = 0; i < m_pcRPS->getNumberOfNegativePictures(); i++ )
    40454031  {
    4046     if(m_pcRPS->getUsed(i))
     4032    if( m_pcRPS->getUsed(i) )
    40474033    {
    40484034      numPocBeforeCurr++;
     
    40524038  return numPocBeforeCurr;
    40534039}
    4054 #endif
    40554040#endif //SVC_EXTENSION
    40564041
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1191 r1195  
    23512351  Void      setCrossLayerBLAFlag  (Bool b)                   { m_bCrossLayerBLAFlag = b;     }
    23522352
    2353 #if RPL_INIT_N0316_N0082
    23542353  Int       getNumNegativeRpsCurrTempList();
    2355 #endif
    23562354
    23572355#if REPN_FORMAT_IN_VPS
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1194 r1195  
    8484#define POC_RESET_INFO_INFERENCE         1      ///< JCTVC-Q0146: Infer the value of poc_reset_info_present_flag when not present
    8585#define REPN_FORMAT_IN_VPS               1      ///< JCTVC-N0092: Signal represenation format (spatial resolution, bit depth, colour format) in the VPS
    86 #define RPL_INIT_N0316_N0082             1      ///< JCTVC-N0316, JCTVC-N0082: initial reference picture list construction
    8786#define SCALINGLIST_INFERRING            1      ///< JCTVC-N0371: inter-layer scaling list
    8887#define P0297_VPS_POC_LSB_ALIGNED_FLAG   1      ///< JCTVC-P0297: vps_poc_lsb_aligned_flag for cross-layer POC anchor picture derivation
Note: See TracChangeset for help on using the changeset viewer.