Changeset 484 in SHVCSoftware for branches/SHM-4.0-dev/source/Lib/TLibDecoder
- Timestamp:
- 16 Nov 2013, 00:32:03 (11 years ago)
- Location:
- branches/SHM-4.0-dev/source/Lib/TLibDecoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r479 r484 1098 1098 for(i = 0; i < vps->getMaxLayers() - 1; i++) 1099 1099 { 1100 #if O0225_MAX_TID_FOR_REF_LAYERS 1101 for( j = i+1; j <= vps->getMaxLayers() - 1; j++) 1102 { 1103 if(vps->getDirectDependencyFlag(j, i)) 1104 { 1105 READ_CODE( 3, uiCode, "max_tid_il_ref_pics_plus1[i][j]" ); vps->setMaxTidIlRefPicsPlus1(i, j, uiCode); 1106 assert( uiCode <= vps->getMaxTLayers()); 1107 } 1108 } 1109 #else 1100 1110 READ_CODE( 3, uiCode, "max_tid_il_ref_pics_plus1[i]" ); vps->setMaxTidIlRefPicsPlus1(i, uiCode); 1101 1111 #if N0120_MAX_TID_REF_CFG … … 1104 1114 assert( uiCode <= vps->getMaxTLayers()+ 1 ); 1105 1115 #endif 1116 #endif 1106 1117 } 1107 1118 } … … 1110 1121 for(i = 0; i < vps->getMaxLayers() - 1; i++) 1111 1122 { 1123 #if O0225_MAX_TID_FOR_REF_LAYERS 1124 for( j = i+1; j <= vps->getMaxLayers() - 1; j++) 1125 { 1126 vps->setMaxTidIlRefPicsPlus1(i, j, 7); 1127 } 1128 #else 1112 1129 vps->setMaxTidIlRefPicsPlus1(i, 7); 1130 #endif 1113 1131 } 1114 1132 } … … 1116 1134 for(i = 0; i < vps->getMaxLayers() - 1; i++) 1117 1135 { 1136 #if O0225_MAX_TID_FOR_REF_LAYERS 1137 for( j = i+1; j <= vps->getMaxLayers() - 1; j++) 1138 { 1139 if(vps->getDirectDependencyFlag(j, i)) 1140 { 1141 READ_CODE( 3, uiCode, "max_tid_il_ref_pics_plus1[i][j]" ); vps->setMaxTidIlRefPicsPlus1(i, j, uiCode); 1142 assert( uiCode <= vps->getMaxTLayers() ); 1143 } 1144 } 1145 #else 1118 1146 READ_CODE( 3, uiCode, "max_tid_il_ref_pics_plus1[i]" ); vps->setMaxTidIlRefPicsPlus1(i, uiCode); 1119 1147 assert( uiCode <= vps->getMaxTLayers() ); 1148 #endif 1120 1149 } 1121 1150 #endif -
branches/SHM-4.0-dev/source/Lib/TLibDecoder/TDecTop.cpp
r475 r484 498 498 499 499 Int remainingInterLayerReferencesFlag = 0; 500 #if O0225_MAX_TID_FOR_REF_LAYERS 501 for ( Int j = latestDecIdx + 1; j < numTargetDecLayers; j++ ) 502 { 503 Int jLidx = pcSlice->getVPS()->getLayerIdInVps(targetDecLayerIdList[j]); 504 if ( currTid <= pcSlice->getVPS()->getMaxTidIlRefPicsPlus1(latestDecLayerId,jLidx) - 1 ) 505 { 506 #else 500 507 if ( currTid <= pcSlice->getVPS()->getMaxTidIlRefPicsPlus1(latestDecLayerId) - 1 ) 501 508 { 502 509 for ( Int j = latestDecIdx + 1; j < numTargetDecLayers; j++ ) 503 510 { 511 #endif 504 512 for ( Int k = 0; k < m_ppcTDecTop[targetDecLayerIdList[j]]->getNumDirectRefLayers(); k++ ) 505 513 {
Note: See TracChangeset for help on using the changeset viewer.