Changeset 175 in SHVCSoftware for branches/SHM-2.0-dev/source/App


Ignore:
Timestamp:
9 May 2013, 22:48:02 (12 years ago)
Author:
qualcomm
Message:

Scaled reference layer offsets in SPS (MACRO: SCALED_REF_LAYER_OFFSETS)

M0309: Signal scaled reference layer offsets in the SPS and use it for upsampling and MV prediction.

From: Adarsh K. Ramasubramonian <aramasub@…>

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

Legend:

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

    r161 r175  
    400400  ("OutputBitDepthC",       m_outputBitDepthC,   0, "As per OutputBitDepth but for chroma component. (default:InternalBitDepthC)")
    401401  ("InternalBitDepthC",     m_internalBitDepthC, 0, "As per InternalBitDepth but for chroma component. (default:IntrenalBitDepth)")
    402 
     402#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"
     404                                                                 " 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"
     406                                                                 " 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"
     408                                                                 " 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"
     410                                                                 " bottom-right luma sample of the EL picture, in units of two luma samples")
     411#endif
    403412#if AVC_BASE
    404413  ("AvcBase",                 m_avcBaseLayerFlag,     0, "AVC_BASElayer_flag")
  • branches/SHM-2.0-dev/source/App/TAppEncoder/TAppEncCfg.h

    r154 r175  
    361361  Int*      m_constantPicRateIdc;                                ///< Indicates constant picture rate idc for various sub-layers
    362362#endif
    363   #
     363#if SCALED_REF_LAYER_OFFSETS
     364  Int       m_scaledRefLayerLeftOffset;
     365  Int       m_scaledRefLayerTopOffset;
     366  Int       m_scaledRefLayerRightOffset;
     367  Int       m_scaledRefLayerBottomOffset;
     368#endif 
    364369public:
    365370  TAppEncCfg();
  • branches/SHM-2.0-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r174 r175  
    418418    m_acTEncTop[layer].setElRapSliceTypeB(layer == 0? 0 : m_elRapSliceBEnabled);
    419419#endif
     420#if SCALED_REF_LAYER_OFFSETS
     421    if( layer > 0 )
     422    {
     423      m_acTEncTop[layer].getScaledRefLayerWindow().setWindow( 2*m_scaledRefLayerLeftOffset, 2*m_scaledRefLayerRightOffset,
     424                                                  2*m_scaledRefLayerTopOffset, 2*m_scaledRefLayerBottomOffset); 
     425    }
     426#endif
    420427  }
    421428}
Note: See TracChangeset for help on using the changeset viewer.