Changeset 1124 in SHVCSoftware for branches/SHM-dev/source/Lib
- Timestamp:
- 7 Jul 2015, 02:24:58 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1120 r1124 752 752 Int m_avgPicRate [MAX_VPS_LAYER_SETS_PLUS1][MAX_TLAYER]; 753 753 754 #if P0300_ALT_OUTPUT_LAYER_FLAG755 754 #if Q0078_ADD_LAYER_SETS 756 755 Bool m_altOutputLayerFlag[MAX_VPS_LAYER_SETS_PLUS1 + 2*MAX_NUM_ADD_LAYER_SETS]; … … 758 757 Bool m_altOutputLayerFlag[MAX_VPS_LAYER_SETS_PLUS1]; 759 758 #endif 760 #else 761 #if O0153_ALT_OUTPUT_LAYER_FLAG 762 Bool m_altOutputLayerFlag; 763 #endif 764 #endif 759 765 760 #if REPN_FORMAT_IN_VPS 766 761 Bool m_repFormatIdxPresentFlag; … … 1271 1266 #endif 1272 1267 1273 #if P0300_ALT_OUTPUT_LAYER_FLAG1274 1268 Bool getAltOuputLayerFlag(Int idx) { return m_altOutputLayerFlag[idx]; } 1275 1269 Void setAltOuputLayerFlag(Int idx, Bool x) { m_altOutputLayerFlag[idx] = x; } 1276 #else 1277 #if O0153_ALT_OUTPUT_LAYER_FLAG 1278 Bool getAltOuputLayerFlag() { return m_altOutputLayerFlag; } 1279 Void setAltOuputLayerFlag(Bool x) { m_altOutputLayerFlag = x; } 1280 #endif 1281 #endif 1270 1282 1271 #if REPN_FORMAT_IN_VPS 1283 1272 Bool getRepFormatIdxPresentFlag() { return m_repFormatIdxPresentFlag; } -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1122 r1124 190 190 #define O0098_SCALED_REF_LAYER_ID 1 ///< JCTVC-O0098: signal scaled reference id 191 191 192 #define O0153_ALT_OUTPUT_LAYER_FLAG 1 ///< JCTVC-O0153: alt output layer flag193 #define P0300_ALT_OUTPUT_LAYER_FLAG 1 ///< JCTVC-P0300: alt output layer flag194 195 192 #define Q0165_OUTPUT_LAYER_SET 1 ///< JCTVC-Q0165: add a constraint to disallow an empty output layer set 196 193 #define Q0165_NUM_ADD_OUTPUT_LAYER_SETS 1 ///< JCTVC-Q0165: signal num_add_olss and default_target_output_layer_idc when vps_num_layer_sets_minus1 is greater than 0 -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1121 r1124 2698 2698 { 2699 2699 UInt uiCode; 2700 // ... More syntax elements to be parsed here2701 #if P0300_ALT_OUTPUT_LAYER_FLAG2702 2700 Int NumOutputLayersInOutputLayerSet[MAX_VPS_LAYER_SETS_PLUS1]; 2703 2701 Int OlsHighestOutputLayerId[MAX_VPS_LAYER_SETS_PLUS1]; 2704 #endif2705 2702 #if LIST_OF_PTL 2706 2703 if( vps->getMaxLayers() > 1 && vps->getBaseLayerInternalFlag() ) … … 3089 3086 READ_CODE( numBits, uiCode, "profile_tier_level_idx[i]" ); vps->setProfileLevelTierIdx(i, uiCode); 3090 3087 #endif 3091 #if P0300_ALT_OUTPUT_LAYER_FLAG 3088 3092 3089 NumOutputLayersInOutputLayerSet[i] = 0; 3093 3090 for (j = 0; j < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet); j++) … … 3113 3110 #if Q0165_OUTPUT_LAYER_SET 3114 3111 assert( NumOutputLayersInOutputLayerSet[i]>0 ); 3115 #endif3116 3117 3112 #endif 3118 3113 } … … 3210 3205 READ_CODE( numBits, uiCode, "profile_level_tier_idx[i]" ); vps->setProfileLevelTierIdx(i, uiCode); 3211 3206 } 3212 #endif3213 3214 #if !P0300_ALT_OUTPUT_LAYER_FLAG3215 #if O0153_ALT_OUTPUT_LAYER_FLAG3216 if( vps->getMaxLayers() > 1 )3217 {3218 READ_FLAG( uiCode, "alt_output_layer_flag");3219 vps->setAltOuputLayerFlag( uiCode ? true : false );3220 }3221 #endif3222 3207 #endif 3223 3208 -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1121 r1124 1988 1988 Void TEncCavlc::codeVPSExtension (TComVPS *vps) 1989 1989 { 1990 // ... More syntax elements to be written here1991 #if P0300_ALT_OUTPUT_LAYER_FLAG1992 1990 Int NumOutputLayersInOutputLayerSet[MAX_VPS_LAYER_SETS_PLUS1]; 1993 1991 Int OlsHighestOutputLayerId[MAX_VPS_LAYER_SETS_PLUS1]; 1994 #endif1995 1992 #if LIST_OF_PTL 1996 1993 if( vps->getMaxLayers() > 1 && vps->getBaseLayerInternalFlag() ) … … 2247 2244 WRITE_CODE( vps->getProfileLevelTierIdx(i), numBits, "profile_level_tier_idx[i]" ); 2248 2245 #endif 2249 #if P0300_ALT_OUTPUT_LAYER_FLAG 2246 2250 2247 NumOutputLayersInOutputLayerSet[i] = 0; 2251 2248 for (j = 0; j < vps->getNumLayersInIdList(layerSetIdxForOutputLayerSet); j++) … … 2265 2262 assert( NumOutputLayersInOutputLayerSet[i]>0 ); 2266 2263 #endif 2267 2268 #endif 2269 } 2270 2271 #if !P0300_ALT_OUTPUT_LAYER_FLAG 2272 #if O0153_ALT_OUTPUT_LAYER_FLAG 2273 if( vps->getMaxLayers() > 1 ) 2274 { 2275 WRITE_FLAG( vps->getAltOuputLayerFlag(), "alt_output_layer_flag" ); 2276 } 2277 #endif 2278 #endif 2264 } 2279 2265 2280 2266 #if REPN_FORMAT_IN_VPS -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h
r1090 r1124 377 377 int m_layerSwitchOffEnd; 378 378 #endif 379 #if O0153_ALT_OUTPUT_LAYER_FLAG380 379 Bool m_altOutputLayerFlag; 381 #endif382 380 #if HIGHER_LAYER_IRAP_SKIP_FLAG 383 381 Int m_skipPictureAtArcSwitch; … … 1036 1034 ChromaFormat getChromaFormatIDC() { return m_chromaFormatIDC; } 1037 1035 #endif 1038 #if O0153_ALT_OUTPUT_LAYER_FLAG1039 1036 Bool getAltOuputLayerFlag() const { return m_altOutputLayerFlag; } 1040 1037 Void setAltOuputLayerFlag(Bool b) { m_altOutputLayerFlag = b; } 1041 #endif1042 1038 #if O0149_CROSS_LAYER_BLA_FLAG 1043 1039 Bool getCrossLayerBLAFlag() const { return m_crossLayerBLAFlag; } … … 1179 1175 #endif 1180 1176 #endif 1181 #endif 1177 #endif //SVC_EXTENSION 1182 1178 }; 1183 1179
Note: See TracChangeset for help on using the changeset viewer.