Changeset 1366 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 22 Jul 2015, 04:32:08 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1353 r1366 1926 1926 #endif 1927 1927 m_pcEncTop->selectReferencePictureSet(pcSlice, pocCurr, iGOPid); 1928 pcSlice->getRPS()->setNumberOfLongtermPictures(0);1928 // pcSlice->getRPS()->setNumberOfLongtermPictures(0); 1929 1929 if (!m_pcCfg->getEfficientFieldIRAPEnabled()) 1930 1930 { … … 3544 3544 Void TEncGOP::arrangeLongtermPicturesInRPS(TComSlice *pcSlice, TComList<TComPic*>& rcListPic) 3545 3545 { 3546 TComReferencePictureSet *rps = pcSlice->getRPS(); 3547 if(!rps->getNumberOfLongtermPictures()) 3546 if(pcSlice->getRPS()->getNumberOfLongtermPictures() == 0) 3548 3547 { 3549 3548 return; 3550 3549 } 3550 // we can only modify the local RPS! 3551 assert (pcSlice->getRPSidx()==-1); 3552 TComReferencePictureSet *rps = pcSlice->getLocalRPS(); 3551 3553 3552 3554 // Arrange long-term reference pictures in the correct order of LSB and MSB, … … 4013 4015 { 4014 4016 TComSlice *dpbPicSlice = dpbPic->getSlice( i ); 4015 TComReferencePictureSet *dpbPicRps = dpbPicSlice->get RPS();4017 TComReferencePictureSet *dpbPicRps = dpbPicSlice->getLocalRPS(); 4016 4018 4017 4019 // Decrement POC of slice … … 4023 4025 dpbPicRps->setPOC( j, dpbPicRps->getPOC(j) - deltaPocVal ); 4024 4026 } 4027 4028 dpbPicSlice->setRPS(dpbPicRps); 4025 4029 4026 4030 // Decrement value of refPOC -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1360 r1366 1512 1512 } 1513 1513 1514 TComReferencePictureSet *rps=slice->getLocalRPS(); 1515 (*rps) = *(slice->getSPS()->getRPSList()->getReferencePictureSet(slice->getRPSidx())); 1514 const TComReferencePictureSet *rps = (slice->getSPS()->getRPSList()->getReferencePictureSet(slice->getRPSidx())); 1516 1515 slice->setRPS(rps); 1517 slice->getRPS()->setNumberOfPictures(slice->getRPS()->getNumberOfNegativePictures()+slice->getRPS()->getNumberOfPositivePictures());1518 1516 } 1519 1517
Note: See TracChangeset for help on using the changeset viewer.