Changeset 505 in SHVCSoftware for branches/SHM-4.1-dev
- Timestamp:
- 22 Nov 2013, 00:13:12 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.1-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r502 r505 599 599 pcSPS->setUpdateRepFormatFlag( true ); 600 600 } 601 #if O0096_REP_FORMAT_INDEX 602 if( pcSPS->getLayerId() == 0 ) 603 #else 601 604 if( pcSPS->getLayerId() == 0 || pcSPS->getUpdateRepFormatFlag() ) 605 #endif 602 606 { 603 607 #endif … … 619 623 #if REPN_FORMAT_IN_VPS 620 624 } 625 #if O0096_REP_FORMAT_INDEX 626 else if ( pcSPS->getUpdateRepFormatFlag() ) 627 { 628 READ_CODE(8, uiCode, "update_rep_format_index"); 629 pcSPS->setUpdateRepFormatIndex(uiCode); 630 } 631 #endif 621 632 #endif 622 633 READ_FLAG( uiCode, "conformance_window_flag"); … … 637 648 } 638 649 #if REPN_FORMAT_IN_VPS 650 #if O0096_REP_FORMAT_INDEX 651 if( pcSPS->getLayerId() == 0 ) 652 #else 639 653 if( pcSPS->getLayerId() == 0 || pcSPS->getUpdateRepFormatFlag() ) 654 #endif 640 655 { 641 656 #endif … … 1240 1255 if( vps->getRepFormatIdxPresentFlag() ) 1241 1256 { 1257 #if O0096_REP_FORMAT_INDEX 1258 READ_CODE( 8, uiCode, "vps_num_rep_formats_minus1" ); 1259 #else 1242 1260 READ_CODE( 4, uiCode, "vps_num_rep_formats_minus1" ); 1261 #endif 1243 1262 vps->setVpsNumRepFormats( uiCode + 1 ); 1244 1263 } … … 1263 1282 if( vps->getVpsNumRepFormats() > 1 ) 1264 1283 { 1284 #if O0096_REP_FORMAT_INDEX 1285 READ_CODE( 8, uiCode, "vps_rep_format_idx[i]" ); 1286 #else 1265 1287 READ_CODE( 4, uiCode, "vps_rep_format_idx[i]" ); 1288 #endif 1266 1289 vps->setVpsRepFormatIdx( i, uiCode ); 1267 1290 } … … 1307 1330 #if VPS_EXTN_DIRECT_REF_LAYERS && M0457_PREDICTION_INDICATIONS 1308 1331 READ_UVLC( uiCode, "direct_dep_type_len_minus2"); vps->setDirectDepTypeLen(uiCode+2); 1332 #if O0096_DEFAULT_DEPENDENCY_TYPE 1333 READ_FLAG(uiCode, "default_direct_dependency_type_flag"); 1334 vps->setDefaultDirectDependecyTypeFlag(uiCode == 1? true : false); 1335 if (vps->getDefaultDirectDependencyTypeFlag()) 1336 { 1337 READ_CODE( vps->getDirectDepTypeLen(), uiCode, "default_direct_dependency_type" ); 1338 vps->setDefaultDirectDependecyType(uiCode); 1339 } 1340 #endif 1309 1341 for(i = 1; i < vps->getMaxLayers(); i++) 1310 1342 { … … 1313 1345 if (vps->getDirectDependencyFlag(i, j)) 1314 1346 { 1315 READ_CODE( vps->getDirectDepTypeLen(), uiCode, "direct_dependency_type[i][j]" ); vps->setDirectDependencyType(i, j, uiCode); 1316 } 1317 } 1318 } 1319 1347 #if O0096_DEFAULT_DEPENDENCY_TYPE 1348 if (vps->getDefaultDirectDependencyTypeFlag()) 1349 { 1350 vps->setDirectDependencyType(i, j, vps->getDefaultDirectDependencyType()); 1351 } 1352 else 1353 { 1354 READ_CODE( vps->getDirectDepTypeLen(), uiCode, "direct_dependency_type[i][j]" ); 1355 vps->setDirectDependencyType(i, j, uiCode); 1356 } 1357 #else 1358 READ_CODE( vps->getDirectDepTypeLen(), uiCode, "direct_dependency_type[i][j]" ); 1359 vps->setDirectDependencyType(i, j, uiCode); 1360 #endif 1361 } 1362 } 1363 } 1320 1364 #endif 1321 1365 … … 1902 1946 ChromaFormat format; 1903 1947 #if REPN_FORMAT_IN_VPS 1948 #if O0096_REP_FORMAT_INDEX 1949 if( sps->getLayerId() == 0 ) 1950 { 1951 format = sps->getChromaFormatIdc(); 1952 } 1953 else 1954 { 1955 format = rpcSlice->getVPS()->getVpsRepFormat( sps->getUpdateRepFormatFlag() ? sps->getUpdateRepFormatIndex() : rpcSlice->getVPS()->getVpsRepFormatIdx(sps->getLayerId()) )->getChromaFormatVpsIdc(); 1956 } 1957 #else 1904 1958 if( ( sps->getLayerId() == 0 ) || sps->getUpdateRepFormatFlag() ) 1905 1959 { … … 1910 1964 format = rpcSlice->getVPS()->getVpsRepFormat( rpcSlice->getVPS()->getVpsRepFormatIdx(sps->getLayerId()) )->getChromaFormatVpsIdc(); 1911 1965 } 1966 #endif 1912 1967 #else 1913 1968 format = sps->getChromaFormatIdc();
Note: See TracChangeset for help on using the changeset viewer.