Changeset 866 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon
- Timestamp:
- 13 Aug 2014, 03:52:31 (11 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r865 r866 2446 2446 #endif 2447 2447 #endif 2448 #if !PER_LAYER_PTL 2448 2449 ::memset(m_profileLevelTierIdx, 0, sizeof(m_profileLevelTierIdx)); 2450 #endif 2449 2451 m_maxOneActiveRefLayerFlag = true; 2450 2452 #if O0062_POC_LSB_NOT_PRESENT_FLAG … … 3074 3076 assert( layerFoundNecessaryLayerFlag ); 3075 3077 } 3078 } 3079 #endif 3080 #if PER_LAYER_PTL 3081 Int const TComVPS::calculateLenOfSyntaxElement( Int const numVal ) 3082 { 3083 Int numBits = 1; 3084 while((1 << numBits) < numVal) 3085 { 3086 numBits++; 3087 } 3088 return numBits; 3076 3089 } 3077 3090 #endif -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r865 r866 585 585 #endif 586 586 #endif 587 #if PER_LAYER_PTL 588 std::vector< std::vector<Int> > m_profileLevelTierIdx; 589 #else 587 590 Int m_profileLevelTierIdx[64]; 591 #endif 588 592 Bool m_maxOneActiveRefLayerFlag; 589 593 #if O0062_POC_LSB_NOT_PRESENT_FLAG … … 984 988 #endif 985 989 #endif 990 #if PER_LAYER_PTL 991 Bool const getNecessaryLayerFlag(Int const i, Int const j) { return m_necessaryLayerFlag[i][j]; } 992 std::vector< std::vector<Int> >* const getProfileLevelTierIdx() { return &m_profileLevelTierIdx; } 993 std::vector<Int>* const getProfileLevelTierIdx(Int const olsIdx) { return &m_profileLevelTierIdx[olsIdx]; } 994 Int getProfileLevelTierIdx(Int const olsIdx, Int const layerIdx) { return m_profileLevelTierIdx[olsIdx][layerIdx]; } 995 Void setProfileLevelTierIdx(Int const olsIdx, Int const layerIdx, Int const ptlIdx) { m_profileLevelTierIdx[olsIdx][layerIdx] = ptlIdx; } 996 Int const calculateLenOfSyntaxElement( Int const numVal ); 997 #else 986 998 Int getProfileLevelTierIdx(Int i) { return m_profileLevelTierIdx[i]; } 987 999 Void setProfileLevelTierIdx(Int i, Int x) { m_profileLevelTierIdx[i] = x ; } 1000 #endif 988 1001 Bool getMaxOneActiveRefLayerFlag() { return m_maxOneActiveRefLayerFlag; } 989 1002 Void setMaxOneActiveRefLayerFlag(Bool x) { m_maxOneActiveRefLayerFlag = x; } -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r865 r866 57 57 #define LIST_OF_PTL 1 ///< JCTVC-R0272: Signalling the PTL for the 0-th OLS 58 58 #define NECESSARY_LAYER_FLAG 1 ////< Derivation of NecessaryLayerFlag 59 #define PER_LAYER_PTL 1 ///< Signal profile-tier-level information for each layer. 59 60 #endif 60 61 #define O0137_MAX_LAYERID 1 ///< JCTVC-O0137, JCTVC-O0200, JCTVC-O0223: restrict nuh_layer_id and vps_max_layers_minus1
Note: See TracChangeset for help on using the changeset viewer.