Ignore:
Timestamp:
20 Feb 2013, 23:45:18 (12 years ago)
Author:
seregin
Message:

MV_SCALING_FIX: fix base layer MV scaling

File:
1 edited

Legend:

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

    r38 r40  
    49334933   TComMv cMv;
    49344934
     4935#if MV_SCALING_FIX
     4936   Int iBWidth   = m_pcSlice->getBaseColPic()->getPicYuvRec()->getWidth () - m_pcSlice->getBaseColPic()->getPicYuvRec()->getPicCropLeftOffset() - m_pcSlice->getBaseColPic()->getPicYuvRec()->getPicCropRightOffset();
     4937   Int iBHeight  = m_pcSlice->getBaseColPic()->getPicYuvRec()->getHeight() - m_pcSlice->getBaseColPic()->getPicYuvRec()->getPicCropTopOffset() - m_pcSlice->getBaseColPic()->getPicYuvRec()->getPicCropBottomOffset();
     4938
     4939   Int iEWidth   = m_pcPic->getPicYuvRec()->getWidth() - m_pcPic->getPicYuvRec()->getPicCropLeftOffset() - m_pcPic->getPicYuvRec()->getPicCropRightOffset();
     4940   Int iEHeight  = m_pcPic->getPicYuvRec()->getHeight() - m_pcPic->getPicYuvRec()->getPicCropTopOffset() - m_pcPic->getPicYuvRec()->getPicCropBottomOffset();
     4941#else
    49354942   Int iBWidth   = m_pcSlice->getBaseColPic()->getPicYuvRec()->getWidth();
    49364943   Int iBHeight  = m_pcSlice->getBaseColPic()->getPicYuvRec()->getHeight();
     
    49384945   Int iEWidth   = m_pcPic->getPicYuvRec()->getWidth();
    49394946   Int iEHeight  = m_pcPic->getPicYuvRec()->getHeight();
     4947#endif
    49404948
    49414949   Int iMvX = (rcMvFieldBase.getHor()*iEWidth + (iBWidth/2 -1) * (rcMvFieldBase.getHor() > 0 ? 1: -1) )/iBWidth;
Note: See TracChangeset for help on using the changeset viewer.