Changeset 516 in SHVCSoftware for branches/SHM-4.1-dev/source/Lib/TLibCommon
- Timestamp:
- 17 Dec 2013, 10:27:32 (11 years ago)
- Location:
- branches/SHM-4.1-dev/source/Lib/TLibCommon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.1-dev/source/Lib/TLibCommon/TComSlice.cpp
r507 r516 946 946 numRpsCurrTempList += getNumILRRefIdx(); 947 947 #endif 948 948 } 949 949 #endif 950 950 … … 2144 2144 } 2145 2145 #endif 2146 #if VPS_DPB_SIZE_TABLE 2147 ::memset( m_subLayerFlagInfoPresentFlag, 0, sizeof(m_subLayerFlagInfoPresentFlag ) ); 2148 ::memset( m_subLayerDpbInfoPresentFlag, 0, sizeof(m_subLayerDpbInfoPresentFlag ) ); 2149 ::memset( m_maxVpsDecPicBufferingMinus1, 0, sizeof(m_maxVpsDecPicBufferingMinus1 ) ); 2150 ::memset( m_maxVpsNumReorderPics, 0, sizeof(m_maxVpsNumReorderPics ) ); 2151 ::memset( m_maxVpsLatencyIncreasePlus1, 0, sizeof(m_maxVpsLatencyIncreasePlus1 ) ); 2152 ::memset( m_numSubDpbs , 0, sizeof(m_numSubDpbs) ); 2153 #endif 2146 2154 } 2147 2155 #else … … 2193 2201 } 2194 2202 setNumLayersInIdList(i, n); 2203 } 2204 } 2205 #endif 2206 #if VPS_DPB_SIZE_TABLE 2207 Void TComVPS::deriveNumberOfSubDpbs() 2208 { 2209 // Derive number of sub-DPBs 2210 // For output layer set 0 2211 setNumSubDpbs(0, 1); 2212 // For other output layer sets 2213 for( Int i = 1; i < getNumOutputLayerSets(); i++) 2214 { 2215 setNumSubDpbs( i, getNumLayersInIdList( getOutputLayerSetIdx(i)) ); 2195 2216 } 2196 2217 } -
branches/SHM-4.1-dev/source/Lib/TLibCommon/TComSlice.h
r514 r516 642 642 Bool m_recursiveRefLayerFlag[MAX_NUM_LAYER_IDS][MAX_NUM_LAYER_IDS]; // flag to indicate if j-th layer is a direct or indirect reference layer of i-th layer 643 643 #endif 644 #if VPS_DPB_SIZE_TABLE 645 Bool m_subLayerFlagInfoPresentFlag [MAX_VPS_OP_LAYER_SETS_PLUS1]; 646 Bool m_subLayerDpbInfoPresentFlag [MAX_VPS_OP_LAYER_SETS_PLUS1][MAX_LAYERS]; 647 Int m_maxVpsDecPicBufferingMinus1 [MAX_VPS_OP_LAYER_SETS_PLUS1][MAX_LAYERS][MAX_TLAYER]; 648 Int m_maxVpsNumReorderPics [MAX_VPS_OP_LAYER_SETS_PLUS1][MAX_LAYERS]; 649 Int m_maxVpsLatencyIncreasePlus1 [MAX_VPS_OP_LAYER_SETS_PLUS1][MAX_LAYERS]; 650 Int m_numSubDpbs [MAX_VPS_OP_LAYER_SETS_PLUS1]; 651 #endif 644 652 #endif //SVC_EXTENSION 645 653 public: … … 707 715 Void deriveLayerIdListVariables(); 708 716 #endif 709 717 #if VPS_DPB_SIZE_TABLE 718 Void deriveNumberOfSubDpbs(); 719 #endif 710 720 #if IL_SL_SIGNALLING_N0371 711 721 Bool checkLayerDependency(UInt i, UInt j); … … 928 938 Bool getPhaseAlignFlag() { return m_phaseAlignFlag; } 929 939 Void setPhaseAlignFlag(Bool x) { m_phaseAlignFlag = x; } 940 #endif 941 #if VPS_DPB_SIZE_TABLE 942 Bool getSubLayerFlagInfoPresentFlag(Int i) {return m_subLayerFlagInfoPresentFlag[i]; } 943 Void setSubLayerFlagInfoPresentFlag(Int i, Bool x) {m_subLayerFlagInfoPresentFlag[i] = x; } 944 945 Bool getSubLayerDpbInfoPresentFlag(Int i, Int j) {return m_subLayerDpbInfoPresentFlag[i][j]; } 946 Void setSubLayerDpbInfoPresentFlag(Int i, Int j, Bool x) {m_subLayerDpbInfoPresentFlag[i][j] = x; } 947 948 Int getMaxVpsDecPicBufferingMinus1(Int i, Int k, Int j) { return m_maxVpsDecPicBufferingMinus1[i][k][j]; } 949 Void setMaxVpsDecPicBufferingMinus1(Int i, Int k, Int j, Int x) { m_maxVpsDecPicBufferingMinus1[i][k][j] = x; } 950 951 Int getMaxVpsNumReorderPics(Int i, Int j) { return m_maxVpsNumReorderPics[i][j]; } 952 Void setMaxVpsNumReorderPics(Int i, Int j, Int x) { m_maxVpsNumReorderPics[i][j] = x; } 953 954 Int getMaxVpsLatencyIncreasePlus1(Int i, Int j) { return m_maxVpsLatencyIncreasePlus1[i][j]; } 955 Void setMaxVpsLatencyIncreasePlus1(Int i, Int j, Int x) { m_maxVpsLatencyIncreasePlus1[i][j] = x; } 956 957 Int getNumSubDpbs(Int i) { return m_numSubDpbs[i]; } 958 Void setNumSubDpbs(Int i, Int x) { m_numSubDpbs[i] = x; } 930 959 #endif 931 960 #endif //SVC_EXTENSION -
branches/SHM-4.1-dev/source/Lib/TLibCommon/TypeDef.h
r515 r516 188 188 #define O0153_ALT_OUTPUT_LAYER_FLAG 1 ///< JCTVC-O0153: alt output layer flag 189 189 190 #define VPS_DPB_SIZE_TABLE 1 ///< JCTVC-O0217: DPB operations: signaling DPB-related parameters 190 191 #else 191 192 #define SYNTAX_OUTPUT 0 … … 206 207 #define MAX_VPS_NUM_SCALABILITY_TYPES 16 207 208 #endif 209 #define MAX_VPS_OP_LAYER_SETS_PLUS1 3 208 210 #if VPS_RENAME 209 211 #define MAX_VPS_LAYER_SETS_PLUS1 1024
Note: See TracChangeset for help on using the changeset viewer.