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


Ignore:
Timestamp:
2 Aug 2013, 22:59:06 (11 years ago)
Author:
seregin
Message:

cleanup ZERO_NUM_DIRECT_LAYERS

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

Legend:

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

    r313 r323  
    645645      pcSlice->setNalUnitType(NAL_UNIT_CODED_SLICE_CRA);
    646646    }
    647 #if ZERO_NUM_DIRECT_LAYERS
     647
    648648    if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() == 0 && pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA )
    649649    {
    650650      pcSlice->setSliceType(I_SLICE);
    651651    }
    652     else
    653 #endif
    654     if( m_layerId > 0 && !m_pcEncTop->getElRapSliceTypeB() )
     652    else if( m_layerId > 0 && !m_pcEncTop->getElRapSliceTypeB() )
    655653    {
    656654      if( (pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA_W_LP) &&
     
    760758
    761759#if REF_IDX_FRAMEWORK
    762 #if ZERO_NUM_DIRECT_LAYERS
    763760    if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() )
    764 #else
    765     if(m_layerId > 0)
    766 #endif
    767761    {
    768762#if RESTR_CHK
     
    820814    //  Set reference list
    821815#if REF_IDX_FRAMEWORK
    822 #if ZERO_NUM_DIRECT_LAYERS
    823816    if(m_layerId ==  0 || ( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() == 0 ) )
    824 #else
    825     if(m_layerId ==  0)
    826 #endif
    827817    {
    828818      pcSlice->setRefPicList( rcListPic);
     
    832822#endif
    833823#if REF_IDX_FRAMEWORK
    834 #if ZERO_NUM_DIRECT_LAYERS
    835824    if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() )
    836 #else
    837     if(m_layerId > 0)
    838 #endif
    839825    {
    840826      m_pcEncTop->setILRPic(pcPic);
  • branches/SHM-3.0-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r313 r323  
    12041204  if( m_ppcTEncTop[m_layerId]->getNumDirectRefLayers() <= 0 )
    12051205  {
    1206 #if ZERO_NUM_DIRECT_LAYERS
    12071206    return (TEncTop *)getLayerEnc( 0 );
    1208 #else
    1209     return NULL;
    1210 #endif
    12111207  }
    12121208
Note: See TracChangeset for help on using the changeset viewer.