Changeset 1336 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
22 Jul 2015, 02:46:03 (10 years ago)
Author:
seregin
Message:

port rev 4414

Location:
branches/SHM-dev/source/Lib/TLibEncoder
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1334 r1336  
    8282  m_iNumPicCoded        = 0; //Niko
    8383  m_bFirst              = true;
    84 #if ALLOW_RECOVERY_POINT_AS_RAP
    8584  m_iLastRecoveryPicPOC = 0;
    86 #endif
    8785
    8886  m_pcCfg               = NULL;
     
    886884    seiMessages.push_back(recoveryPointSEI);
    887885
    888 #if ALLOW_RECOVERY_POINT_AS_RAP
    889886    if(m_pcCfg->getDecodingRefreshType() == 3)
    890887    {
    891888      m_iLastRecoveryPicPOC = slice->getPOC();
    892889    }
    893 #endif
    894890  }
    895891  if (m_pcCfg->getTemporalLevel0IndexSEIEnabled())
     
    19521948    }
    19531949
    1954 #if ALLOW_RECOVERY_POINT_AS_RAP
    19551950    if ((pcSlice->checkThatAllRefPicsAreAvailable(rcListPic, pcSlice->getRPS(), false, m_iLastRecoveryPicPOC, m_pcCfg->getDecodingRefreshType() == 3) != 0) || (pcSlice->isIRAP())
    19561951      || (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)
     
    19591954      pcSlice->createExplicitReferencePictureSetFromReference(rcListPic, pcSlice->getRPS(), pcSlice->isIRAP(), m_iLastRecoveryPicPOC, m_pcCfg->getDecodingRefreshType() == 3, m_pcCfg->getEfficientFieldIRAPEnabled());
    19601955    }
    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
    19671957#if ALIGNED_BUMPING
    19681958    pcSlice->checkLeadingPictureRestrictions(rcListPic, true);
     
    34853475  }
    34863476
    3487 #if ALLOW_RECOVERY_POINT_AS_RAP
    34883477  if(m_pcCfg->getDecodingRefreshType() != 3 && (pocCurr - isField) % m_pcCfg->getIntraPeriod() == 0)
    3489 #else
    3490   if ((pocCurr - isField) % m_pcCfg->getIntraPeriod() == 0)
    3491 #endif
    34923478  {
    34933479    if (m_pcCfg->getDecodingRefreshType() == 1)
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.h

    r1310 r1336  
    103103  Int                     m_iNumPicCoded;
    104104  Bool                    m_bFirst;
    105 #if ALLOW_RECOVERY_POINT_AS_RAP
    106105  Int                     m_iLastRecoveryPicPOC;
    107 #endif
    108106
    109107  //  Access channel
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncSlice.cpp

    r1330 r1336  
    304304  if(!(isField && pocLast == 1) || !m_pcCfg->getEfficientFieldIRAPEnabled())
    305305  {
    306 #if ALLOW_RECOVERY_POINT_AS_RAP
    307306    if(m_pcCfg->getDecodingRefreshType() == 3)
    308307    {
     
    311310    else
    312311    {
    313 #endif
    314312      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    }
    318314  }
    319315
     
    452448    if(!(isField && pocLast == 1) || !m_pcCfg->getEfficientFieldIRAPEnabled())
    453449    {
    454 #if ALLOW_RECOVERY_POINT_AS_RAP
    455450      if(m_pcCfg->getDecodingRefreshType() == 3)
    456451      {
     
    459454      else
    460455      {
    461 #endif
    462456        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      }
    466458    }
    467459
Note: See TracChangeset for help on using the changeset viewer.