Changeset 327 in SHVCSoftware for branches/SHM-3.0-dev/source/Lib
- Timestamp:
- 6 Aug 2013, 17:47:35 (11 years ago)
- Location:
- branches/SHM-3.0-dev/source/Lib/TLibCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.0-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp
r322 r327 176 176 Int phaseY = 0; 177 177 178 #if ROUNDING_OFFSET 179 Int addX = ( ( phaseX * scaleX + 2 ) >> 2 ) + ( 1 << ( shiftX - 5 ) ); 180 Int addY = ( ( phaseY * scaleY + 2 ) >> 2 ) + ( 1 << ( shiftY - 5 ) ); 181 #else 178 182 Int addX = ( ( ( widthBL * phaseX ) << ( shiftX - 2 ) ) + ( widthEL >> 1 ) ) / widthEL + ( 1 << ( shiftX - 5 ) ); 179 183 Int addY = ( ( ( heightBL * phaseY ) << ( shiftY - 2 ) ) + ( heightEL >> 1 ) ) / heightEL+ ( 1 << ( shiftY - 5 ) ); 184 #endif 180 185 181 186 Int deltaX = 4 * phaseX; … … 340 345 phaseY = 1; 341 346 347 #if ROUNDING_OFFSET 348 addX = ( ( phaseX * scaleX + 2 ) >> 2 ) + ( 1 << ( shiftX - 5 ) ); 349 addY = ( ( phaseY * scaleY + 2 ) >> 2 ) + ( 1 << ( shiftY - 5 ) ); 350 #else 342 351 addX = ( ( ( widthBL * phaseX ) << ( shiftX - 2 ) ) + ( widthEL >> 1 ) ) / widthEL + ( 1 << ( shiftX - 5 ) ); 343 352 addY = ( ( ( heightBL * phaseY ) << ( shiftY - 2 ) ) + ( heightEL >> 1 ) ) / heightEL+ ( 1 << ( shiftY - 5 ) ); 353 #endif 344 354 345 355 deltaX = 4 * phaseX; -
branches/SHM-3.0-dev/source/Lib/TLibCommon/TypeDef.h
r326 r327 74 74 #define SVC_COL_BLK 1 ///< get co-located block 75 75 #define SVC_UPSAMPLING 1 ///< upsampling filters 76 #define ROUNDING_OFFSET 1 ///< JCTVC-N0111: upsampling rounding offset using scalling factors 76 77 77 78 #define SIMPLIFIED_MV_POS_SCALING 1 ///< M0133/M0449: inter-layer MV scaling and pixel mapping position calculation
Note: See TracChangeset for help on using the changeset viewer.