Changeset 890 in SHVCSoftware


Ignore:
Timestamp:
23 Sep 2014, 04:41:19 (10 years ago)
Author:
seregin
Message:

fix scaling ratio output

Location:
branches/SHM-dev/source/Lib
Files:
4 edited

Legend:

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

    r881 r890  
    271271  }
    272272}
     273
    273274Int TComSlice::getCurrMsb( Int currLsb, Int prevLsb, Int prevMsb, Int maxLsbVal )
    274275{
     
    42614262  }
    42624263}
     4264
     4265Int TComSlice::getReferenceLayerIdc( UInt refLayerId )
     4266{
     4267  for( Int i = 0; i < m_activeNumILRRefIdx; i++ )
     4268  {
     4269    if( m_pcVPS->getRefLayerId(m_layerId, m_interLayerPredLayerIdc[i]) == refLayerId )
     4270    {
     4271      return m_interLayerPredLayerIdc[i];
     4272    }
     4273  }
     4274
     4275  return -1;
     4276}
    42634277#endif //SVC_EXTENSION
    42644278
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r879 r890  
    26492649  Int       getCurrMsb( Int currLsb, Int prevLsb, Int prevMsb, Int maxLsbVal );
    26502650#endif
     2651  Int       getReferenceLayerIdc( UInt refLayerId );
    26512652
    26522653#endif //SVC_EXTENSION
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecGop.cpp

    r868 r890  
    223223      {
    224224        UInt refLayerId = pcSlice->getRefPic(RefPicList(iRefList), iRefIndex)->getLayerId();
    225         UInt refLayerIdc = pcSlice->getInterLayerPredLayerIdc(refLayerId);
     225        UInt refLayerIdc = pcSlice->getReferenceLayerIdc(refLayerId);
    226226        assert( g_posScalingFactor[refLayerIdc][0] );
    227227        assert( g_posScalingFactor[refLayerIdc][1] );
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r884 r890  
    40554055#if POC_RESET_IDC_ENCODER
    40564056        UInt refLayerId = pcSlice->getRefPic(RefPicList(iRefList), iRefIndex)->getLayerId();
    4057         UInt refLayerIdc = pcSlice->getInterLayerPredLayerIdc(refLayerId);
     4057        UInt refLayerIdc = pcSlice->getReferenceLayerIdc(refLayerId);
    40584058        assert( g_posScalingFactor[refLayerIdc][0] );
    40594059        assert( g_posScalingFactor[refLayerIdc][1] );
Note: See TracChangeset for help on using the changeset viewer.