Changeset 1148 in SHVCSoftware


Ignore:
Timestamp:
8 Jul 2015, 00:10:36 (9 years ago)
Author:
seregin
Message:

macro cleanup: VPS_EXTN_DIRECT_REF_LAYERS

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

Legend:

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

    r1147 r1148  
    190190Void TAppEncCfg::destroy()
    191191{
    192 #if VPS_EXTN_DIRECT_REF_LAYERS
     192#if SVC_EXTENSION
    193193  for(Int layer = 0; layer < MAX_LAYERS; layer++)
    194194  {
     
    768768#endif
    769769#if AUXILIARY_PICTURES
    770   Int*     cfg_auxId               [MAX_LAYERS];
    771 #endif
    772 #if VPS_EXTN_DIRECT_REF_LAYERS
     770  Int*    cfg_auxId[MAX_LAYERS];
     771#endif
     772
    773773  Int*    cfg_numSamplePredRefLayers  [MAX_LAYERS];
    774774  string  cfg_samplePredRefLayerIds   [MAX_LAYERS];
     
    780780  string  cfg_predLayerIds       [MAX_LAYERS];
    781781  string* cfg_predLayerIdsPtr    [MAX_LAYERS];
    782 #endif
    783   string    cfg_refLocationOffsetLayerId [MAX_LAYERS];
    784   string    cfg_scaledRefLayerLeftOffset [MAX_LAYERS];
    785   string    cfg_scaledRefLayerTopOffset [MAX_LAYERS];
    786   string    cfg_scaledRefLayerRightOffset [MAX_LAYERS];
    787   string    cfg_scaledRefLayerBottomOffset [MAX_LAYERS];
    788   Int*      cfg_numRefLayerLocationOffsets[MAX_LAYERS];
    789   string    cfg_scaledRefLayerOffsetPresentFlag [MAX_LAYERS];
    790   string    cfg_refRegionOffsetPresentFlag      [MAX_LAYERS];
    791   string    cfg_refRegionLeftOffset   [MAX_LAYERS];
    792   string    cfg_refRegionTopOffset    [MAX_LAYERS];
    793   string    cfg_refRegionRightOffset  [MAX_LAYERS];
    794   string    cfg_refRegionBottomOffset [MAX_LAYERS];
    795   string    cfg_resamplePhaseSetPresentFlag [MAX_LAYERS];
    796   string    cfg_phaseHorLuma   [MAX_LAYERS];
    797   string    cfg_phaseVerLuma   [MAX_LAYERS];
    798   string    cfg_phaseHorChroma [MAX_LAYERS];
    799   string    cfg_phaseVerChroma [MAX_LAYERS];
    800   string*    cfg_refLocationOffsetLayerIdPtr   [MAX_LAYERS];
    801   string*    cfg_scaledRefLayerLeftOffsetPtr   [MAX_LAYERS];
    802   string*    cfg_scaledRefLayerTopOffsetPtr    [MAX_LAYERS];
    803   string*    cfg_scaledRefLayerRightOffsetPtr  [MAX_LAYERS];
    804   string*    cfg_scaledRefLayerBottomOffsetPtr [MAX_LAYERS];
    805   string*    cfg_scaledRefLayerOffsetPresentFlagPtr [MAX_LAYERS];
    806   string*    cfg_refRegionOffsetPresentFlagPtr      [MAX_LAYERS];
    807   string*    cfg_refRegionLeftOffsetPtr   [MAX_LAYERS];
    808   string*    cfg_refRegionTopOffsetPtr    [MAX_LAYERS];
    809   string*    cfg_refRegionRightOffsetPtr  [MAX_LAYERS];
    810   string*    cfg_refRegionBottomOffsetPtr [MAX_LAYERS];
    811   string*    cfg_resamplePhaseSetPresentFlagPtr [MAX_LAYERS];
    812   string*    cfg_phaseHorLumaPtr   [MAX_LAYERS];
    813   string*    cfg_phaseVerLumaPtr   [MAX_LAYERS];
    814   string*    cfg_phaseHorChromaPtr [MAX_LAYERS];
    815   string*    cfg_phaseVerChromaPtr [MAX_LAYERS];
     782
     783  string  cfg_refLocationOffsetLayerId [MAX_LAYERS];
     784  string  cfg_scaledRefLayerLeftOffset [MAX_LAYERS];
     785  string  cfg_scaledRefLayerTopOffset [MAX_LAYERS];
     786  string  cfg_scaledRefLayerRightOffset [MAX_LAYERS];
     787  string  cfg_scaledRefLayerBottomOffset [MAX_LAYERS];
     788  Int*    cfg_numRefLayerLocationOffsets[MAX_LAYERS];
     789  string  cfg_scaledRefLayerOffsetPresentFlag [MAX_LAYERS];
     790  string  cfg_refRegionOffsetPresentFlag      [MAX_LAYERS];
     791  string  cfg_refRegionLeftOffset   [MAX_LAYERS];
     792  string  cfg_refRegionTopOffset    [MAX_LAYERS];
     793  string  cfg_refRegionRightOffset  [MAX_LAYERS];
     794  string  cfg_refRegionBottomOffset [MAX_LAYERS];
     795  string  cfg_resamplePhaseSetPresentFlag [MAX_LAYERS];
     796  string  cfg_phaseHorLuma   [MAX_LAYERS];
     797  string  cfg_phaseVerLuma   [MAX_LAYERS];
     798  string  cfg_phaseHorChroma [MAX_LAYERS];
     799  string  cfg_phaseVerChroma [MAX_LAYERS];
     800  string* cfg_refLocationOffsetLayerIdPtr   [MAX_LAYERS];
     801  string* cfg_scaledRefLayerLeftOffsetPtr   [MAX_LAYERS];
     802  string* cfg_scaledRefLayerTopOffsetPtr    [MAX_LAYERS];
     803  string* cfg_scaledRefLayerRightOffsetPtr  [MAX_LAYERS];
     804  string* cfg_scaledRefLayerBottomOffsetPtr [MAX_LAYERS];
     805  string* cfg_scaledRefLayerOffsetPresentFlagPtr [MAX_LAYERS];
     806  string* cfg_refRegionOffsetPresentFlagPtr      [MAX_LAYERS];
     807  string* cfg_refRegionLeftOffsetPtr   [MAX_LAYERS];
     808  string* cfg_refRegionTopOffsetPtr    [MAX_LAYERS];
     809  string* cfg_refRegionRightOffsetPtr  [MAX_LAYERS];
     810  string* cfg_refRegionBottomOffsetPtr [MAX_LAYERS];
     811  string* cfg_resamplePhaseSetPresentFlagPtr [MAX_LAYERS];
     812  string* cfg_phaseHorLumaPtr   [MAX_LAYERS];
     813  string* cfg_phaseVerLumaPtr   [MAX_LAYERS];
     814  string* cfg_phaseHorChromaPtr [MAX_LAYERS];
     815  string* cfg_phaseVerChromaPtr [MAX_LAYERS];
    816816
    817817#if RC_SHVC_HARMONIZATION
     
    881881    cfg_uiQuadtreeTUMaxDepthIntra[layer] = &m_acLayerCfg[layer].m_uiQuadtreeTUMaxDepthIntra;
    882882#endif
    883 #if VPS_EXTN_DIRECT_REF_LAYERS
     883
    884884    cfg_numSamplePredRefLayers  [layer] = &m_acLayerCfg[layer].m_numSamplePredRefLayers;
    885885    cfg_samplePredRefLayerIdsPtr[layer] = &cfg_samplePredRefLayerIds[layer];
     
    887887    cfg_motionPredRefLayerIdsPtr[layer] = &cfg_motionPredRefLayerIds[layer];
    888888    cfg_numActiveRefLayers  [layer] = &m_acLayerCfg[layer].m_numActiveRefLayers;
    889     cfg_predLayerIdsPtr     [layer]  = &cfg_predLayerIds[layer];
    890 #endif
     889    cfg_predLayerIdsPtr     [layer] = &cfg_predLayerIds[layer];
     890
    891891    cfg_numRefLayerLocationOffsets [layer] = &m_acLayerCfg[layer].m_numRefLayerLocationOffsets;
    892892    cfg_waveFrontSynchro[layer]  = &m_acLayerCfg[layer].m_waveFrontSynchro;
     
    10541054#endif
    10551055  ("LayerId%d",                                     cfg_layerId,                                -1, MAX_LAYERS,  "Layer id")
    1056 #if VPS_EXTN_DIRECT_REF_LAYERS
     1056
    10571057  ("NumSamplePredRefLayers%d",                      cfg_numSamplePredRefLayers,                 -1, MAX_LAYERS, "Number of sample prediction reference layers")
    10581058  ("SamplePredRefLayerIds%d",                       cfg_samplePredRefLayerIdsPtr,       string(""), MAX_LAYERS, "sample pred reference layer IDs")
     
    10611061  ("NumActiveRefLayers%d",                          cfg_numActiveRefLayers,                     -1, MAX_LAYERS, "Number of active reference layers")
    10621062  ("PredLayerIds%d",                                cfg_predLayerIdsPtr,                string(""), MAX_LAYERS, "inter-layer prediction layer IDs")
    1063 #endif
     1063
    10641064  ("NumLayers",                                     m_numLayers,                                             1, "Number of layers to code") 
    10651065#if Q0078_ADD_LAYER_SETS
     
    23342334      }
    23352335    }
    2336   }
    2337 
    2338 #if VPS_EXTN_DIRECT_REF_LAYERS
    2339   for(Int layer = 0; layer < MAX_LAYERS; layer++)
    2340   {
     2336
    23412337    Char* pSamplePredRefLayerIds = cfg_samplePredRefLayerIds[layer].empty() ? NULL: strdup(cfg_samplePredRefLayerIds[layer].c_str());
    23422338    if( m_acLayerCfg[layer].m_numSamplePredRefLayers > 0 )
     
    23732369      pSamplePredRefLayerIds = NULL;
    23742370    }
    2375   }
    2376   for(Int layer = 0; layer < MAX_LAYERS; layer++)
    2377   {
     2371
    23782372    Char* pMotionPredRefLayerIds = cfg_motionPredRefLayerIds[layer].empty() ? NULL: strdup(cfg_motionPredRefLayerIds[layer].c_str());
    23792373    if( m_acLayerCfg[layer].m_numMotionPredRefLayers > 0 )
     
    24102404      pMotionPredRefLayerIds = NULL;
    24112405    }
    2412   }
    2413 
    2414   for(Int layer = 0; layer < MAX_LAYERS; layer++)
    2415   {
     2406
    24162407    Char* pPredLayerIds = cfg_predLayerIds[layer].empty() ? NULL: strdup(cfg_predLayerIds[layer].c_str());
    24172408    if( m_acLayerCfg[layer].m_numActiveRefLayers > 0 )
     
    24482439      pPredLayerIds = NULL;
    24492440    }
    2450   }
    2451 #endif
     2441  } //for(Int layer = 0; layer < MAX_LAYERS; layer++)
     2442
    24522443#if Q0078_ADD_LAYER_SETS
    24532444#if OUTPUT_LAYER_SETS_CONFIG
     
    42694260
    42704261#if SVC_EXTENSION
    4271 #if VPS_EXTN_DIRECT_REF_LAYERS
    42724262  xConfirmPara( (m_acLayerCfg[0].m_numSamplePredRefLayers != 0) && (m_acLayerCfg[0].m_numSamplePredRefLayers != -1), "Layer 0 cannot have any reference layers" );
    42734263  // NOTE: m_numSamplePredRefLayers  (for any layer) could be -1 (not signalled in cfg), in which case only the "previous layer" would be taken for reference
     
    43214311    }
    43224312  }
    4323 #endif //VPS_EXTN_DIRECT_REF_LAYERS
    43244313
    43254314  if( m_adaptiveResolutionChange > 0 )
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.h

    r1147 r1148  
    5252  Int       m_auxId;
    5353#endif
    54 #if VPS_EXTN_DIRECT_REF_LAYERS
     54
    5555  Int       *m_samplePredRefLayerIds;
    5656  Int       m_numSamplePredRefLayers;
     
    5959  Int       *m_predLayerIds;
    6060  Int       m_numActiveRefLayers;
    61 #endif
    6261
    6362#if LAYER_CTB
     
    188187  Int     getIntQP()                  {return m_iQP;              }
    189188  Int*    getdQPs()                   {return m_aidQP;            }
    190 #if VPS_EXTN_DIRECT_REF_LAYERS
     189#endif
     190
    191191  Int     getNumSamplePredRefLayers()    {return m_numSamplePredRefLayers;   }
    192192  Int*    getSamplePredRefLayerIds()     {return m_samplePredRefLayerIds;    }
     
    199199  Int*    getPredLayerIds()           {return m_predLayerIds;     }
    200200  Int     getPredLayerIdx(Int i)      {return m_predLayerIds[i];  }
    201 #endif
     201
    202202#if RC_SHVC_HARMONIZATION
    203203  Bool    getRCEnableRateControl()    {return m_RCEnableRateControl;   }
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1147 r1148  
    338338    }
    339339
    340 #if VPS_EXTN_DIRECT_REF_LAYERS
    341     if(layer)
     340    if( layer )
    342341    {
    343342      UInt prevLayerIdx = 0;
     
    442441      m_acTEncTop[layer].setNumDirectRefLayers(0);
    443442    }
    444 #endif //VPS_EXTN_DIRECT_REF_LAYERS
     443
    445444    //===== Slice ========
    446445
     
    14711470#endif
    14721471#endif
    1473 #if VPS_EXTN_DIRECT_REF_LAYERS
     1472
    14741473  // Direct reference layers
    14751474  UInt maxDirectRefLayers = 0;
     
    15471546  vps->deriveLayerIdListVariablesForAddLayerSets();
    15481547#endif
    1549 #endif
     1548
    15501549#if OUTPUT_LAYER_SETS_CONFIG
    15511550
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1147 r1148  
    20232023  ::memset(m_outputLayerFlag, 0, sizeof(m_outputLayerFlag));
    20242024#endif
    2025 #if VPS_EXTN_DIRECT_REF_LAYERS
     2025
    20262026  ::memset(m_directDependencyFlag, 0, sizeof(m_directDependencyFlag));
    20272027  ::memset(m_numDirectRefLayers,   0, sizeof(m_numDirectRefLayers  ));
     
    20292029  m_directDepTypeLen = 2;
    20302030  ::memset(m_directDependencyType, 0, sizeof(m_directDependencyType));
    2031 #endif
     2031
    20322032#if !NECESSARY_LAYER_FLAG
    20332033#if DERIVE_LAYER_ID_LIST_VARIABLES
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1147 r1148  
    660660#endif
    661661#endif
    662 #if VPS_EXTN_DIRECT_REF_LAYERS
     662
    663663  Bool       m_directDependencyFlag[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
    664664  UInt       m_numDirectRefLayers[MAX_VPS_LAYER_IDX_PLUS1];
     
    668668  UInt       m_defaultDirectDependencyType;
    669669  UInt       m_directDependencyType[MAX_VPS_LAYER_IDX_PLUS1][MAX_VPS_LAYER_IDX_PLUS1];
    670 #endif
     670
    671671  UInt       m_numProfileTierLevel;
    672672#if !VPS_EXTN_UEV_CODING
     
    10221022  Void   setOutputLayerFlag(Int layerSet, Int layerIdx, Bool x)  { m_outputLayerFlag[layerSet][layerIdx] = x;    }
    10231023#endif
    1024 #if VPS_EXTN_DIRECT_REF_LAYERS
     1024
    10251025  // Direct dependency of layers
    10261026  Bool   getDirectDependencyFlag(Int currLayerIdx, Int refLayerIdx)             { return m_directDependencyFlag[currLayerIdx][refLayerIdx]; }
     
    10431043  Bool   isSamplePredictionType(Int currLayerIdx, Int refLayerIdx)              { assert(currLayerIdx != refLayerIdx); return ( ( m_directDependencyType[currLayerIdx][refLayerIdx] + 1 ) & 1 ) ? true : false; }
    10441044  Bool   isMotionPredictionType(Int currLayerIdx, Int refLayerIdx)              { assert(currLayerIdx != refLayerIdx); return ( ( ( m_directDependencyType[currLayerIdx][refLayerIdx] + 1 ) & 2 ) >> 1 ) ? true : false; }
    1045 #endif
     1045
    10461046  UInt   getNumProfileTierLevel()                                { return m_numProfileTierLevel; }
    10471047  Void   setNumProfileTierLevel(Int x)                           { m_numProfileTierLevel = x;    }
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1147 r1148  
    130130#define VPS_EXTN_OP_LAYER_SETS           1      ///< Include output layer sets in VPS extension
    131131#define VPS_EXTN_PROFILE_INFO            1      ///< Include profile information for layer sets in VPS extension
    132 #define VPS_EXTN_DIRECT_REF_LAYERS       1      ///< Include indication of direct dependency of layers in VPS extension
    133132
    134133#define VPS_VUI_TILES_NOT_IN_USE__FLAG   1      ///< JCTVC-O0226: VPS VUI flag to indicate tile not in use
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1146 r1148  
    27642764#endif
    27652765#endif // view id related signaling
    2766 #if VPS_EXTN_DIRECT_REF_LAYERS
     2766
    27672767  // For layer 0
    27682768  vps->setNumDirectRefLayers(0, 0);
     
    27832783    vps->setNumDirectRefLayers(layerId, numDirectRefLayers);
    27842784  }
    2785 #endif
     2785
    27862786#if Q0078_ADD_LAYER_SETS
    27872787#if O0092_0094_DEPENDENCY_CONSTRAINT // Moved here
     
    32443244#endif
    32453245
    3246 #if VPS_EXTN_DIRECT_REF_LAYERS
    32473246  READ_UVLC( uiCode,           "direct_dep_type_len_minus2"); vps->setDirectDepTypeLen(uiCode+2);
    32483247
     
    32743273    }
    32753274  }
    3276 #endif
     3275
    32773276#if !Q0078_ADD_LAYER_SETS
    32783277#if O0092_0094_DEPENDENCY_CONSTRAINT // Moved up
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecGop.cpp

    r1089 r1148  
    210210    {
    211211#if SVC_EXTENSION
    212 #if VPS_EXTN_DIRECT_REF_LAYERS
    213212      if( pcSlice->getRefPic(RefPicList(iRefList), iRefIndex)->isILR( m_layerId ) )
    214213      {
     
    224223        printf ("%d", pcSlice->getRefPOC(RefPicList(iRefList), iRefIndex));
    225224      }
    226 #endif
     225
    227226      if( pcSlice->getEnableTMVPFlag() && iRefList == 1 - pcSlice->getColFromL0Flag() && iRefIndex == pcSlice->getColRefIdx() )
    228227      {
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r1147 r1148  
    748748
    749749#if SVC_EXTENSION
    750 #if VPS_EXTN_DIRECT_REF_LAYERS
    751750  setRefLayerParams(m_apcSlicePilot->getVPS());
    752 #endif
    753751  m_apcSlicePilot->setNumMotionPredRefLayers(m_numMotionPredRefLayers);
    754752#endif
     
    17231721        else
    17241722        {
    1725 #if VPS_EXTN_DIRECT_REF_LAYERS
    17261723          TDecTop *pcTDecTop = (TDecTop *)getRefLayerDec( refLayerIdc );
    1727 #else
    1728           TDecTop *pcTDecTop = (TDecTop *)getLayerDec( m_layerId-1 );
    1729 #endif
    17301724          TComList<TComPic*> *cListPic = pcTDecTop->getListPic();
    17311725          if( !pcSlice->setBaseColPic ( *cListPic, refLayerIdc ) )
     
    17351729        }
    17361730#else
    1737 #if VPS_EXTN_DIRECT_REF_LAYERS
    17381731        TDecTop *pcTDecTop = (TDecTop *)getRefLayerDec( refLayerIdc );
    1739 #else
    1740         TDecTop *pcTDecTop = (TDecTop *)getLayerDec( m_layerId-1 );
    1741 #endif
    17421732        TComList<TComPic*> *cListPic = pcTDecTop->getListPic();
    17431733        pcSlice->setBaseColPic ( *cListPic, refLayerIdc );
     
    18211811        else
    18221812        {
    1823 #if VPS_EXTN_DIRECT_REF_LAYERS
    18241813          TDecTop *pcTDecTop = (TDecTop *)getRefLayerDec( refLayerIdc );
    1825 #else
    1826           TDecTop *pcTDecTop = (TDecTop *)getLayerDec( m_layerId-1 );
    1827 #endif
    18281814          TComList<TComPic*> *cListPic = pcTDecTop->getListPic();
    18291815          pcSlice->setBaseColPic ( *cListPic, refLayerIdc );
    18301816        }
    18311817#else
    1832 #if VPS_EXTN_DIRECT_REF_LAYERS
    18331818        TDecTop *pcTDecTop = (TDecTop *)getRefLayerDec( refLayerIdc );
    1834 #else
    1835         TDecTop *pcTDecTop = (TDecTop *)getLayerDec( m_layerId-1 );
    1836 #endif
    18371819        TComList<TComPic*> *cListPic = pcTDecTop->getListPic();
    18381820        pcSlice->setBaseColPic ( *cListPic, refLayerIdc );
     
    24402422}
    24412423
    2442 #if VPS_EXTN_DIRECT_REF_LAYERS
    24432424TDecTop* TDecTop::getRefLayerDec( UInt refLayerIdx )
    24442425{
     
    24512432  return (TDecTop *)getLayerDec( vps->getRefLayerId( m_layerId, refLayerIdx ) );
    24522433}
    2453 #endif
    2454 
    2455 #if VPS_EXTN_DIRECT_REF_LAYERS
     2434
    24562435Void TDecTop::setRefLayerParams( TComVPS* vps )
    24572436{
     
    24792458  }
    24802459}
    2481 #endif
    24822460
    24832461#if OUTPUT_LAYER_SET_INDEX
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h

    r1145 r1148  
    143143#endif
    144144#endif
    145 #if VPS_EXTN_DIRECT_REF_LAYERS
     145
    146146  Int                     m_numDirectRefLayers;
    147147  Int                     m_refLayerId[MAX_VPS_LAYER_IDX_PLUS1];
    148148  Int                     m_numSamplePredRefLayers;
    149149  Int                     m_numMotionPredRefLayers;
    150 #endif
     150
    151151  TComPic*                m_cIlpPic[MAX_NUM_REF];                    ///<  Inter layer Prediction picture =  upsampled picture
    152152#if OUTPUT_LAYER_SET_INDEX
     
    243243  TDecTop*  getLayerDec                     (UInt layerId)                  { return m_ppcTDecTop[layerId];    }
    244244  Void      xDeriveSmallestLayerId(TComVPS* vps);
    245 #if VPS_EXTN_DIRECT_REF_LAYERS
     245
    246246  TDecTop*  getRefLayerDec                  (UInt refLayerIdx);
    247247  Int       getNumDirectRefLayers           ()                              { return m_numDirectRefLayers;      }
     
    258258
    259259  Void      setRefLayerParams( TComVPS* vps );
    260 #endif
     260
    261261#if AVC_BASE
    262262  Void      setBLReconFile( fstream* pFile ) { m_pBLReconFile = pFile; }
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1146 r1148  
    20672067#endif // VIEW_ID_RELATED_SIGNALING
    20682068
    2069 #if VPS_EXTN_DIRECT_REF_LAYERS
    20702069  for( Int layerCtr = 1; layerCtr < vps->getMaxLayers(); layerCtr++)
    20712070  {
     
    20752074    }
    20762075  }
    2077 #endif
     2076
    20782077#if Q0078_ADD_LAYER_SETS
    20792078  if (vps->getNumIndependentLayers() > 1)
     
    23112310  codeVpsDpbSizeTable(vps);
    23122311#endif
    2313 #if VPS_EXTN_DIRECT_REF_LAYERS
     2312
    23142313  WRITE_UVLC( vps->getDirectDepTypeLen()-2,                           "direct_dep_type_len_minus2");
    23152314
     
    23332332    }
    23342333  }
    2335 #endif
    23362334
    23372335#if P0307_VPS_NON_VUI_EXTENSION
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h

    r1131 r1148  
    378378  Bool      m_crossLayerBLAFlag;
    379379#endif
    380 #if VPS_EXTN_DIRECT_REF_LAYERS
     380
    381381  Int       m_numDirectRefLayers;
    382382  Int       m_refLayerId[MAX_VPS_LAYER_IDX_PLUS1];
     
    390390  Bool      m_samplePredEnabledFlag[MAX_VPS_LAYER_IDX_PLUS1];
    391391  Bool      m_motionPredEnabledFlag[MAX_VPS_LAYER_IDX_PLUS1];
    392 #endif
     392
    393393  Int       m_maxTidIlRefPicsPlus1;
    394394#if FAST_INTRA_SHVC
     
    10321032  Void      setUseFastIntraScalable         ( Bool  b )      { m_useFastIntraScalable = b; }
    10331033#endif
    1034 #if VPS_EXTN_DIRECT_REF_LAYERS
     1034
    10351035  Int       getNumDirectRefLayers           ()                              { return m_numDirectRefLayers;      }
    10361036  Void      setNumDirectRefLayers           (Int num)                       { m_numDirectRefLayers = num;       }
     
    10621062  Bool      getMotionPredEnabledFlag        (Int layerIdx)                  { return m_motionPredEnabledFlag[layerIdx];  }
    10631063  Void      setMotionPredEnabledFlag        (Int layerIdx,Bool flag)        { m_motionPredEnabledFlag[layerIdx] = flag;  }
    1064 #endif
     1064
    10651065  Int       getMaxTidIlRefPicsPlus1         ()                              { return m_maxTidIlRefPicsPlus1; }
    10661066  Void      setMaxTidIlRefPicsPlus1         (Int num)                       { m_maxTidIlRefPicsPlus1 = num;  }
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1147 r1148  
    13691369        UInt refLayerIdc = pcSlice->getInterLayerPredLayerIdc(i);
    13701370        UInt refLayerId = pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc);
    1371 #if VPS_EXTN_DIRECT_REF_LAYERS
    13721371        TComList<TComPic*> *cListPic = m_ppcTEncTop[pcSlice->getVPS()->getLayerIdxInVps(m_layerId)]->getRefLayerEnc(refLayerIdc)->getListPic();
    1373 #else
    1374         TComList<TComPic*> *cListPic = m_ppcTEncTop[pcSlice->getVPS()->getLayerIdxInVps(m_layerId)-1]->getListPic();
    1375 #endif
     1372
    13761373        pcSlice->setBaseColPic( *cListPic, refLayerIdc );
    13771374
     
    38743871    {
    38753872#if SVC_EXTENSION
    3876 #if VPS_EXTN_DIRECT_REF_LAYERS
    38773873      if( pcSlice->getRefPic(RefPicList(iRefList), iRefIndex)->isILR(m_layerId) )
    38783874      {
     
    38963892#endif
    38973893      }
    3898 #endif
     3894
    38993895      if( pcSlice->getEnableTMVPFlag() && iRefList == 1 - pcSlice->getColFromL0Flag() && iRefIndex == pcSlice->getColRefIdx() )
    39003896      {
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r1147 r1148  
    624624          Bool zeroPhase = getPPS()->hasZeroResamplingPhase(m_cVPS.getRefLayerId(m_layerId, i));
    625625
    626 #if VPS_EXTN_DIRECT_REF_LAYERS
    627626          TEncTop *pcEncTopBase = (TEncTop *)getRefLayerEnc( i );
    628 #else
    629           TEncTop *pcEncTopBase = (TEncTop *)getLayerEnc( m_layerId-1 );
    630 #endif
    631627#if O0194_DIFFERENT_BITDEPTH_EL_BL
    632628          UInt refLayerId = m_cVPS.getRefLayerId(m_layerId, i);
     
    690686          Bool zeroPhase = getPPS()->hasZeroResamplingPhase(m_cVPS.getRefLayerId(m_layerId, i));
    691687
    692 #if VPS_EXTN_DIRECT_REF_LAYERS
    693688          TEncTop *pcEncTopBase = (TEncTop *)getRefLayerEnc( i );
    694 #else
    695           TEncTop *pcEncTopBase = (TEncTop *)getLayerEnc( m_layerId-1 );
    696 #endif
    697689#if O0194_DIFFERENT_BITDEPTH_EL_BL
    698690          UInt refLayerId = m_cVPS.getRefLayerId(m_layerId, i);
     
    14321424
    14331425#if SVC_EXTENSION
    1434 #if VPS_EXTN_DIRECT_REF_LAYERS
    14351426TEncTop* TEncTop::getRefLayerEnc( UInt refLayerIdx )
    14361427{
     
    14421433  return (TEncTop *)getLayerEnc( m_cVPS.getLayerIdxInVps(m_cVPS.getRefLayerId( m_layerId, refLayerIdx )) );
    14431434}
    1444 #endif
    14451435
    14461436#if !REPN_FORMAT_IN_VPS
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.h

    r1147 r1148  
    253253  Void      encode    ( TComPicYuv* pcPicYuvOrg, const InputColourSpaceConversion snrCSC, TComList<TComPicYuv*>& rcListPicYuvRecOut, std::list<AccessUnit>& accessUnitsOut, Int iPicIdInGOP, Bool isTff );
    254254  Void      encodePrep( TComPicYuv* pcPicYuvOrg, TComPicYuv* pcPicYuvTrueOrg, Bool isTff );
    255 #if VPS_EXTN_DIRECT_REF_LAYERS
     255
    256256  TEncTop*  getRefLayerEnc(UInt refLayerIdx);
    257 #endif
     257
    258258#if POC_RESET_IDC_ENCODER
    259259  Int       getPocAdjustmentValue()      { return m_pocAdjustmentValue;}
Note: See TracChangeset for help on using the changeset viewer.