Changeset 840 in SHVCSoftware for branches/SHM-dev


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

print scalability ratio

Location:
branches/SHM-dev/source/Lib
Files:
2 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
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r825 r840  
    39623962      {
    39633963#if POC_RESET_IDC_ENCODER
    3964         printf( "%d(%d)", pcSlice->getRefPOC(RefPicList(iRefList), iRefIndex), pcSlice->getRefPic(RefPicList(iRefList), iRefIndex)->getLayerId() );
     3964        UInt refLayerId = pcSlice->getRefPic(RefPicList(iRefList), iRefIndex)->getLayerId();
     3965        UInt refLayerIdc = pcSlice->getInterLayerPredLayerIdc(refLayerId);
     3966        assert( g_posScalingFactor[refLayerIdc][0] );
     3967        assert( g_posScalingFactor[refLayerIdc][1] );
     3968
     3969        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] );
    39653970#else
    39663971        printf( "%d(%d)", pcSlice->getRefPOC(RefPicList(iRefList), iRefIndex)-pcSlice->getLastIDR(), pcSlice->getRefPic(RefPicList(iRefList), iRefIndex)->getLayerId() );
Note: See TracChangeset for help on using the changeset viewer.