Changeset 254 in SHVCSoftware for branches/SHM-2.1-multilayers-dev/source/Lib


Ignore:
Timestamp:
3 Jun 2013, 20:38:44 (12 years ago)
Author:
seregin
Message:

include reference layerId into scaling MV function

Location:
branches/SHM-2.1-multilayers-dev/source/Lib/TLibCommon
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-2.1-multilayers-dev/source/Lib/TLibCommon/TComDataCU.cpp

    r253 r254  
    43194319}
    43204320
    4321 Void TComDataCU::scaleBaseMV( TComMvField& rcMvFieldEnhance, TComMvField& rcMvFieldBase )
     4321Void TComDataCU::scaleBaseMV( UInt refLayerIdc, TComMvField& rcMvFieldEnhance, TComMvField& rcMvFieldBase )
    43224322{
    43234323  TComMvField cMvFieldBase;
    43244324  TComMv cMv;
    43254325#if SIMPLIFIED_MV_POS_SCALING
    4326   cMv = rcMvFieldBase.getMv().scaleMv( g_mvScalingFactor[m_layerId][0], g_mvScalingFactor[m_layerId][1] );
     4326  cMv = rcMvFieldBase.getMv().scaleMv( g_mvScalingFactor[refLayerIdc][0], g_mvScalingFactor[refLayerIdc][1] );
    43274327#else
    43284328  const Window &confBL = m_pcSlice->getBaseColPic()->getPicYuvRec()->getConformanceWindow();
  • branches/SHM-2.1-multilayers-dev/source/Lib/TLibCommon/TComDataCU.h

    r253 r254  
    556556  TComDataCU*   getBaseColCU( UInt refLayerIdc, UInt uiCuAbsPartIdx, UInt &uiCUAddrBase, UInt &uiAbsPartIdxBase );
    557557  TComDataCU*   getBaseColCU( UInt refLayerIdc, UInt uiPelX, UInt uiPelY, UInt &uiCUAddrBase, UInt &uiAbsPartIdxBase );
    558   Void          scaleBaseMV( TComMvField& rcMvFieldEnhance, TComMvField& rcMvFieldBase );
     558  Void          scaleBaseMV( UInt refLayerIdc, TComMvField& rcMvFieldEnhance, TComMvField& rcMvFieldBase );
    559559#endif
    560560};
  • branches/SHM-2.1-multilayers-dev/source/Lib/TLibCommon/TComPic.cpp

    r253 r254  
    614614          TComMvField sMvFieldBase, sMvField;
    615615          pcColCU->getMvField( pcColCU, baseAbsPartIdx, (RefPicList)refPicList, sMvFieldBase);
    616           pcCUDes->scaleBaseMV( sMvField, sMvFieldBase );
     616          pcCUDes->scaleBaseMV( refLayerIdc, sMvField, sMvFieldBase );
    617617
    618618          pcCUDes->getCUMvField((RefPicList)refPicList)->setMvField(sMvField, absPartIdx);
Note: See TracChangeset for help on using the changeset viewer.