Ignore:
Timestamp:
11 May 2013, 04:40:57 (12 years ago)
Author:
qualcomm
Message:

Configuration file support related to r175.

Added configuation file support for specifying scaled reference layer offsets for more than one enhancement layer.

From: Adarsh K. Ramasubramonian <aramasub@…>

File:
1 edited

Legend:

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

    r175 r184  
    328328  string* cfg_refLayerIdsPtr   [MAX_LAYERS];
    329329#endif
     330#if SCALED_REF_LAYER_OFFSETS
     331  Int*    cfg_scaledRefLayerLeftOffset [MAX_LAYERS];
     332  Int*    cfg_scaledRefLayerTopOffset [MAX_LAYERS];
     333  Int*    cfg_scaledRefLayerRightOffset [MAX_LAYERS];
     334  Int*    cfg_scaledRefLayerBottomOffset [MAX_LAYERS];
     335#endif
    330336  for(UInt layer = 0; layer < MAX_LAYERS; layer++)
    331337  {
     
    341347    cfg_numDirectRefLayers  [layer] = &m_acLayerCfg[layer].m_numDirectRefLayers;
    342348    cfg_refLayerIdsPtr      [layer]  = &cfg_refLayerIds[layer];
     349#endif
     350#if SCALED_REF_LAYER_OFFSETS
     351    cfg_scaledRefLayerLeftOffset  [layer] = &m_acLayerCfg[layer].m_scaledRefLayerLeftOffset;
     352    cfg_scaledRefLayerTopOffset   [layer] = &m_acLayerCfg[layer].m_scaledRefLayerTopOffset;
     353    cfg_scaledRefLayerRightOffset [layer] = &m_acLayerCfg[layer].m_scaledRefLayerRightOffset;
     354    cfg_scaledRefLayerBottomOffset[layer] = &m_acLayerCfg[layer].m_scaledRefLayerBottomOffset;
    343355#endif
    344356  }
     
    401413  ("InternalBitDepthC",     m_internalBitDepthC, 0, "As per InternalBitDepth but for chroma component. (default:IntrenalBitDepth)")
    402414#if SCALED_REF_LAYER_OFFSETS
    403   ("ScaledRefLayerLeftOffset",   m_scaledRefLayerLeftOffset,  0, "Horizontal offset of top-left luma sample of scaled base layer picture with respect to"
     415  ("ScaledRefLayerLeftOffset%d",   cfg_scaledRefLayerLeftOffset,  0, MAX_LAYERS, "Horizontal offset of top-left luma sample of scaled base layer picture with respect to"
    404416                                                                 " top-left luma sample of the EL picture, in units of two luma samples")
    405   ("ScaledRefLayerTopOffset",    m_scaledRefLayerTopOffset,   0,   "Vertical offset of top-left luma sample of scaled base layer picture with respect to"
     417  ("ScaledRefLayerTopOffset%d",    cfg_scaledRefLayerTopOffset,   0, MAX_LAYERS,   "Vertical offset of top-left luma sample of scaled base layer picture with respect to"
    406418                                                                 " top-left luma sample of the EL picture, in units of two luma samples")
    407   ("ScaledRefLayerRightOffset",  m_scaledRefLayerRightOffset, 0, "Horizontal offset of bottom-right luma sample of scaled base layer picture with respect to"
     419  ("ScaledRefLayerRightOffset%d",  cfg_scaledRefLayerRightOffset, 0, MAX_LAYERS, "Horizontal offset of bottom-right luma sample of scaled base layer picture with respect to"
    408420                                                                 " bottom-right luma sample of the EL picture, in units of two luma samples")
    409   ("ScaledRefLayerBottomOffset", m_scaledRefLayerBottomOffset,0, "Vertical offset of bottom-right luma sample of scaled base layer picture with respect to"
     421  ("ScaledRefLayerBottomOffset%d", cfg_scaledRefLayerBottomOffset,0, MAX_LAYERS, "Vertical offset of bottom-right luma sample of scaled base layer picture with respect to"
    410422                                                                 " bottom-right luma sample of the EL picture, in units of two luma samples")
    411423#endif
Note: See TracChangeset for help on using the changeset viewer.