Changeset 564 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib


Ignore:
Timestamp:
27 Jan 2014, 17:54:11 (11 years ago)
Author:
seregin
Message:

remove JCTVC_M0458_INTERLAYER_RPS_SIG macro

Location:
branches/SHM-5.0-dev/source/Lib
Files:
7 edited

Legend:

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

    r562 r564  
    117117#if SVC_EXTENSION
    118118  memset( m_pcBaseColPic, 0, sizeof( m_pcBaseColPic ) );
    119 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    120119  m_activeNumILRRefIdx        = 0;
    121120  m_interLayerPredEnabledFlag = 0;
    122121  ::memset( m_interLayerPredLayerIdc, 0, sizeof(m_interLayerPredLayerIdc) );
    123 #else
    124   m_numILRRefIdx = 0;
    125 #endif
    126122#endif //SVC_EXTENSION
    127123
     
    167163#if SVC_EXTENSION
    168164  m_layerId = layerId;
    169 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    170165  m_activeNumILRRefIdx        = 0;
    171166  m_interLayerPredEnabledFlag = 0;
    172 #else
    173   m_numILRRefIdx              = 0;
    174 #endif
    175167#endif
    176168  m_aiNumRefIdx[0]      = 0;
     
    485477      }
    486478    }
    487 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    488479    if (numInterLayerRPSPics < m_activeNumILRRefIdx)
    489480    {
     
    564555#endif
    565556    }
    566 #endif
    567 #else
    568     if (numInterLayerRPSPics < m_numILRRefIdx)
    569     {
    570       m_numILRRefIdx = numInterLayerRPSPics;
    571     }
    572 #endif
    573   }
    574 #if JCTVC_M0458_INTERLAYER_RPS_SIG
     557#endif
     558  }
    575559  Int numPocTotalCurr = NumPocStCurr0 + NumPocStCurr1 + NumPocLtCurr + m_activeNumILRRefIdx;
    576 #else
    577   Int numPocTotalCurr = NumPocStCurr0 + NumPocStCurr1 + NumPocLtCurr + m_numILRRefIdx;
    578 #endif
    579560#else //SVC_EXTENSION
    580561  Int numPocTotalCurr = NumPocStCurr0 + NumPocStCurr1 + NumPocLtCurr;
     
    620601    if( m_layerId > 0 )
    621602    {     
    622 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    623603      for( i = 0; i < m_activeNumILRRefIdx && cIdx < numPocTotalCurr; cIdx ++, i ++)     
    624 #else
    625       for( i = 0; i < m_numILRRefIdx && cIdx < numPocTotalCurr; cIdx ++, i ++)
    626 #endif
    627604      {
    628605        Int refLayerIdc = m_interLayerPredLayerIdc[i];
     
    652629    if( m_layerId > 0 )
    653630    {
    654 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    655631      for( i = 0; i < m_activeNumILRRefIdx && cIdx < numPocTotalCurr; cIdx ++, i ++)     
    656 #else
    657       for( i = 0; i < m_numILRRefIdx && cIdx < numPocTotalCurr; cIdx ++, i ++)
    658 #endif
    659632      {
    660633        Int refLayerIdc = m_interLayerPredLayerIdc[i];
     
    693666    if( m_layerId > 0 )
    694667    {
    695 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    696668      for( i = 0; i < m_activeNumILRRefIdx && cIdx < numPocTotalCurr; cIdx ++, i ++)
    697 #else
    698       for( i = 0; i < m_numILRRefIdx && cIdx < numPocTotalCurr; cIdx ++, i ++)
    699 #endif
    700669      {
    701670        Int refLayerIdc = m_interLayerPredLayerIdc[i];
     
    799768    else
    800769    {
    801 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    802770      for(Int i = m_activeNumILRRefIdx; i > 0; i-- )
    803 #else
    804       for(Int i = m_numILRRefIdx; i > 0; i-- )
    805 #endif
    806771      {
    807772#if RPL_INIT_N0316_N0082
     
    848813    else
    849814    {
    850 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    851815      for(Int i = m_activeNumILRRefIdx; i > 0; i-- )
    852 #else
    853       for(Int i = m_numILRRefIdx; i > 0; i-- )
    854 #endif
    855816      {
    856817        refPicListModification->setRefPicSetIdxL1(m_aiNumRefIdx[REF_PIC_LIST_1] - i, numberOfRpsCurrTempList - i);
     
    894855  {
    895856#if SVC_EXTENSION
    896 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    897857    return m_activeNumILRRefIdx;
    898 #else
    899     return getNumILRRefIdx();
    900 #endif
    901858#else
    902859    return 0;
     
    913870  if( m_layerId > 0 )
    914871  {
    915 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    916872    numRpsCurrTempList += m_activeNumILRRefIdx;
    917 #else
    918     numRpsCurrTempList += getNumILRRefIdx();
    919 #endif
    920873}
    921874#endif
     
    11461099  m_pcVPS                = pSrc->m_pcVPS;
    11471100  m_layerId              = pSrc->m_layerId;
    1148 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    11491101  m_activeNumILRRefIdx         = pSrc->m_activeNumILRRefIdx;
    11501102  m_interLayerPredEnabledFlag  = pSrc->m_interLayerPredEnabledFlag;
    11511103  memcpy( m_interLayerPredLayerIdc, pSrc->m_interLayerPredLayerIdc, sizeof( m_interLayerPredLayerIdc ) );
    1152 #endif
    11531104#endif
    11541105  m_pcSPS                = pSrc->m_pcSPS;
     
    20762027#endif
    20772028  ::memset(m_profileLevelTierIdx,  0, sizeof(m_profileLevelTierIdx));
    2078 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    20792029  m_maxOneActiveRefLayerFlag = true;
    2080 #endif
    20812030#if O0062_POC_LSB_NOT_PRESENT_FLAG
    20822031  ::memset(m_pocLsbNotPresentFlag, 0, sizeof(m_pocLsbNotPresentFlag));
  • branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSlice.h

    r563 r564  
    546546#endif
    547547  Int        m_profileLevelTierIdx[64];     
    548 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    549548  Bool       m_maxOneActiveRefLayerFlag;
    550 #endif
    551549#if O0062_POC_LSB_NOT_PRESENT_FLAG
    552550  Bool       m_pocLsbNotPresentFlag[MAX_VPS_LAYER_ID_PLUS1];
     
    655653#endif
    656654
    657 #endif //SVC_EXTENSION
    658655#if !P0307_REMOVE_VPS_VUI_OFFSET
    659656#if VPS_VUI_OFFSET
     
    664661  Int     m_vpsNonVuiExtLength;
    665662#endif
     663#endif //SVC_EXTENSION
    666664public:
    667665  TComVPS();
     
    841839  Int    getProfileLevelTierIdx(Int i)                        { return m_profileLevelTierIdx[i]; }
    842840  Void   setProfileLevelTierIdx(Int i, Int x)                 { m_profileLevelTierIdx[i] = x   ; }
    843 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    844841  Bool   getMaxOneActiveRefLayerFlag()                                          { return m_maxOneActiveRefLayerFlag;                      }
    845842  Void   setMaxOneActiveRefLayerFlag(Bool x)                                    { m_maxOneActiveRefLayerFlag = x;                         }
    846 #endif
    847843#if O0062_POC_LSB_NOT_PRESENT_FLAG
    848844  UInt   getPocLsbNotPresentFlag(Int i)                                         { return m_pocLsbNotPresentFlag[i]; }
     
    18711867#endif
    18721868
    1873 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    18741869  Bool        m_interLayerPredEnabledFlag;
    18751870  Int         m_activeNumILRRefIdx;        //< Active inter-layer reference pictures
    18761871  Int         m_interLayerPredLayerIdc  [MAX_VPS_LAYER_ID_PLUS1];
    1877 #else
    1878 #if SVC_EXTENSION
    1879   Int         m_numILRRefIdx;       //< for inter-layer reference picture ser
    1880 #endif
    1881 #endif
    18821872#if POC_RESET_FLAG
    18831873  Bool        m_bPocResetFlag;
     
    21422132#endif
    21432133
    2144 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    21452134  Int       getActiveNumILRRefIdx     ( )               { return  m_activeNumILRRefIdx; }
    21462135  Void      setActiveNumILRRefIdx     ( Int i )         { m_activeNumILRRefIdx = i;     } 
     
    21512140  Void      setInterLayerPredEnabledFlag     ( Bool   val )    { m_interLayerPredEnabledFlag = val; }
    21522141  Bool      getInterLayerPredEnabledFlag     ()                { return m_interLayerPredEnabledFlag;}
    2153 #else
    2154   Void      setNumILRRefIdx     ( Int i )               { m_numILRRefIdx = i;     }
    2155 #endif
    21562142
    21572143  Void      setNumMotionPredRefLayers(int i)            { m_numMotionPredRefLayers = i; }
  • branches/SHM-5.0-dev/source/Lib/TLibCommon/TypeDef.h

    r563 r564  
    149149#define ENCODER_FAST_MODE                1      ///< JCTVC-L0174: enable encoder fast mode. TestMethod 1 is enabled by setting to 1 and TestMethod 2 is enable by setting to 2. By default it is set to 1.
    150150#define REF_IDX_MFM                      1      ///< JCTVC-L0336: motion vector mapping of inter-layer reference picture
    151 #define JCTVC_M0458_INTERLAYER_RPS_SIG   1      ///< implementation of JCTVC-L0178
    152 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    153151#define MAX_ONE_RESAMPLING_DIRECT_LAYERS 1      ///< Allow maximum of one resampling process for direct reference layers
    154152#define MOTION_RESAMPLING_CONSTRAINT     1      ///< JCTVC-N0108: Allow maximum of one motion resampling process for direct reference layers, and use motion inter-layer prediction from the same layer as texture inter-layer prediction.
    155 #endif
    156153#define JCTVC_M0203_INTERLAYER_PRED_IDC  1      ///< JCTVC-M0203: implementation of Inter-layer Prediction Indication
    157154#if JCTVC_M0203_INTERLAYER_PRED_IDC
     
    161158#define O0225_MAX_TID_FOR_REF_LAYERS     1
    162159#define O0225_TID_BASED_IL_RPS_DERIV     1
    163 
    164160#define VPS_TSLAYERS                     1      ///< JCTVC-O0120 signal max temporal sub-layers for each layer
    165161#define TSLAYERS_IL_RPS                  1      ///< JCTVC-O0120 IL RPS based on max temporal sub-layers
  • branches/SHM-5.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r563 r564  
    13421342  }
    13431343#endif
    1344 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    13451344  READ_FLAG(uiCode, "max_one_active_ref_layer_flag" );
    13461345  vps->setMaxOneActiveRefLayerFlag(uiCode);
    1347 #endif
    13481346#if O0062_POC_LSB_NOT_PRESENT_FLAG
    13491347  for(i = 1; i< vps->getMaxLayers(); i++)
     
    20542052
    20552053#if SVC_EXTENSION
    2056 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    20572054    rpcSlice->setActiveNumILRRefIdx(0);
    20582055#if ILP_SSH_SIG
     
    21562153    }
    21572154#endif
    2158 #else
    2159     if( rpcSlice->getLayerId() > 0 )
    2160     {
    2161       rpcSlice->setNumILRRefIdx( rpcSlice->getVPS()->getNumDirectRefLayers( rpcSlice->getLayerId() ) );
    2162     }
    2163 #endif
    21642155#endif
    21652156
  • branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r562 r564  
    10211021#endif
    10221022
    1023 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    1024       WRITE_FLAG(vps->getMaxOneActiveRefLayerFlag(), "max_one_active_ref_layer_flag");
    1025 #endif
     1023  WRITE_FLAG(vps->getMaxOneActiveRefLayerFlag(), "max_one_active_ref_layer_flag");
    10261024#if O0062_POC_LSB_NOT_PRESENT_FLAG
    10271025  for(i = 1; i< vps->getMaxLayers(); i++)
     
    16041602    }
    16051603
    1606 #if JCTVC_M0458_INTERLAYER_RPS_SIG
     1604#if SVC_EXTENSION
    16071605#if ILP_SSH_SIG
    16081606#if ILP_SSH_SIG_FIX
     
    16431641      }
    16441642    }     
    1645 #endif
     1643#endif //SVC_EXTENSION
    16461644
    16471645    if(pcSlice->getSPS()->getUseSAO())
  • branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r563 r564  
    11481148#endif
    11491149      {
    1150 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    11511150        pcSlice->setActiveNumILRRefIdx(0);
    11521151        pcSlice->setInterLayerPredEnabledFlag(0);
    1153 #else
    1154         pcSlice->setNumILRRefIdx(0);
    1155 #endif
    1156       }
    1157 #if JCTVC_M0458_INTERLAYER_RPS_SIG
     1152      }
    11581153      if( pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA )
    11591154      {
     
    11661161        pcSlice->setNumRefIdx(REF_PIC_LIST_1, pcSlice->getNumRefIdx(REF_PIC_LIST_1)+pcSlice->getActiveNumILRRefIdx());
    11671162      }
    1168 #else
    1169       if( pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA )
    1170       {
    1171         pcSlice->setNumRefIdx(REF_PIC_LIST_0, pcSlice->getNumILRRefIdx());
    1172         pcSlice->setNumRefIdx(REF_PIC_LIST_1, pcSlice->getNumILRRefIdx());
    1173       }
    1174       else
    1175       {
    1176         pcSlice->setNumRefIdx(REF_PIC_LIST_0, pcSlice->getNumRefIdx(REF_PIC_LIST_0)+pcSlice->getNumILRRefIdx());
    1177         pcSlice->setNumRefIdx(REF_PIC_LIST_1, pcSlice->getNumRefIdx(REF_PIC_LIST_1)+pcSlice->getNumILRRefIdx());
    1178       }
    1179 #endif
    11801163    }
    11811164#endif //SVC_EXTENSION
  • branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncSlice.cpp

    r563 r564  
    523523  if( layerId > 0 )
    524524  {
    525 #if JCTVC_M0458_INTERLAYER_RPS_SIG
    526525    if( rpcSlice->getNumILRRefIdx() > 0 )
    527526    {
     
    533532      rpcSlice->setInterLayerPredEnabledFlag(1);
    534533    }
    535 #else
    536     rpcSlice->setNumILRRefIdx( rpcSlice->getVPS()->getNumDirectRefLayers( layerId ) );
    537 #endif
    538534    rpcSlice->setMFMEnabledFlag(m_ppcTEncTop[layerId]->getMFMEnabledFlag());
    539535  }
Note: See TracChangeset for help on using the changeset viewer.