Changeset 1039 in SHVCSoftware


Ignore:
Timestamp:
2 Mar 2015, 19:26:17 (10 years ago)
Author:
interdigital
Message:
  1. fixed if statement with fixed "m_layerId == 1" as test condition
  2. fixed assert bug of O0092_0094_DEPENDENCY_CONSTRAINT which mistakenly use PPS Id instead of PPS layer_id for constraint check.
File:
1 edited

Legend:

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

    r1037 r1039  
    960960
    961961#if M0040_ADAPTIVE_RESOLUTION_CHANGE
    962     if (m_pcEncTop->getAdaptiveResolutionChange() > 0 && ((m_layerId == 1 && pocCurr < m_pcEncTop->getAdaptiveResolutionChange()) ||
     962    if (m_pcEncTop->getAdaptiveResolutionChange() > 0 && ((m_layerId > 0 && pocCurr < m_pcEncTop->getAdaptiveResolutionChange()) ||
    963963                                                          (m_layerId == 0 && pocCurr > m_pcEncTop->getAdaptiveResolutionChange())) )
    964964    {
     
    11821182#endif
    11831183#if M0040_ADAPTIVE_RESOLUTION_CHANGE
    1184     if (m_pcEncTop->getAdaptiveResolutionChange() > 0 && m_layerId == 1 && pocCurr > m_pcEncTop->getAdaptiveResolutionChange())
     1184    if (m_pcEncTop->getAdaptiveResolutionChange() > 0 && m_layerId > 0 && pocCurr > m_pcEncTop->getAdaptiveResolutionChange())
    11851185    {
    11861186      pcSlice->setActiveNumILRRefIdx(0);
     
    23712371#if AVC_BASE
    23722372#if VPS_AVC_BL_FLAG_REMOVAL
    2373       if( ( m_layerId == 1 && m_pcEncTop->getVPS()->getNonHEVCBaseLayerFlag() ) || ( m_layerId == 0 && !m_pcEncTop->getVPS()->getNonHEVCBaseLayerFlag() ) )
    2374 #else
    2375       if( ( m_layerId == 1 && m_pcEncTop->getVPS()->getAvcBaseLayerFlag() ) || ( m_layerId == 0 && !m_pcEncTop->getVPS()->getAvcBaseLayerFlag() ) )
     2373      if( ( m_layerId > 0 && m_pcEncTop->getVPS()->getNonHEVCBaseLayerFlag() ) || ( m_layerId == 0 && !m_pcEncTop->getVPS()->getNonHEVCBaseLayerFlag() ) )
     2374#else
     2375      if( ( m_layerId > 0 && m_pcEncTop->getVPS()->getAvcBaseLayerFlag() ) || ( m_layerId == 0 && !m_pcEncTop->getVPS()->getAvcBaseLayerFlag() ) )
    23762376#endif
    23772377#else
     
    24592459      m_pcEntropyCoder->setBitstream(&nalu.m_Bitstream);
    24602460#if O0092_0094_DEPENDENCY_CONSTRAINT
    2461       assert( pcSlice->getPPS()->getPPSId() == 0 || pcSlice->getPPS()->getPPSId() == m_layerId || m_pcEncTop->getVPS()->getRecursiveRefLayerFlag(m_layerId, pcSlice->getPPS()->getPPSId()) );
     2461      assert( pcSlice->getPPS()->getLayerId() == 0 || pcSlice->getPPS()->getLayerId() == m_layerId || m_pcEncTop->getVPS()->getRecursiveRefLayerFlag(m_layerId, pcSlice->getPPS()->getLayerId()) );
    24622462#endif
    24632463#if Q0048_CGS_3D_ASYMLUT
Note: See TracChangeset for help on using the changeset viewer.