Changeset 1366 in SHVCSoftware for branches/SHM-dev/source/Lib
- Timestamp:
- 22 Jul 2015, 04:32:08 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1356 r1366 2025 2025 Int m_iAssociatedIRAP; 2026 2026 NalUnitType m_iAssociatedIRAPType; 2027 TComReferencePictureSet* m_pcRPS;2027 const TComReferencePictureSet* m_pcRPS; 2028 2028 TComReferencePictureSet m_LocalRPS; 2029 2029 Int m_iBDidx; … … 2170 2170 Void setSaoEnabledFlag(ChannelType chType, Bool s) {m_saoEnabledFlag[chType] =s; } 2171 2171 Bool getSaoEnabledFlag(ChannelType chType) const { return m_saoEnabledFlag[chType]; } 2172 Void setRPS( TComReferencePictureSet *pcRPS ){ m_pcRPS = pcRPS; }2173 TComReferencePictureSet* getRPS() { return m_pcRPS; }2172 Void setRPS( const TComReferencePictureSet *pcRPS ) { m_pcRPS = pcRPS; } 2173 const TComReferencePictureSet* getRPS() { return m_pcRPS; } 2174 2174 TComReferencePictureSet* getLocalRPS() { return &m_LocalRPS; } 2175 2175 -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1358 r1366 1162 1162 1163 1163 TComSlice *slice = dpbPic->getSlice(i); 1164 TComReferencePictureSet *rps = slice->get RPS();1164 TComReferencePictureSet *rps = slice->getLocalRPS(); 1165 1165 slice->setPOC( slice->getPOC() - deltaPocVal ); 1166 1166 … … 1170 1170 rps->setPOC( j, rps->getPOC(j) - deltaPocVal ); 1171 1171 } 1172 1173 slice->setRPS(rps); 1174 1172 1175 // Also adjust the value of refPOC 1173 1176 for(Int k = 0; k < 2; k++) // For List 0 and List 1 -
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.