Changeset 1144 in SHVCSoftware


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

macro cleanup: ISLICE_TYPE_NUMDIR

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1143 r1144  
    196196#define ALT_OPT_LAYER_FLAG               1      ///< JCTVC-R0154: proposal1 - alt_output_layer_flag[i] inference
    197197#define DEF_OPT_LAYER_IDC                1      ///< JCTVC-R0154: proposal2 - default_output_layer_idc and output_layer_flag[i][j]
    198 #define ISLICE_TYPE_NUMDIR               1      ///< JCTVC-R0155: Proposal 1 I slice_type
    199198#define OLS_IDX_CHK                      1      ///< JCTVC-R0155: Proposal 2 valid range for output_layer_set_idx_to_vps[i]
    200199#define R0340_RESAMPLING_MODIFICATION    1      ///< JCTVC-R0340: set of changes regarding resampling (as listed below)
  • 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.