Changeset 1336 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 22 Jul 2015, 02:46:03 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1334 r1336 82 82 m_iNumPicCoded = 0; //Niko 83 83 m_bFirst = true; 84 #if ALLOW_RECOVERY_POINT_AS_RAP85 84 m_iLastRecoveryPicPOC = 0; 86 #endif87 85 88 86 m_pcCfg = NULL; … … 886 884 seiMessages.push_back(recoveryPointSEI); 887 885 888 #if ALLOW_RECOVERY_POINT_AS_RAP889 886 if(m_pcCfg->getDecodingRefreshType() == 3) 890 887 { 891 888 m_iLastRecoveryPicPOC = slice->getPOC(); 892 889 } 893 #endif894 890 } 895 891 if (m_pcCfg->getTemporalLevel0IndexSEIEnabled()) … … 1952 1948 } 1953 1949 1954 #if ALLOW_RECOVERY_POINT_AS_RAP1955 1950 if ((pcSlice->checkThatAllRefPicsAreAvailable(rcListPic, pcSlice->getRPS(), false, m_iLastRecoveryPicPOC, m_pcCfg->getDecodingRefreshType() == 3) != 0) || (pcSlice->isIRAP()) 1956 1951 || (m_pcCfg->getEfficientFieldIRAPEnabled() && isField && pcSlice->getAssociatedIRAPType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getAssociatedIRAPType() <= NAL_UNIT_CODED_SLICE_CRA && pcSlice->getAssociatedIRAPPOC() == pcSlice->getPOC()+1) … … 1959 1954 pcSlice->createExplicitReferencePictureSetFromReference(rcListPic, pcSlice->getRPS(), pcSlice->isIRAP(), m_iLastRecoveryPicPOC, m_pcCfg->getDecodingRefreshType() == 3, m_pcCfg->getEfficientFieldIRAPEnabled()); 1960 1955 } 1961 #else 1962 if ((pcSlice->checkThatAllRefPicsAreAvailable(rcListPic, pcSlice->getRPS(), false) != 0) || (pcSlice->isIRAP())) 1963 { 1964 pcSlice->createExplicitReferencePictureSetFromReference(rcListPic, pcSlice->getRPS(), pcSlice->isIRAP(), m_pcCfg->getEfficientFieldIRAPEnabled()); 1965 } 1966 #endif 1956 1967 1957 #if ALIGNED_BUMPING 1968 1958 pcSlice->checkLeadingPictureRestrictions(rcListPic, true); … … 3485 3475 } 3486 3476 3487 #if ALLOW_RECOVERY_POINT_AS_RAP3488 3477 if(m_pcCfg->getDecodingRefreshType() != 3 && (pocCurr - isField) % m_pcCfg->getIntraPeriod() == 0) 3489 #else3490 if ((pocCurr - isField) % m_pcCfg->getIntraPeriod() == 0)3491 #endif3492 3478 { 3493 3479 if (m_pcCfg->getDecodingRefreshType() == 1) -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.h
r1310 r1336 103 103 Int m_iNumPicCoded; 104 104 Bool m_bFirst; 105 #if ALLOW_RECOVERY_POINT_AS_RAP106 105 Int m_iLastRecoveryPicPOC; 107 #endif108 106 109 107 // Access channel -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSlice.cpp
r1330 r1336 304 304 if(!(isField && pocLast == 1) || !m_pcCfg->getEfficientFieldIRAPEnabled()) 305 305 { 306 #if ALLOW_RECOVERY_POINT_AS_RAP307 306 if(m_pcCfg->getDecodingRefreshType() == 3) 308 307 { … … 311 310 else 312 311 { 313 #endif314 312 eSliceType = (pocLast == 0 || (pocCurr - (isField ? 1 : 0)) % m_pcCfg->getIntraPeriod() == 0 || m_pcGOPEncoder->getGOPSize() == 0) ? I_SLICE : eSliceType; 315 #if ALLOW_RECOVERY_POINT_AS_RAP 316 } 317 #endif 313 } 318 314 } 319 315 … … 452 448 if(!(isField && pocLast == 1) || !m_pcCfg->getEfficientFieldIRAPEnabled()) 453 449 { 454 #if ALLOW_RECOVERY_POINT_AS_RAP455 450 if(m_pcCfg->getDecodingRefreshType() == 3) 456 451 { … … 459 454 else 460 455 { 461 #endif462 456 eSliceType = (pocLast == 0 || (pocCurr - (isField ? 1 : 0)) % m_pcCfg->getIntraPeriod() == 0 || m_pcGOPEncoder->getGOPSize() == 0) ? I_SLICE : eSliceType; 463 #if ALLOW_RECOVERY_POINT_AS_RAP 464 } 465 #endif 457 } 466 458 } 467 459
Note: See TracChangeset for help on using the changeset viewer.