Changeset 931 in SHVCSoftware
- Timestamp:
- 17 Dec 2014, 01:39:13 (10 years ago)
- Location:
- branches/SHM-upgrade/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-upgrade/source/App/TAppDecoder/TAppDecTop.cpp
r928 r931 1436 1436 1437 1437 TComDigest recon_digest; 1438 calcMD5(*pic->getPicYuvRec(), recon_digest);1439 fprintf(fptr, "%8d%9d MD5:%s\n", pic->getLayerId(), pic->getSlice(0)->getPOC(), digestToString(recon_digest, 16));1438 Int numChar = calcMD5(*pic->getPicYuvRec(), recon_digest); 1439 fprintf(fptr, "%8d%9d MD5:%s\n", pic->getLayerId(), pic->getSlice(0)->getPOC(), digestToString(recon_digest, numChar).c_str()); 1440 1440 fclose(fptr); 1441 1441 … … 1461 1461 yScal = TComSPS::getWinUnitY( chromaFormatIdc ); 1462 1462 #endif 1463 std::vector<TComPic>::iterator it erPic;1464 for(it erPic = layerBuffer->begin(); iterPic != layerBuffer->end(); iterPic++)1465 { 1466 TComPic checkPic = *it erPic;1463 std::vector<TComPic>::iterator itPic; 1464 for(itPic = layerBuffer->begin(); itPic != layerBuffer->end(); itPic++) 1465 { 1466 TComPic checkPic = *itPic; 1467 1467 if( checkPic.getPOC() <= pic->getPOC() ) 1468 1468 { … … 1473 1473 conf.getWindowTopOffset() * yScal + defDisp.getWindowTopOffset(), 1474 1474 conf.getWindowBottomOffset()* yScal + defDisp.getWindowBottomOffset() ); 1475 layerBuffer->erase(it erPic);1476 it erPic = layerBuffer->begin(); // Ensure doesn't go to infinite loop1475 layerBuffer->erase(itPic); 1476 itPic = layerBuffer->begin(); // Ensure doesn't go to infinite loop 1477 1477 if(layerBuffer->size() == 0) 1478 1478 { -
branches/SHM-upgrade/source/Lib/TLibDecoder/TDecGop.cpp
r928 r931 55 55 56 56 #if CONFORMANCE_BITSTREAM_MODE 57 Bool pocCompareFunction( TComPic &pic1,TComPic &pic2 )58 { 59 return ( pic1.getPOC() < pic2.getPOC());57 Bool pocCompareFunction( const TComPic &pic1, const TComPic &pic2 ) 58 { 59 return (const_cast<TComPic&>(pic1).getPOC() < const_cast<TComPic&>(pic2).getPOC()); 60 60 } 61 61 #endif
Note: See TracChangeset for help on using the changeset viewer.