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


Ignore:
Timestamp:
7 Jul 2015, 23:37:16 (10 years ago)
Author:
seregin
Message:

macro cleanup: ISLICE_TYPE_NUMDIR

File:
1 edited

Legend:

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

    r1141 r1144  
    15051505        }
    15061506      }
    1507 #if ISLICE_TYPE_NUMDIR
    1508       if( pcSlice->getActiveNumILRRefIdx() == 0 && pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA && (m_pcEncTop->getNumDirectRefLayers() == 0) )
    1509 #else
    1510       if( pcSlice->getActiveNumILRRefIdx() == 0 && pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA )
    1511 #endif
    1512       {
    1513         pcSlice->setSliceType(I_SLICE);
    1514       }
    1515       else if( !m_pcEncTop->getElRapSliceTypeB() )
    1516       {
    1517         if( (pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP) &&
    1518           (pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA) &&
    1519           pcSlice->getSliceType() == B_SLICE )
     1507
     1508      if( pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA )
     1509      {
     1510        if( pcSlice->getActiveNumILRRefIdx() == 0 && m_pcEncTop->getNumDirectRefLayers() == 0 )
     1511        {
     1512          pcSlice->setSliceType(I_SLICE);
     1513        }
     1514        else if( !m_pcEncTop->getElRapSliceTypeB() && pcSlice->getSliceType() == B_SLICE )
    15201515        {
    15211516          pcSlice->setSliceType(P_SLICE);
    15221517        }
    1523       }     
     1518      }
    15241519    }
    15251520#else
Note: See TracChangeset for help on using the changeset viewer.