Changeset 840 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
25 Jul 2014, 21:20:46 (12 years ago)
Author:
seregin
Message:

print scalability ratio

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecGop.cpp

    r713 r840  
    218218      if( pcSlice->getRefPic(RefPicList(iRefList), iRefIndex)->isILR( m_layerId ) )
    219219      {
    220         printf( "%d(%d)", pcSlice->getRefPOC(RefPicList(iRefList), iRefIndex), pcSlice->getRefPic(RefPicList(iRefList), iRefIndex)->getLayerId() );
     220        UInt refLayerId = pcSlice->getRefPic(RefPicList(iRefList), iRefIndex)->getLayerId();
     221        UInt refLayerIdc = pcSlice->getInterLayerPredLayerIdc(refLayerId);
     222        assert( g_posScalingFactor[refLayerIdc][0] );
     223        assert( g_posScalingFactor[refLayerIdc][1] );
     224
     225        printf( "%d(%d, \{%1.2f, %1.2f\}x)", pcSlice->getRefPOC(RefPicList(iRefList), iRefIndex), refLayerId, 65536.0/g_posScalingFactor[refLayerIdc][0], 65536.0/g_posScalingFactor[refLayerIdc][1] );
    221226      }
    222227      else
Note: See TracChangeset for help on using the changeset viewer.