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


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

delete M0457_IL_SAMPLE_PRED_ONLY_FLAG macro and related code

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

Legend:

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

    r557 r559  
    128128  m_colRefLayerIdx       = 0;
    129129#endif
    130 #if M0457_IL_SAMPLE_PRED_ONLY_FLAG
    131   m_numSamplePredRefLayers       = 0;
    132   m_interLayerSamplePredOnlyFlag = false;
    133 #endif
    134130#endif //SVC_EXTENSION
    135131
     
    180176#else
    181177  m_numILRRefIdx              = 0;
    182 #endif
    183 #if M0457_IL_SAMPLE_PRED_ONLY_FLAG
    184   m_numSamplePredRefLayers       = 0;
    185   m_interLayerSamplePredOnlyFlag = false;
    186178#endif
    187179#endif
     
    410402      pcRefPic->getPicYuvRec()->extendPicBorder();
    411403      RefPicSetStCurr0[NumPocStCurr0] = pcRefPic;
    412 #if M0457_IL_SAMPLE_PRED_ONLY_FLAG
    413       if( !m_interLayerSamplePredOnlyFlag || pcRefPic->getLayerId() < getLayerId())
    414 #endif
    415404      NumPocStCurr0++;
    416405      pcRefPic->setCheckLTMSBPresent(false); 
     
    426415      pcRefPic->getPicYuvRec()->extendPicBorder();
    427416      RefPicSetStCurr1[NumPocStCurr1] = pcRefPic;
    428 #if M0457_IL_SAMPLE_PRED_ONLY_FLAG
    429       if( !m_interLayerSamplePredOnlyFlag || pcRefPic->getLayerId() < getLayerId())
    430 #endif
    431417      NumPocStCurr1++;
    432418      pcRefPic->setCheckLTMSBPresent(false); 
     
    442428      pcRefPic->getPicYuvRec()->extendPicBorder();
    443429      RefPicSetLtCurr[NumPocLtCurr] = pcRefPic;
    444 #if M0457_IL_SAMPLE_PRED_ONLY_FLAG
    445       if( !m_interLayerSamplePredOnlyFlag || pcRefPic->getLayerId() < getLayerId())
    446 #endif
    447430      NumPocLtCurr++;
    448431    }
     
    623606
    624607    if (m_eSliceType == I_SLICE)
    625   {
     608    {
    626609      ::memset( m_apcRefPicList, 0, sizeof (m_apcRefPicList));
    627610      ::memset( m_aiNumRefIdx,   0, sizeof ( m_aiNumRefIdx ));
    628      
     611
    629612      return;
    630613    }
    631    
     614
    632615    assert(numPocTotalCurr > 0);
    633    
     616
    634617    m_aiNumRefIdx[0] = getNumRefIdx(REF_PIC_LIST_0);
    635618    m_aiNumRefIdx[1] = getNumRefIdx(REF_PIC_LIST_1);
    636619  }
    637620
    638 #if M0457_IL_SAMPLE_PRED_ONLY_FLAG
    639     if( m_interLayerSamplePredOnlyFlag && getLayerId() )
    640     {
    641       m_aiNumRefIdx[0] = m_aiNumRefIdx[0] > m_activeNumILRRefIdx ? m_activeNumILRRefIdx : m_aiNumRefIdx[0];
    642       m_aiNumRefIdx[1] = m_aiNumRefIdx[1] > m_activeNumILRRefIdx ? m_activeNumILRRefIdx : m_aiNumRefIdx[1];
    643     }
    644 #endif
    645  
    646621    Int cIdx = 0;
    647622    for ( i=0; i<NumPocStCurr0; i++, cIdx++)
  • branches/SHM-5.0-dev/source/Lib/TLibCommon/TComSlice.h

    r558 r559  
    19231923#endif
    19241924#endif
    1925 #if M0457_IL_SAMPLE_PRED_ONLY_FLAG
    1926   Int         m_numSamplePredRefLayers;
    1927   Bool        m_interLayerSamplePredOnlyFlag;
    1928 #endif
    19291925#if POC_RESET_FLAG
    19301926  Bool        m_bPocResetFlag;
     
    22022198#endif
    22032199
    2204 #if M0457_IL_SAMPLE_PRED_ONLY_FLAG
    2205   Int       getNumSamplePredRefLayers      ( )          { return  m_numSamplePredRefLayers;       }
    2206   Void      setNumSamplePredRefLayers      ( Int i )    { m_numSamplePredRefLayers = i;           }
    2207   Bool      getInterLayerSamplePredOnlyFlag( )          { return  m_interLayerSamplePredOnlyFlag; }
    2208   Void      setInterLayerSamplePredOnlyFlag( Bool val ) { m_interLayerSamplePredOnlyFlag = val;   }
    2209 #endif
    2210 
    22112200#if M0457_COL_PICTURE_SIGNALING
    22122201  Void      setNumMotionPredRefLayers(int i)            { m_numMotionPredRefLayers = i; }
  • branches/SHM-5.0-dev/source/Lib/TLibCommon/TypeDef.h

    r558 r559  
    171171#define M0457_COL_PICTURE_SIGNALING      1
    172172#define N0139_POSITION_ROUNDING_OFFSET   1      ///< JCTVC-N0139: offset for collocated block in motion mapping
    173 #endif
    174 
    175 #if !VPS_EXTN_DIRECT_REF_LAYERS || !M0457_PREDICTION_INDICATIONS || !JCTVC_M0458_INTERLAYER_RPS_SIG
    176 #define M0457_IL_SAMPLE_PRED_ONLY_FLAG   0      ///< shall be 0, JCTVC-N0107
    177 #else
    178 #define M0457_IL_SAMPLE_PRED_ONLY_FLAG   0      ///< shall be 0, JCTVC-N0107
    179173#endif
    180174
Note: See TracChangeset for help on using the changeset viewer.