Ignore:
Timestamp:
5 Jun 2013, 09:06:22 (12 years ago)
Author:
seregin
Message:

TMVP setting fix, encoder speed up fix, and other minor corrections

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

Legend:

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

    r259 r260  
    576576      m_activeNumILRRefIdx = numInterLayerRPSPics;
    577577    }
    578 #if MAX_ONE_RESAMPLING_DIRECT_LAYERS
     578#if MAX_ONE_RESAMPLING_DIRECT_LAYERS && SIMPLIFIED_MV_POS_SCALING
    579579    if( m_pcVPS->getScalabilityMask(1) )
    580580    {
  • branches/SHM-2.1-multilayers-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp

    r255 r260  
    127127  Pel* piDstV;
    128128
     129#if SIMPLIFIED_MV_POS_SCALING
    129130  Int scaleX = g_posScalingFactor[refLayerIdc][0];
    130131  Int scaleY = g_posScalingFactor[refLayerIdc][1];
     132#else
     133  Int   scaleX     = ( ( widthBL << shiftX ) + ( widthEL >> 1 ) ) / widthEL;
     134  Int   scaleY     = ( ( heightBL << shiftY ) + ( heightEL >> 1 ) ) / heightEL;
     135#endif
    131136
    132137  if( scaleX == 65536 && scaleY == 65536 ) // ratio 1x
     
    334339    shiftYM4 = shiftY - 4;
    335340
     341#if !SIMPLIFIED_MV_POS_SCALING
     342    scaleX     = ( ( widthBL << shiftX ) + ( widthEL >> 1 ) ) / widthEL;
     343    scaleY     = ( ( heightBL << shiftY ) + ( heightEL >> 1 ) ) / heightEL;
     344#endif
     345
    336346#if ILP_DECODED_PICTURE
    337347    widthEL   = pcUsPic->getWidth () >> 1;
Note: See TracChangeset for help on using the changeset viewer.