Changeset 1173 in SHVCSoftware


Ignore:
Timestamp:
8 Jul 2015, 01:52:42 (9 years ago)
Author:
seregin
Message:

macro cleanup: O0092_0094_DEPENDENCY_CONSTRAINT

Location:
branches/SHM-dev/source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1172 r1173  
    14751475  }
    14761476
    1477 #if O0092_0094_DEPENDENCY_CONSTRAINT
     1477  // dependency constraint
    14781478  vps->setNumRefLayers();
    14791479
    1480   if (vps->getMaxLayers() > MAX_REF_LAYERS)
    1481   {
    1482     for (UInt layerCtr = 1; layerCtr <= vps->getMaxLayers() - 1; layerCtr++)
     1480  if( vps->getMaxLayers() > MAX_REF_LAYERS )
     1481  {
     1482    for( UInt layerCtr = 1; layerCtr <= vps->getMaxLayers() - 1; layerCtr++ )
    14831483    {
    14841484      assert(vps->getNumRefLayers(vps->getLayerIdInNuh(layerCtr)) <= MAX_REF_LAYERS);
    14851485    }
    14861486  }
    1487 #endif
     1487
    14881488  // The Layer ID List variables should be derived here.
    14891489  vps->deriveLayerIdListVariables();
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1172 r1173  
    20642064  ::memset(m_viewIdVal, 0, sizeof(m_viewIdVal));
    20652065#endif
    2066 #if O0092_0094_DEPENDENCY_CONSTRAINT
    2067   for (Int i = 0; i < MAX_NUM_LAYER_IDS; i++)
     2066
     2067  for( Int i = 0; i < MAX_NUM_LAYER_IDS; i++ )
    20682068  {
    20692069    m_numberRefLayers[i] = 0;
    2070     for (Int j = 0; j < MAX_NUM_LAYER_IDS; j++)
     2070    for( Int j = 0; j < MAX_NUM_LAYER_IDS; j++ )
    20712071    {
    20722072      m_recursiveRefLayerFlag[i][j] = 0;
    20732073    }
    20742074  }
    2075 #endif
     2075
    20762076#if VPS_DPB_SIZE_TABLE
    20772077  ::memset( m_subLayerFlagInfoPresentFlag,  0, sizeof(m_subLayerFlagInfoPresentFlag ) );
     
    31893189}
    31903190#endif
    3191 #if O0092_0094_DEPENDENCY_CONSTRAINT
     3191
    31923192Void TComVPS::setRefLayersFlags(Int currLayerId)
    31933193{
     
    32173217  }
    32183218}
    3219 #endif
    32203219
    32213220Void TComVPS::setPredictedLayerIds()
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1172 r1173  
    709709#endif
    710710
    711 #if O0092_0094_DEPENDENCY_CONSTRAINT
    712711  Int        m_numberRefLayers[MAX_NUM_LAYER_IDS];  // number of direct and indirect reference layers of a coding layer
    713712  Bool       m_recursiveRefLayerFlag[MAX_NUM_LAYER_IDS][MAX_NUM_LAYER_IDS];  // flag to indicate if j-th layer is a direct or indirect reference layer of i-th layer
    714 #endif
     713
    715714  Int        m_numAddLayerSets;
    716715  UInt       m_highestLayerIdxPlus1[MAX_NUM_ADD_LAYER_SETS][MAX_NUM_LAYER_IDS];
     
    872871#endif
    873872
    874 #if O0092_0094_DEPENDENCY_CONSTRAINT
    875873  Void    setRefLayersFlags(Int currLayerId);
    876874  Bool    getRecursiveRefLayerFlag(Int currLayerId, Int refLayerId)              { return m_recursiveRefLayerFlag[currLayerId][refLayerId];}
     
    878876  Int     getNumRefLayers(Int currLayerId)                                       { return m_numberRefLayers[currLayerId];                  }
    879877  Void    setNumRefLayers();
    880 #endif
    881878
    882879  void    deriveLayerIdListVariablesForAddLayerSets();
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1172 r1173  
    125125#define O0062_POC_LSB_NOT_PRESENT_FLAG   1      ///< JCTVC-O0062: signal poc_lsb_not_present_flag for each layer in VPS extension
    126126
    127 #define O0092_0094_DEPENDENCY_CONSTRAINT 1      ///< JCTVC-O0092: constraint on the layer_id of SPS/PPS
    128 #if O0092_0094_DEPENDENCY_CONSTRAINT
    129 #define MAX_REF_LAYERS                   7
    130 #endif
    131 
    132127#define MULTIPLE_PTL_SUPPORT             1      ///< Profile, tier and level signalling
    133128
     
    203198#define MAX_SEIS_IN_BSP_NESTING          64
    204199#define MAX_VPS_NUM_SCALABILITY_TYPES    16
     200#define MAX_REF_LAYERS                   7
    205201
    206202#endif // SVC_EXTENSION
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1172 r1173  
    27772777  }
    27782778
    2779 #if O0092_0094_DEPENDENCY_CONSTRAINT // Moved here
     2779  // dependency constraint
    27802780  vps->setNumRefLayers();
    27812781
     
    27872787    }
    27882788  }
    2789 #endif
     2789
    27902790  vps->setPredictedLayerIds();
    27912791  vps->setTreePartitionLayerIdList();
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1172 r1173  
    24062406        pcSlice->getSPS()->getVuiParameters()->setHrdParametersPresentFlag( true );
    24072407      }
    2408 #if O0092_0094_DEPENDENCY_CONSTRAINT
     2408
     2409#if SVC_EXTENSION
     2410      // dependency constraint
    24092411      assert( pcSlice->getSPS()->getLayerId() == 0 || pcSlice->getSPS()->getLayerId() == m_layerId || m_pcEncTop->getVPS()->getRecursiveRefLayerFlag(m_layerId, pcSlice->getSPS()->getLayerId()) );
    24102412#endif
     2413
    24112414      m_pcEntropyCoder->encodeSPS(pcSlice->getSPS());
    24122415      writeRBSPTrailingBits(nalu.m_Bitstream);
     
    24272430
    24282431      m_pcEntropyCoder->setBitstream(&nalu.m_Bitstream);
    2429 #if O0092_0094_DEPENDENCY_CONSTRAINT
     2432
     2433#if SVC_EXTENSION
     2434      // dependency constraint
    24302435      assert( pcSlice->getPPS()->getLayerId() == 0 || pcSlice->getPPS()->getLayerId() == m_layerId || m_pcEncTop->getVPS()->getRecursiveRefLayerFlag(m_layerId, pcSlice->getPPS()->getLayerId()) );
    24312436#endif
    2432 #if Q0048_CGS_3D_ASYMLUT
     2437#if SVC_EXTENSION && Q0048_CGS_3D_ASYMLUT
    24332438      m_pcEntropyCoder->encodePPS(pcSlice->getPPS(), &m_Enc3DAsymLUTPPS);
    24342439#else
Note: See TracChangeset for help on using the changeset viewer.