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


Ignore:
Timestamp:
30 Dec 2014, 20:36:14 (11 years ago)
Author:
seregin
Message:

code clean up

File:
1 edited

Legend:

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

    r941 r942  
    13751375  {
    13761376    vps->setProfilePresentFlag(1, false);
    1377 #if !MULTIPLE_PTL_SUPPORT
     1377#if MULTIPLE_PTL_SUPPORT
     1378    parsePTL( vps->getPTL(1), vps->getProfilePresentFlag(1), vps->getMaxTLayers() - 1 );
     1379#else
    13781380    vps->getPTLForExtnPtr()->empty();
    13791381    vps->getPTLForExtnPtr()->resize(2);
    13801382    vps->getPTLForExtn(1)->copyProfileInfo( vps->getPTL() );
    13811383    parsePTL( vps->getPTLForExtn(1), vps->getProfilePresentFlag(1), vps->getMaxTLayers() - 1 );
    1382 #else
    1383     parsePTL( vps->getPTL(1), vps->getProfilePresentFlag(1), vps->getMaxTLayers() - 1 );
    13841384#endif
    13851385  }
     
    16041604  READ_CODE(  6, uiCode, "vps_num_profile_tier_level_minus1"); vps->setNumProfileTierLevel( uiCode + 1 );
    16051605#else
    1606   READ_UVLC(  uiCode, "vps_num_profile_tier_level_minus1");
    1607   vps->setNumProfileTierLevel( uiCode + 1 );
    1608   //vps->setNumProfileTierLevel( 3 );
    1609   int aa = vps->getNumProfileTierLevel();
     1606  READ_UVLC(  uiCode, "vps_num_profile_tier_level_minus1"); vps->setNumProfileTierLevel( uiCode + 1 );
    16101607#endif
    16111608#if PER_LAYER_PTL
     
    16271624#if P0048_REMOVE_PROFILE_REF
    16281625      // Copy profile information from previous one
    1629 #if !MULTIPLE_PTL_SUPPORT
     1626#if MULTIPLE_PTL_SUPPORT
     1627      vps->getPTL(idx)->copyProfileInfo( vps->getPTL( idx - 1 ) );
     1628#else
    16301629      vps->getPTLForExtn(idx)->copyProfileInfo( (idx==1) ? vps->getPTL() : vps->getPTLForExtn( idx - 1 ) );
    1631 #else
    1632       vps->getPTL(idx)->copyProfileInfo( vps->getPTL( idx - 1 ) );
    16331630#endif
    16341631#else
     
    16431640#endif
    16441641    }
    1645 #if !MULTIPLE_PTL_SUPPORT
     1642#if MULTIPLE_PTL_SUPPORT
     1643    parsePTL( vps->getPTL(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 );
     1644#else
    16461645    parsePTL( vps->getPTLForExtn(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 );
    1647 #else
    1648     parsePTL( vps->getPTL(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 );
    16491646#endif
    16501647  }
     
    16911688  if( vps->getNumLayerSets() > 1 )
    16921689  {
    1693     READ_UVLC( uiCode, "num_add_olss" );           
    1694     vps->setNumAddOutputLayerSets( uiCode );
     1690    READ_UVLC( uiCode, "num_add_olss" );                  vps->setNumAddOutputLayerSets( uiCode );
    16951691    READ_CODE( 2, uiCode, "default_output_layer_idc" );   vps->setDefaultTargetOutputLayerIdc( uiCode );
    16961692  }
Note: See TracChangeset for help on using the changeset viewer.