Changeset 774 in SHVCSoftware
- Timestamp:
- 12 May 2014, 20:54:21 (11 years ago)
- Location:
- branches/SHM-6-dev/source/Lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibCommon/TComSlice.h
r773 r774 735 735 #endif 736 736 #if HRD_BPB 737 738 739 740 737 Int getBspHrdParamBufferCpbCntMinus1(UInt i, UInt sl) 738 { 739 return m_bspHrd->getCpbCntMinus1(sl); 740 } 741 741 #endif 742 742 -
branches/SHM-6-dev/source/Lib/TLibDecoder/SEIread.cpp
r773 r774 1210 1210 READ_UVLC( uiCode, "num_sei_bitstream_partitions_minus1[i]"); sei.m_seiNumBitstreamPartitionsMinus1[lsIdx] = uiCode; 1211 1211 #if HRD_BPB 1212 1213 #endif 1214 1215 for 1212 Int chkPart=0; 1213 #endif 1214 UInt i; 1215 for(i = 0; i <= sei.m_seiNumBitstreamPartitionsMinus1[lsIdx]; i++) 1216 1216 { 1217 1217 #if HRD_BPB 1218 UInt nl=0; UInt j; 1219 for (j = 0 ; j < sei.m_vpsMaxLayers; j++) 1220 { 1221 if (sei.m_layerIdIncludedFlag[lsIdx][j]) 1222 nl++; 1223 } 1224 for (j = 0; j < nl; j++) 1218 UInt nl=0; UInt j; 1219 for(j = 0; j < sei.m_vpsMaxLayers; j++) 1220 { 1221 if (sei.m_layerIdIncludedFlag[lsIdx][j]) 1222 { 1223 nl++; 1224 } 1225 } 1226 for (j = 0; j < nl; j++) 1225 1227 { 1226 1228 #else … … 1236 1238 #endif 1237 1239 #if HRD_BPB 1238 1240 chkPart+=sei.m_seiLayerInBspFlag[lsIdx][i][j]; 1239 1241 #endif 1240 1242 } 1241 1243 #if HRD_BPB 1242 1244 assert(chkPart<=1); 1243 1245 #endif 1244 1246 #if HRD_BPB 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1247 if(sei.m_seiNumBitstreamPartitionsMinus1[lsIdx]==0) 1248 { 1249 Int chkPartition1=0; Int chkPartition2=0; 1250 for (UInt j = 0; j < sei.m_vpsMaxLayers; j++) 1251 { 1252 if( sei.m_layerIdIncludedFlag[lsIdx][j] ) 1253 { 1254 chkPartition1+=sei.m_seiLayerInBspFlag[lsIdx][i][j]; 1255 chkPartition2++; 1256 } 1257 } 1258 assert(chkPartition1!=chkPartition2); 1259 } 1258 1260 #endif 1259 1261 1260 1262 READ_UVLC( uiCode, "sei_num_bsp_sched_combinations_minus1[i]"); sei.m_seiNumBspSchedCombinationsMinus1[lsIdx] = uiCode; 1261 for ( UInti = 0; i <= sei.m_seiNumBspSchedCombinationsMinus1[lsIdx]; i++)1263 for (i = 0; i <= sei.m_seiNumBspSchedCombinationsMinus1[lsIdx]; i++) 1262 1264 { 1263 1265 for (UInt j = 0; j <= sei.m_seiNumBitstreamPartitionsMinus1[lsIdx]; j++) … … 1265 1267 READ_UVLC( uiCode, "sei_bsp_comb_hrd_idx[lsIdx][i][j]"); sei.m_seiBspCombHrdIdx[lsIdx][i][j] = uiCode; 1266 1268 #if HRD_BPB 1267 1269 assert(uiCode <= sei.m_seiNumBspHrdParametersMinus1); 1268 1270 #endif 1269 1271 READ_UVLC( uiCode, "sei_bsp_comb_sched_idx[lsIdx][i][j]"); sei.m_seiBspCombScheddx[lsIdx][i][j] = uiCode; 1270 1272 #if HRD_BPB 1271 assert(uiCode <=sei.hrd->getCpbCntMinus1( sps->getMaxTLayers()-1 ));1273 assert(uiCode <= sei.hrd->getCpbCntMinus1( sps->getMaxTLayers()-1 )); 1272 1274 #endif 1273 1275 -
branches/SHM-6-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r773 r774 2311 2311 READ_UVLC( uiCode, "num_bitstream_partitions[i]"); vps->setNumBitstreamPartitions(h, uiCode); 2312 2312 #if HRD_BPB 2313 2313 Int chkPart=0; 2314 2314 #endif 2315 2315 for( i = 0; i < vps->getNumBitstreamPartitions(h); i++ ) … … 2323 2323 } 2324 2324 #if HRD_BPB 2325 2325 chkPart+=vps->getLayerInBspFlag(h, i, j); 2326 2326 #endif 2327 2327 } 2328 2328 #if HRD_BPB 2329 2329 assert(chkPart<=1); 2330 2330 #endif 2331 2331 #if HRD_BPB 2332 if(vps->getNumBitstreamPartitions(h)==1) 2332 if(vps->getNumBitstreamPartitions(h)==1) 2333 { 2334 Int chkPartition1=0; Int chkPartition2=0; 2335 for( j = 0; j <= (vps->getMaxLayers()-1); j++ ) 2333 2336 { 2334 Int chkPartition1=0; Int chkPartition2=0; 2335 for( j = 0; j <= (vps->getMaxLayers()-1); j++ ) 2336 { 2337 if( vps->getLayerIdIncludedFlag(h, j) ) 2338 { 2339 chkPartition1+=vps->getLayerInBspFlag(h, 0, j); 2340 chkPartition2++; 2341 } 2342 } 2343 assert(chkPartition1!=chkPartition2); 2337 if( vps->getLayerIdIncludedFlag(h, j) ) 2338 { 2339 chkPartition1+=vps->getLayerInBspFlag(h, 0, j); 2340 chkPartition2++; 2341 } 2344 2342 } 2343 assert(chkPartition1!=chkPartition2); 2344 } 2345 2345 #endif 2346 2346 if (vps->getNumBitstreamPartitions(h)) … … 2357 2357 READ_UVLC( uiCode, "bsp_comb_hrd_idx[h][i][j]"); vps->setBspCombHrdIdx(h, i, j, uiCode); 2358 2358 #if HRD_BPB 2359 2359 assert(uiCode <= vps->getVpsNumBspHrdParametersMinus1()); 2360 2360 #endif 2361 2361 2362 2362 READ_UVLC( uiCode, "bsp_comb_sched_idx[h][i][j]"); vps->setBspCombSchedIdx(h, i, j, uiCode); 2363 2363 #if HRD_BPB 2364 2364 assert(uiCode <= vps->getBspHrdParamBufferCpbCntMinus1(uiCode,vps->getMaxTLayers()-1)); 2365 2365 #endif 2366 2366 } -
branches/SHM-6-dev/source/Lib/TLibEncoder/SEIwrite.cpp
r773 r774 894 894 { 895 895 #if HRD_BPB 896 UInt nl=0; 897 for (UInt j = 0; j < sei.m_vpsMaxLayers; j++) 898 { 899 if (sei.m_layerIdIncludedFlag[lsIdx][j]) 900 nl++; 901 } 902 for (UInt j = 0; j < nl; j++) 903 { 896 UInt nl=0; 897 for (UInt j = 0; j < sei.m_vpsMaxLayers; j++) 898 { 899 if (sei.m_layerIdIncludedFlag[lsIdx][j]) 900 { 901 nl++; 902 } 903 } 904 for (UInt j = 0; j < nl; j++) 905 { 904 906 #else 905 907 for (UInt j = 0; j < sei.m_vpsMaxLayers; j++)
Note: See TracChangeset for help on using the changeset viewer.