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


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

macro cleanup: O0098_SCALED_REF_LAYER_ID

Location:
branches/SHM-dev/source/App/TAppEncoder
Files:
4 edited

Legend:

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

    r1132 r1147  
    781781  string* cfg_predLayerIdsPtr    [MAX_LAYERS];
    782782#endif
    783 #if O0098_SCALED_REF_LAYER_ID
    784783  string    cfg_refLocationOffsetLayerId [MAX_LAYERS];
    785 #endif
    786784  string    cfg_scaledRefLayerLeftOffset [MAX_LAYERS];
    787785  string    cfg_scaledRefLayerTopOffset [MAX_LAYERS];
     
    800798  string    cfg_phaseHorChroma [MAX_LAYERS];
    801799  string    cfg_phaseVerChroma [MAX_LAYERS];
    802 
    803 #if O0098_SCALED_REF_LAYER_ID
    804800  string*    cfg_refLocationOffsetLayerIdPtr   [MAX_LAYERS];
    805 #endif
    806801  string*    cfg_scaledRefLayerLeftOffsetPtr   [MAX_LAYERS];
    807802  string*    cfg_scaledRefLayerTopOffsetPtr    [MAX_LAYERS];
     
    898893    for(Int i = 0; i < MAX_LAYERS; i++)
    899894    {
    900 #if O0098_SCALED_REF_LAYER_ID
    901895      cfg_refLocationOffsetLayerIdPtr  [layer] = &cfg_refLocationOffsetLayerId[layer];
    902 #endif
    903896      cfg_scaledRefLayerLeftOffsetPtr  [layer] = &cfg_scaledRefLayerLeftOffset[layer];
    904897      cfg_scaledRefLayerTopOffsetPtr   [layer] = &cfg_scaledRefLayerTopOffset[layer];
     
    11201113#endif
    11211114  ("NumRefLocationOffsets%d",                       cfg_numRefLayerLocationOffsets,              0, MAX_LAYERS,  "Number of reference layer offset sets ")
    1122 #if O0098_SCALED_REF_LAYER_ID
    11231115  ("RefLocationOffsetLayerId%d",                    cfg_refLocationOffsetLayerIdPtr,    string(""), MAX_LAYERS, "Layer ID of reference location offset")
    1124 #endif                                             
    11251116  ("ScaledRefLayerLeftOffset%d",                    cfg_scaledRefLayerLeftOffsetPtr,    string(""), MAX_LAYERS, "Horizontal offset of top-left luma sample of scaled base layer picture with respect to"
    11261117                                                                                                                " top-left luma sample of the EL picture, in units of two luma samples")
     
    11311122  ("ScaledRefLayerBottomOffset%d",                  cfg_scaledRefLayerBottomOffsetPtr,  string(""), MAX_LAYERS, "Vertical offset of bottom-right luma sample of scaled base layer picture with respect to"
    11321123                                                                                                                "  bottom-right luma sample of the EL picture, in units of two luma samples")
    1133 #if SVC_EXTENSION
    11341124  ("ScaledRefLayerOffsetPresentFlag%d",         cfg_scaledRefLayerOffsetPresentFlagPtr, string(""), MAX_LAYERS, "presense flag of scaled reference layer offsets")
    11351125  ("RefRegionOffsetPresentFlag%d",                  cfg_refRegionOffsetPresentFlagPtr,  string(""), MAX_LAYERS, "presense flag of reference region offsets")
     
    11471137  ("PhaseHorChroma%d",                              cfg_phaseHorChromaPtr,              string(""), MAX_LAYERS, "chroma shift in the horizontal direction used in resampling proces")
    11481138  ("PhaseVerChroma%d",                              cfg_phaseVerChromaPtr,              string(""), MAX_LAYERS, "chroma shift in the vertical   direction used in resampling proces")
    1149 #endif
    11501139#if Q0074_COLOUR_REMAPPING_SEI
    11511140  ("SEIColourRemappingInfoFileRoot%d",              cfg_colourRemapSEIFileRoot,           string(""), MAX_LAYERS, "Colour Remapping Information SEI parameters file name for layer %d")
     
    20962085    if(m_acLayerCfg[layer].m_numRefLayerLocationOffsets)
    20972086    {
    2098 #if O0098_SCALED_REF_LAYER_ID
    20992087      assert( strcmp(cfg_refLocationOffsetLayerId[layer].c_str(),  ""));
    2100 #endif
     2088
    21012089      Bool srloFlag =
    21022090        strcmp(cfg_scaledRefLayerLeftOffset   [layer].c_str(), "") ||
     
    21212109    Int *tempArray = NULL;   // Contain the value
    21222110
    2123 #if O0098_SCALED_REF_LAYER_ID
    21242111    // ID //
    21252112    if(strcmp(cfg_refLocationOffsetLayerId[layer].c_str(),  ""))
     
    21352122      }
    21362123    }
    2137 #endif
    21382124
    21392125    // Presense Flag //
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp

    r1090 r1147  
    6565  m_aiPad[1] = m_aiPad[0] = 0;
    6666  m_numRefLayerLocationOffsets = 0;
    67 #if O0098_SCALED_REF_LAYER_ID
    6867  ::memset(m_refLocationOffsetLayerId,   0, sizeof(m_refLocationOffsetLayerId));
    69 #endif
    7068  ::memset(m_scaledRefLayerLeftOffset,   0, sizeof(m_scaledRefLayerLeftOffset));
    7169  ::memset(m_scaledRefLayerTopOffset,    0, sizeof(m_scaledRefLayerTopOffset));
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.h

    r1131 r1147  
    9494  TAppEncCfg* m_cAppEncCfg;                                   ///< pointer to app encoder config
    9595  Int       m_numRefLayerLocationOffsets;
    96 #if O0098_SCALED_REF_LAYER_ID
    9796  Int       m_refLocationOffsetLayerId  [MAX_LAYERS];
    98 #endif
    9997  Int       m_scaledRefLayerLeftOffset  [MAX_LAYERS];
    10098  Int       m_scaledRefLayerTopOffset   [MAX_LAYERS];
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1146 r1147  
    766766      for(Int i = 0; i < m_acLayerCfg[layer].m_numRefLayerLocationOffsets; i++)
    767767      {
    768 #if O0098_SCALED_REF_LAYER_ID
    769768        m_acTEncTop[layer].setRefLocationOffsetLayerId          (i, m_acLayerCfg[layer].m_refLocationOffsetLayerId[i]);
    770 #endif
    771769        m_acTEncTop[layer].setScaledRefLayerOffsetPresentFlag   ( i, m_acLayerCfg[layer].m_scaledRefLayerOffsetPresentFlag[i] );
    772770        m_acTEncTop[layer].getScaledRefLayerWindow(i).setWindow ( subWidthC  * m_acLayerCfg[layer].m_scaledRefLayerLeftOffset[i], subWidthC  * m_acLayerCfg[layer].m_scaledRefLayerRightOffset[i],
Note: See TracChangeset for help on using the changeset viewer.