Changeset 665 in SHVCSoftware for branches/SHM-6-dev
- Timestamp:
- 10 Apr 2014, 18:06:20 (11 years ago)
- Location:
- branches/SHM-6-dev/source/Lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r664 r665 1133 1133 #endif 1134 1134 #if VPS_TSLAYERS 1135 READ_FLAG( uiCode, "vps_sub_layers_max_minus1_present_flag"); vps->setMaxTSLayersPresentFlag(uiCode ? true : false); 1136 if (vps->getMaxTSLayersPresentFlag()) 1137 { 1138 for(i = 0; i < vps->getMaxLayers(); i++) 1139 { 1140 READ_CODE( 3, uiCode, "sub_layers_vps_max_minus1[i]" ); vps->setMaxTSLayersMinus1(i, uiCode); 1141 } 1142 } 1143 else 1144 { 1145 for( i = 0; i < vps->getMaxLayers(); i++) 1146 { 1147 vps->setMaxTSLayersMinus1(i, vps->getMaxTLayers()-1); 1148 } 1149 } 1135 READ_FLAG( uiCode, "vps_sub_layers_max_minus1_present_flag"); vps->setMaxTSLayersPresentFlag(uiCode ? true : false); 1136 1137 if (vps->getMaxTSLayersPresentFlag()) 1138 { 1139 for(i = 0; i < vps->getMaxLayers(); i++) 1140 { 1141 READ_CODE( 3, uiCode, "sub_layers_vps_max_minus1[i]" ); vps->setMaxTSLayersMinus1(i, uiCode); 1142 } 1143 } 1144 else 1145 { 1146 for( i = 0; i < vps->getMaxLayers(); i++) 1147 { 1148 vps->setMaxTSLayersMinus1(i, vps->getMaxTLayers()-1); 1149 } 1150 } 1150 1151 #endif 1151 1152 #if N0120_MAX_TID_REF_PRESENT_FLAG … … 1268 1269 READ_UVLC( uiCode, "num_add_output_layer_sets" ); vps->setNumAddOutputLayerSets( uiCode ); 1269 1270 #endif 1271 1272 // The value of num_add_output_layer_sets shall be in the range of 0 to 1023, inclusive. 1273 assert( vps->getNumAddOutputLayerSets() >= 0 && vps->getNumAddOutputLayerSets() < 1024 ); 1274 1270 1275 Int numOutputLayerSets = vps->getNumLayerSets() + vps->getNumAddOutputLayerSets(); 1271 1276 #endif -
branches/SHM-6-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r664 r665 996 996 } 997 997 #else 998 Int numOutputLayerSets = vps->getNumOutputLayerSets() ; 999 assert( numOutputLayerSets - (Int)vps->getNumLayerSets() >= 0 ); 998 Int numOutputLayerSets = vps->getNumOutputLayerSets(); 999 Int numAddOutputLayerSets = numOutputLayerSets - (Int)vps->getNumLayerSets(); 1000 1001 // The value of num_add_output_layer_sets shall be in the range of 0 to 1023, inclusive. 1002 assert( numAddOutputLayerSets >= 0 && numAddOutputLayerSets < 1024 ); 1000 1003 1001 1004 #if Q0165_NUM_ADD_OUTPUT_LAYER_SETS 1002 1005 if( vps->getNumLayerSets() > 1 ) 1003 1006 { 1004 WRITE_UVLC( num OutputLayerSets - vps->getNumLayerSets(), "num_add_output_layer_sets" );1007 WRITE_UVLC( numAddOutputLayerSets, "num_add_output_layer_sets" ); 1005 1008 WRITE_CODE( vps->getDefaultTargetOutputLayerIdc(), 2, "default_target_output_layer_idc" ); 1006 1009 } … … 1008 1011 WRITE_UVLC( numOutputLayerSets - vps->getNumLayerSets(), "num_add_output_layer_sets" ); 1009 1012 #endif 1010 1011 1013 #endif 1012 1014
Note: See TracChangeset for help on using the changeset viewer.