Changeset 1171 in SHVCSoftware
- Timestamp:
- 8 Jul 2015, 01:32:32 (9 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1169 r1171 1252 1252 } 1253 1253 1254 #if VPS_EXTN_OP_LAYER_SETS 1255 vps->setMaxLayerId( m_acLayerCfg[m_numLayers - 1].m_layerId ); // Set max-layer ID 1256 1254 // Set max-layer ID 1255 vps->setMaxLayerId( m_acLayerCfg[m_numLayers - 1].m_layerId ); 1257 1256 vps->setVpsExtensionFlag( m_numLayers > 1 ? true : false ); 1258 1257 … … 1524 1523 } 1525 1524 } 1526 #endif 1525 1527 1526 // Target output layer 1528 1527 #if VPS_DPB_SIZE_TABLE -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1170 r1171 1956 1956 , m_maxLayerId (0) 1957 1957 , m_numLayerSets (0) 1958 #if VPS_EXTN_OP_LAYER_SETS1959 1958 , m_numOutputLayerSets (0) 1960 #endif1961 1959 , m_numProfileTierLevel (0) 1962 1960 , m_numAddOutputLayerSets (0) … … 1997 1995 m_numScalabilityTypes = 0; 1998 1996 ::memset(m_layerIdxInVps, 0, sizeof(m_layerIdxInVps)); 1999 2000 1997 ::memset(m_profilePresentFlag, 0, sizeof(m_profilePresentFlag)); 2001 #if VPS_EXTN_OP_LAYER_SETS 1998 2002 1999 ::memset(m_layerIdIncludedFlag, 0, sizeof(m_layerIdIncludedFlag)); 2003 2000 // Consider dynamic allocation for outputLayerSetIdx and outputLayerFlag 2004 2001 ::memset(m_outputLayerSetIdx, 0, sizeof(m_outputLayerSetIdx)); 2005 2002 ::memset(m_outputLayerFlag, 0, sizeof(m_outputLayerFlag)); 2006 #endif2007 2003 2008 2004 ::memset(m_directDependencyFlag, 0, sizeof(m_directDependencyFlag)); -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1170 r1171 639 639 std::vector<TComPTL> m_pcPTLForExtn; 640 640 #endif 641 #if VPS_EXTN_OP_LAYER_SETS 642 // .. More declarations here 641 643 642 // Target output layer signalling related 644 643 UInt m_numOutputLayerSets; … … 649 648 UInt m_outputLayerSetIdx[MAX_VPS_LAYER_SETS_PLUS1]; 650 649 Bool m_outputLayerFlag[MAX_VPS_LAYER_SETS_PLUS1][MAX_VPS_LAYER_IDX_PLUS1]; 651 #endif652 650 #endif 653 651 … … 972 970 TComPTL* getPTLForExtn(Int id) { return &m_pcPTLForExtn[id]; } 973 971 #endif 974 #if VPS_EXTN_OP_LAYER_SETS975 972 // Target output layer signalling related 976 973 UInt getNumOutputLayerSets() { return m_numOutputLayerSets; } … … 982 979 Bool getOutputLayerFlag(Int layerSet, Int layerIdx) { return m_outputLayerFlag[layerSet][layerIdx]; } 983 980 Void setOutputLayerFlag(Int layerSet, Int layerIdx, Bool x) { m_outputLayerFlag[layerSet][layerIdx] = x; } 984 #endif985 981 986 982 // Direct dependency of layers -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1170 r1171 109 109 #define P0297_VPS_POC_LSB_ALIGNED_FLAG 1 ///< JCTVC-P0297: vps_poc_lsb_aligned_flag for cross-layer POC anchor picture derivation 110 110 111 #define VPS_EXTN_OP_LAYER_SETS 1 ///< Include output layer sets in VPS extension112 113 111 #define VPS_VUI_TILES_NOT_IN_USE__FLAG 1 ///< JCTVC-O0226: VPS VUI flag to indicate tile not in use 114 112 #define VPS_VUI_WPP_NOT_IN_USE__FLAG 1 ///< JCTVC-O0226: VPS VUI flag to indicate tile not in use -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1170 r1171 815 815 assert( pcVPS->getNumHrdParameters() <= MAX_VPS_LAYER_SETS_PLUS1 ); 816 816 assert( pcVPS->getMaxLayerId() < MAX_VPS_LAYER_IDX_PLUS1 ); 817 #if !VPS_EXTN_OP_LAYER_SETS // num layer sets set in TAppEncTop.cpp 818 pcVPS->setNumLayerSets(1); 819 #endif 817 820 818 WRITE_CODE( pcVPS->getMaxLayerId(), 6, "vps_max_layer_id" ); 821 819 #if Q0078_ADD_LAYER_SETS … … 829 827 // Operation point set 830 828 for( UInt i = 0; i <= pcVPS->getMaxLayerId(); i ++ ) 829 { 831 830 #else 832 831 assert( pcVPS->getNumHrdParameters() <= MAX_VPS_NUM_HRD_PARAMETERS ); … … 839 838 // Operation point set 840 839 for( UInt i = 0; i <= pcVPS->getMaxNuhReservedZeroLayerId(); i ++ ) 841 #endif 842 { 843 #if !VPS_EXTN_OP_LAYER_SETS // layer Id include flag set in TAppEncTop.cpp 840 { 844 841 // Only applicable for version 1 845 842 pcVPS->setLayerIdIncludedFlag( true, opsIdx, i );
Note: See TracChangeset for help on using the changeset viewer.