Changeset 945 in SHVCSoftware for branches/SHM-upgrade/source/Lib/TLibEncoder


Ignore:
Timestamp:
31 Dec 2014, 07:37:45 (10 years ago)
Author:
seregin
Message:

temporal improvement for profile/level signalling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-upgrade/source/Lib/TLibEncoder/TEncCavlc.cpp

    r938 r945  
    14551455  for (Int i = 0; i < maxNumSubLayersMinus1; i++)
    14561456  {
     1457#if MULTIPLE_PTL_SUPPORT
     1458    WRITE_FLAG( pcPTL->getSubLayerProfilePresentFlag(i), "sub_layer_profile_present_flag[i]" );
     1459#else
    14571460    if(profilePresentFlag)
    14581461    {
    14591462      WRITE_FLAG( pcPTL->getSubLayerProfilePresentFlag(i), "sub_layer_profile_present_flag[i]" );
    14601463    }
     1464#endif
    14611465
    14621466    WRITE_FLAG( pcPTL->getSubLayerLevelPresentFlag(i),   "sub_layer_level_present_flag[i]" );
     
    14731477  for(Int i = 0; i < maxNumSubLayersMinus1; i++)
    14741478  {
     1479#if MULTIPLE_PTL_SUPPORT
     1480    if( pcPTL->getSubLayerProfilePresentFlag(i) )
     1481#else
    14751482    if( profilePresentFlag && pcPTL->getSubLayerProfilePresentFlag(i) )
     1483#endif
    14761484    {
    14771485      codeProfileTier(pcPTL->getSubLayerPTL(i));  // sub_layer_...
     
    20602068  if( vps->getMaxLayers() > 1 && vps->getBaseLayerInternalFlag() )
    20612069  {
     2070#if MULTIPLE_PTL_SUPPORT
     2071    codePTL( vps->getPTL(1), false, vps->getMaxTLayers() - 1 );
     2072#else
    20622073    codePTL( vps->getPTLForExtn(1), false, vps->getMaxTLayers() - 1 );
     2074#endif
    20632075  }
    20642076#endif
     
    22262238#endif
    22272239#if LIST_OF_PTL
     2240#if MULTIPLE_PTL_SUPPORT
     2241  //Do something here to make sure the loop is correct to consider base layer internal stuff
     2242#else
    22282243  assert( vps->getNumProfileTierLevel() == vps->getPTLForExtnPtr()->size());
     2244#endif
    22292245  for(Int idx = vps->getBaseLayerInternalFlag() ? 2 : 1; idx <= vps->getNumProfileTierLevel() - 1; idx++)
    22302246#else
     
    22322248#endif
    22332249  {
     2250#if MULTIPLE_PTL_SUPPORT
     2251    vps->setProfilePresentFlag(idx, true);
     2252#endif
    22342253    WRITE_FLAG( vps->getProfilePresentFlag(idx),       "vps_profile_present_flag[i]" );
    22352254#if !P0048_REMOVE_PROFILE_REF
     
    22392258    }
    22402259#endif
     2260#if MULTIPLE_PTL_SUPPORT
     2261    codePTL( vps->getPTL(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 );
     2262#else
    22412263    codePTL( vps->getPTLForExtn(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 );
     2264#endif
    22422265  }
    22432266#endif
Note: See TracChangeset for help on using the changeset viewer.