Changeset 1148 in SHVCSoftware for branches/SHM-dev/source/App


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/App/TAppEncoder
Files:
3 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
Note: See TracChangeset for help on using the changeset viewer.