Changeset 255 in SHVCSoftware for branches/SHM-2.1-multilayers-dev/source/Lib/TLibCommon
- Timestamp:
- 3 Jun 2013, 20:51:17 (12 years ago)
- Location:
- branches/SHM-2.1-multilayers-dev/source/Lib/TLibCommon
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-2.1-multilayers-dev/source/Lib/TLibCommon/TComPrediction.cpp
r191 r255 774 774 #if SVC_UPSAMPLING 775 775 #if SCALED_REF_LAYER_OFFSETS 776 Void TComPrediction::upsampleBasePic( TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window)777 { 778 m_cUsf.upsampleBasePic( pcUsPic, pcBasePic, pcTempPic, window);776 Void TComPrediction::upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window) 777 { 778 m_cUsf.upsampleBasePic( refLayerIdc, pcUsPic, pcBasePic, pcTempPic, window); 779 779 } 780 780 #else 781 Void TComPrediction::upsampleBasePic( TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic)782 { 783 m_cUsf.upsampleBasePic( pcUsPic, pcBasePic, pcTempPic);781 Void TComPrediction::upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic) 782 { 783 m_cUsf.upsampleBasePic( refLayerIdc, pcUsPic, pcBasePic, pcTempPic); 784 784 } 785 785 #endif -
branches/SHM-2.1-multilayers-dev/source/Lib/TLibCommon/TComPrediction.h
r191 r255 123 123 #if SVC_UPSAMPLING 124 124 #if SCALED_REF_LAYER_OFFSETS 125 Void upsampleBasePic( TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window );125 Void upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window ); 126 126 #else 127 Void upsampleBasePic( TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic );127 Void upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic ); 128 128 #endif 129 129 #endif -
branches/SHM-2.1-multilayers-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp
r237 r255 74 74 75 75 #if SCALED_REF_LAYER_OFFSETS 76 Void TComUpsampleFilter::upsampleBasePic( TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window )77 #else 78 Void TComUpsampleFilter::upsampleBasePic( TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic )76 Void TComUpsampleFilter::upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window ) 77 #else 78 Void TComUpsampleFilter::upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic ) 79 79 #endif 80 80 { … … 127 127 Pel* piDstV; 128 128 129 if( widthEL == widthBL && heightEL == heightBL ) 129 Int scaleX = g_posScalingFactor[refLayerIdc][0]; 130 Int scaleY = g_posScalingFactor[refLayerIdc][1]; 131 132 if( scaleX == 65536 && scaleY == 65536 ) // ratio 1x 130 133 { 131 134 piSrcY = piSrcBufY - scalEL.getWindowLeftOffset() - scalEL.getWindowTopOffset() * strideEL; … … 196 199 Int shiftYM4 = shiftY - 4; 197 200 198 Int scaleX = ( ( widthBL << shiftX ) + ( widthEL >> 1 ) ) / widthEL;199 Int scaleY = ( ( heightBL << shiftY ) + ( heightEL >> 1 ) ) / heightEL;200 201 201 #if ILP_DECODED_PICTURE 202 202 widthEL = pcUsPic->getWidth (); … … 333 333 shiftXM4 = shiftX - 4; 334 334 shiftYM4 = shiftY - 4; 335 336 scaleX = ( ( widthBL << shiftX ) + ( widthEL >> 1 ) ) / widthEL;337 scaleY = ( ( heightBL << shiftY ) + ( heightEL >> 1 ) ) / heightEL;338 335 339 336 #if ILP_DECODED_PICTURE -
branches/SHM-2.1-multilayers-dev/source/Lib/TLibCommon/TComUpsampleFilter.h
r235 r255 44 44 45 45 #if SCALED_REF_LAYER_OFFSETS 46 Void upsampleBasePic( TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window );46 Void upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window ); 47 47 #else 48 Void upsampleBasePic( TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic );48 Void upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic ); 49 49 #endif 50 50 };
Note: See TracChangeset for help on using the changeset viewer.