Changeset 43 in SHVCSoftware for branches/SHM-1.1-dev/source/Lib/TLibCommon


Ignore:
Timestamp:
21 Feb 2013, 01:11:48 (12 years ago)
Author:
seregin
Message:

MFM_CLIPPING_FIX: set the right picture size for the clipping

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

Legend:

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

    r38 r43  
    565565  UInt uiBaseWidth  = getPicYuvRec()->getWidth();
    566566  UInt uiBaseHeight = getPicYuvRec()->getHeight();
    567 
     567 
    568568  UInt uiWidthInCU       = ( uiBaseWidth % g_uiMaxCUWidth  ) ? uiBaseWidth /g_uiMaxCUWidth  + 1 : uiBaseWidth /g_uiMaxCUWidth;
     569
     570#if MFM_CLIPPING_FIX
     571  uiPelX     = (UInt)Clip3<UInt>(0, getPicYuvRec()->getWidth() - 1, uiPelX);
     572  uiPelY     = (UInt)Clip3<UInt>(0, getPicYuvRec()->getHeight() - 1, uiPelY);
     573#else
    569574  UInt uiHeightInCU      = ( uiBaseHeight% g_uiMaxCUHeight ) ? uiBaseHeight/ g_uiMaxCUHeight + 1 : uiBaseHeight/ g_uiMaxCUHeight;
    570575
    571576  uiPelX     = (UInt)Clip3<UInt>(0, uiWidthInCU * g_uiMaxCUWidth - 1, uiPelX);
    572577  uiPelY     = (UInt)Clip3<UInt>(0, uiHeightInCU * g_uiMaxCUHeight - 1, uiPelY);
     578#endif
    573579 
    574580  uiBaseCUAddr = uiPelY / g_uiMaxCUHeight * uiWidthInCU + uiPelX / g_uiMaxCUWidth;
  • branches/SHM-1.1-dev/source/Lib/TLibCommon/TypeDef.h

    r40 r43  
    5555
    5656#define MV_SCALING_FIX                   1      ///< fixing the base layer MV scaling
     57#define MFM_CLIPPING_FIX                 1      ///< set the right picture size for the clipping
    5758
    5859#define AVC_BASE                         1      ///< YUV BL reading for AVC base SVC
    59 #define REF_IDX_FRAMEWORK                0      ///< inter-layer reference framework
     60#define REF_IDX_FRAMEWORK                1      ///< inter-layer reference framework
    6061
    6162#if AVC_BASE
Note: See TracChangeset for help on using the changeset viewer.