Changeset 576 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib/TLibDecoder
- Timestamp:
- 29 Jan 2014, 01:17:30 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-5.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r571 r576 1160 1160 #if VPS_EXTN_PROFILE_INFO 1161 1161 // Profile-tier-level signalling 1162 #if !VPS_EXTN_UEV_CODING 1162 1163 READ_CODE( 10, uiCode, "vps_number_layer_sets_minus1" ); assert( uiCode == (vps->getNumLayerSets() - 1) ); 1163 1164 READ_CODE( 6, uiCode, "vps_num_profile_tier_level_minus1"); vps->setNumProfileTierLevel( uiCode + 1 ); 1165 #else 1166 READ_UVLC( uiCode, "vps_num_profile_tier_level_minus1"); vps->setNumProfileTierLevel( uiCode + 1 ); 1167 #endif 1164 1168 vps->getPTLForExtnPtr()->resize(vps->getNumProfileTierLevel()); 1165 1169 for(Int idx = 1; idx <= vps->getNumProfileTierLevel() - 1; idx++) … … 1186 1190 #endif 1187 1191 1192 #if !VPS_EXTN_UEV_CODING 1188 1193 READ_FLAG( uiCode, "more_output_layer_sets_than_default_flag" ); vps->setMoreOutputLayerSetsThanDefaultFlag( uiCode ? true : false ); 1189 1194 Int numOutputLayerSets = 0; … … 1197 1202 numOutputLayerSets = vps->getNumLayerSets() + vps->getNumAddOutputLayerSets(); 1198 1203 } 1204 #else 1205 READ_UVLC( uiCode, "num_add_output_layer_sets" ); vps->setNumAddOutputLayerSets( uiCode ); 1206 Int numOutputLayerSets = vps->getNumLayerSets() + vps->getNumAddOutputLayerSets(); 1207 #endif 1199 1208 if( numOutputLayerSets > 1 ) 1200 1209 { … … 1294 1303 { 1295 1304 #if O0096_REP_FORMAT_INDEX 1305 #if !VPS_EXTN_UEV_CODING 1296 1306 READ_CODE( 8, uiCode, "vps_num_rep_formats_minus1" ); 1307 #else 1308 READ_UVLC( uiCode, "vps_num_rep_formats_minus1" ); 1309 #endif 1297 1310 #else 1298 1311 READ_CODE( 4, uiCode, "vps_num_rep_formats_minus1" ); … … 1321 1334 { 1322 1335 #if O0096_REP_FORMAT_INDEX 1336 #if !VPS_EXTN_UEV_CODING 1323 1337 READ_CODE( 8, uiCode, "vps_rep_format_idx[i]" ); 1338 #else 1339 Int numBits = 1; 1340 while ((1 << numBits) < (vps->getVpsNumRepFormats())) 1341 { 1342 numBits++; 1343 } 1344 READ_CODE( numBits, uiCode, "vps_rep_format_idx[i]" ); 1345 #endif 1324 1346 #else 1325 1347 READ_CODE( 4, uiCode, "vps_rep_format_idx[i]" );
Note: See TracChangeset for help on using the changeset viewer.