Changeset 1105 in SHVCSoftware


Ignore:
Timestamp:
6 Jul 2015, 20:41:31 (9 years ago)
Author:
seregin
Message:

macro cleanup: O0109_PROF_REF_MINUS1, P0048_REMOVE_PROFILE_REF

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

Legend:

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

    r1100 r1105  
    20522052#if VPS_EXTN_PROFILE_INFO
    20532053  ::memset(m_profilePresentFlag, 0, sizeof(m_profilePresentFlag));
    2054 #if !P0048_REMOVE_PROFILE_REF
    2055   ::memset(m_profileLayerSetRef, 0, sizeof(m_profileLayerSetRef));
    2056 #endif
    20572054#endif
    20582055#if VPS_EXTN_OP_LAYER_SETS
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1100 r1105  
    659659  // Profile-tier-level signalling related
    660660  Bool       m_profilePresentFlag[MAX_VPS_LAYER_SETS_PLUS1];    // The value with index 0 will not be used.
    661 #if !P0048_REMOVE_PROFILE_REF
    662   UInt       m_profileLayerSetRef[MAX_VPS_LAYER_SETS_PLUS1];    // The value with index 0 will not be used.
    663 #endif
    664661#if !MULTIPLE_PTL_SUPPORT
    665662  std::vector<TComPTL>    m_pcPTLForExtn; 
     
    10611058  Bool   getProfilePresentFlag(Int id)                          { return m_profilePresentFlag[id]; }
    10621059  Void   setProfilePresentFlag(Int id, Bool x)                  { m_profilePresentFlag[id] = x;    }
    1063 
    1064 #if !P0048_REMOVE_PROFILE_REF
    1065   UInt   getProfileLayerSetRef(Int id)                          { return m_profileLayerSetRef[id]; }
    1066   Void   setProfileLayerSetRef(Int id, Bool x)                  { m_profileLayerSetRef[id] = x;    }
    1067 #endif
    10681060
    10691061#if !MULTIPLE_PTL_SUPPORT
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1104 r1105  
    100100#define O0109_VIEW_ID_LEN                1      ///< JCTVC-O0109: view_id_len_minus1 to view_id_len, and add constraint (1<<view_id_len) is greater than or equal to NumViews
    101101
    102 #define P0048_REMOVE_PROFILE_REF         1      ///< JCTVC-P0048: remove profile_ref_minus1
    103 #if !P0048_REMOVE_PROFILE_REF
    104 #define O0109_PROF_REF_MINUS1            1      ///< JCTVC-O0109: constraint that profile_ref_minus1[i] shall be less than or equal to i
    105 #endif
    106 
    107102#define P0295_DEFAULT_OUT_LAYER_IDC      1      ///< JCTVC-P0295: modifify default_one_target_output_layer_idc to default_output_layer_idc
    108103#define O0109_DEFAULT_ONE_OUT_LAYER_IDC  1      ///< JCTVC-O0109: default_one_target_output_layer_flag to default_one_target_output_layer_idc
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1104 r1105  
    29612961    if( !vps->getProfilePresentFlag(idx) )
    29622962    {
    2963 #if P0048_REMOVE_PROFILE_REF
    29642963      // Copy profile information from previous one
    29652964#if MULTIPLE_PTL_SUPPORT
     
    29672966#else
    29682967      vps->getPTLForExtn(idx)->copyProfileInfo( (idx==1) ? vps->getPTL() : vps->getPTLForExtn( idx - 1 ) );
    2969 #endif
    2970 #else
    2971       READ_CODE( 6, uiCode, "profile_ref_minus1[i]" ); vps->setProfileLayerSetRef(idx, uiCode + 1);
    2972 #if O0109_PROF_REF_MINUS1
    2973       assert( vps->getProfileLayerSetRef(idx) <= idx );
    2974 #else
    2975       assert( vps->getProfileLayerSetRef(idx) < idx );
    2976 #endif
    2977       // Copy profile information as indicated
    2978       vps->getPTLForExtn(idx)->copyProfileInfo( vps->getPTLForExtn( vps->getProfileLayerSetRef(idx) ) );
    29792968#endif
    29802969    }
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1104 r1105  
    21912191#endif
    21922192    WRITE_FLAG( vps->getProfilePresentFlag(idx),       "vps_profile_present_flag[i]" );
    2193 #if !P0048_REMOVE_PROFILE_REF
    2194     if( !vps->getProfilePresentFlag(idx) )
    2195     {
    2196       WRITE_CODE( vps->getProfileLayerSetRef(idx) - 1, 6, "profile_ref_minus1[i]" );
    2197     }
    2198 #endif
    21992193#if MULTIPLE_PTL_SUPPORT
    22002194    codePTL( vps->getPTL(idx), vps->getProfilePresentFlag(idx), vps->getMaxTLayers() - 1 );
Note: See TracChangeset for help on using the changeset viewer.