Changeset 1431 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon
- Timestamp:
- 10 Aug 2015, 20:28:49 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/CommonDef.h
r1394 r1431 121 121 static const Double MAX_DOUBLE = 1.7e+308; ///< max. value of Double-type value 122 122 123 #if SVC_EXTENSION 124 static const Int POS_SCALING_FACTOR_1X = 65536; ///< position scaling factor equal to 1x 125 static const Int MV_SCALING_FACTOR_1X = 4096 ; ///< MV scaling factor equal to 1x 126 #endif 127 123 128 // ==================================================================================================================== 124 129 // Coding tool configuration -
branches/SHM-dev/source/Lib/TLibCommon/TComMv.h
r1408 r1431 167 167 const TComMv scaleMv( Int iScaleX, Int iScaleY ) const 168 168 { 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 ); 171 171 return TComMv( mvx, mvy ); 172 172 } -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1419 r1431 510 510 // motion resampling constraint 511 511 // 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 || !sameBitDepths512 if( !( m_pcPic->getPosScalingFactor(refLayerIdc, 0) == POS_SCALING_FACTOR_1X && m_pcPic->getPosScalingFactor(refLayerIdc, 1) == POS_SCALING_FACTOR_1X ) || !scalingOffset || !sameBitDepths 513 513 #if CGS_3D_ASYMLUT 514 514 || getPPS()->getCGSFlag() -
branches/SHM-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp
r1430 r1431 113 113 114 114 // non-normative software optimization for certain simple resampling cases 115 if( scaleX == 65536 && scaleY == 65536) // ratio 1x115 if( scaleX == POS_SCALING_FACTOR_1X && scaleY == POS_SCALING_FACTOR_1X ) // ratio 1x 116 116 { 117 117 piSrcY = piSrcBufY;
Note: See TracChangeset for help on using the changeset viewer.