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


Ignore:
Timestamp:
10 Aug 2015, 20:28:49 (10 years ago)
Author:
seregin
Message:

scaling factors 1x

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/CommonDef.h

    r1394 r1431  
    121121static const Double MAX_DOUBLE =                             1.7e+308; ///< max. value of Double-type value
    122122
     123#if SVC_EXTENSION
     124static const Int    POS_SCALING_FACTOR_1X =                     65536; ///< position scaling factor equal to 1x
     125static const Int    MV_SCALING_FACTOR_1X =                      4096 ; ///< MV scaling factor equal to 1x
     126#endif
     127
    123128// ====================================================================================================================
    124129// Coding tool configuration
  • branches/SHM-dev/source/Lib/TLibCommon/TComMv.h

    r1408 r1431  
    167167  const TComMv scaleMv( Int iScaleX, Int iScaleY ) const
    168168  {
    169     Int mvx = iScaleX == 4096 ? getHor() : Clip3( -32768, 32767, (iScaleX * getHor() + 127 + (iScaleX * getHor() < 0)) >> 8 );
    170     Int mvy = iScaleY == 4096 ? getVer() : Clip3( -32768, 32767, (iScaleY * getVer() + 127 + (iScaleY * getVer() < 0)) >> 8 );
     169    Int mvx = iScaleX == MV_SCALING_FACTOR_1X ? getHor() : Clip3( -32768, 32767, (iScaleX * getHor() + 127 + (iScaleX * getHor() < 0)) >> 8 );
     170    Int mvy = iScaleY == MV_SCALING_FACTOR_1X ? getVer() : Clip3( -32768, 32767, (iScaleY * getVer() + 127 + (iScaleY * getVer() < 0)) >> 8 );
    171171    return TComMv( mvx, mvy );
    172172  }
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp

    r1419 r1431  
    510510        // motion resampling constraint
    511511        // Allow maximum of one motion resampling process for direct reference layers, and use motion inter-layer prediction from the same layer as texture inter-layer prediction
    512         if( !( m_pcPic->getPosScalingFactor(refLayerIdc, 0) == 65536 && m_pcPic->getPosScalingFactor(refLayerIdc, 1) == 65536 ) || !scalingOffset || !sameBitDepths
     512        if( !( m_pcPic->getPosScalingFactor(refLayerIdc, 0) == POS_SCALING_FACTOR_1X && m_pcPic->getPosScalingFactor(refLayerIdc, 1) == POS_SCALING_FACTOR_1X ) || !scalingOffset || !sameBitDepths
    513513#if CGS_3D_ASYMLUT
    514514          || getPPS()->getCGSFlag()
  • branches/SHM-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp

    r1430 r1431  
    113113
    114114  // non-normative software optimization for certain simple resampling cases
    115   if( scaleX == 65536 && scaleY == 65536 ) // ratio 1x
     115  if( scaleX == POS_SCALING_FACTOR_1X && scaleY == POS_SCALING_FACTOR_1X ) // ratio 1x
    116116  {
    117117    piSrcY = piSrcBufY;
Note: See TracChangeset for help on using the changeset viewer.