Changeset 827 in SHVCSoftware for branches/SHM-dev


Ignore:
Timestamp:
13 Jul 2014, 01:29:28 (10 years ago)
Author:
seregin
Message:

set spatial flag for ILR and fix for MFM centre

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

Legend:

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

    r822 r827  
    34933493  TComPic* baseColPic = m_pcSlice->getBaseColPic(refLayerIdc);
    34943494
    3495   UInt uiPelX = (UInt)Clip3<UInt>(0, m_pcPic->getPicYuvRec()->getWidth()  - 1, pelX + 8);
    3496   UInt uiPelY = (UInt)Clip3<UInt>(0, m_pcPic->getPicYuvRec()->getHeight() - 1, pelY + 8);
     3495  UInt uiPelX = (UInt)Clip3<UInt>(0, m_pcPic->getPicYuvRec()->getWidth()  - 1, pelX);
     3496  UInt uiPelY = (UInt)Clip3<UInt>(0, m_pcPic->getPicYuvRec()->getHeight() - 1, pelY);
     3497
     3498#if REF_IDX_MFM
     3499  // centre of the collocated 16x16 block for motion mapping
     3500  if( motionMapping )
     3501  {
     3502    uiPelX += 8;
     3503    uiPelY += 8;
     3504  }
     3505#endif
    34973506
    34983507#if !LAYER_CTB
  • branches/SHM-dev/source/Lib/TLibCommon/TComPic.cpp

    r822 r827  
    187187  for( Int i = 0; i < MAX_LAYERS; i++ )
    188188  {
    189     if( m_bSpatialEnhLayer[i] )
     189    if( m_bSpatialEnhLayer[i] && m_pcFullPelBaseRec[i] )
    190190    {
    191191      m_pcFullPelBaseRec[i]->destroy();
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r823 r827  
    38663866      TComPic* pcRefPicBL = m_pcBaseColPic[refLayerIdc];
    38673867
     3868      // copy scalability ratio, it is needed to get the corect location for the motion field of the corresponding reference layer block
     3869      pcIlpPic[refLayerIdc]->setSpatialEnhLayerFlag( refLayerIdc, m_pcPic->isSpatialEnhLayer(refLayerIdc) );
     3870
    38683871      pcIlpPic[refLayerIdc]->copyUpsampledPictureYuv( m_pcPic->getFullPelBaseRec( refLayerIdc ), pcIlpPic[refLayerIdc]->getPicYuvRec() );     
    38693872      pcIlpPic[refLayerIdc]->getSlice(0)->setBaseColPic( refLayerIdc, pcRefPicBL );
Note: See TracChangeset for help on using the changeset viewer.