- Timestamp:
- 19 Apr 2014, 00:52:06 (11 years ago)
- Location:
- branches/SHM-6-dev/source/Lib
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibCommon/TComPrediction.cpp
r693 r703 768 768 #if O0215_PHASE_ALIGNMENT 769 769 #if O0194_JOINT_US_BITSHIFT 770 Void TComPrediction::upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window,Bool phaseAlignFlag )771 { 772 m_cUsf.upsampleBasePic( currSlice, refLayerIdc, pcUsPic, pcBasePic, pcTempPic, window,phaseAlignFlag );770 Void TComPrediction::upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, Bool phaseAlignFlag ) 771 { 772 m_cUsf.upsampleBasePic( currSlice, refLayerIdc, pcUsPic, pcBasePic, pcTempPic, phaseAlignFlag ); 773 773 } 774 774 #else -
branches/SHM-6-dev/source/Lib/TLibCommon/TComPrediction.h
r693 r703 121 121 #if O0215_PHASE_ALIGNMENT 122 122 #if O0194_JOINT_US_BITSHIFT 123 Void upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window,Bool phaseAlignFlag );123 Void upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, Bool phaseAlignFlag ); 124 124 #else 125 125 Void upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, Bool phaseAlignFlag ); -
branches/SHM-6-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp
r695 r703 99 99 #if O0215_PHASE_ALIGNMENT 100 100 #if O0194_JOINT_US_BITSHIFT 101 Void TComUpsampleFilter::upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag )102 #else 103 Void TComUpsampleFilter::upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, bool phaseAlignFlag )101 Void TComUpsampleFilter::upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, Bool phaseAlignFlag ) 102 #else 103 Void TComUpsampleFilter::upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, Bool phaseAlignFlag ) 104 104 #endif 105 105 #else … … 116 116 Int i, j; 117 117 118 #if O0194_JOINT_US_BITSHIFT 119 UInt currLayerId = currSlice->getLayerId(); 120 UInt refLayerId = currSlice->getVPS()->getRefLayerId( currLayerId, refLayerIdc ); 121 #endif 122 123 #if O0098_SCALED_REF_LAYER_ID 124 const Window &scalEL = currSlice->getSPS()->getScaledRefLayerWindowForLayer(refLayerId); 125 #else 126 const Window &scalEL = currSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc); 127 #endif 128 118 129 //========== Y component upsampling =========== 119 const Window &scalEL = window;120 121 130 Int widthBL = pcBasePic->getWidth (); 122 131 Int heightBL = pcBasePic->getHeight(); … … 126 135 Int heightEL = pcUsPic->getHeight() - scalEL.getWindowTopOffset() - scalEL.getWindowBottomOffset(); 127 136 Int strideEL = pcUsPic->getStride(); 137 128 138 #if Q0200_CONFORMANCE_BL_SIZE 129 139 const Window &confBL = currSlice->getBaseColPic(refLayerIdc)->getConformanceWindow(); … … 162 172 Int scaleX = g_posScalingFactor[refLayerIdc][0]; 163 173 Int scaleY = g_posScalingFactor[refLayerIdc][1]; 164 165 #if O0194_JOINT_US_BITSHIFT166 UInt currLayerId = currSlice->getLayerId();167 UInt refLayerId = currSlice->getVPS()->getRefLayerId( currLayerId, refLayerIdc );168 #endif169 174 170 175 // non-normative software optimization for certain simple resampling cases … … 419 424 heightBL = pcBasePic->getHeight(); 420 425 #if Q0200_CONFORMANCE_BL_SIZE 421 widthBL -= confBL.getWindowLeftOffset() +confBL.getWindowRightOffset();422 heightBL -= confBL.getWindowBottomOffset() +confBL.getWindowTopOffset();426 widthBL -= confBL.getWindowLeftOffset() + confBL.getWindowRightOffset(); 427 heightBL -= confBL.getWindowBottomOffset() + confBL.getWindowTopOffset(); 423 428 #endif 424 429 widthEL = pcUsPic->getWidth () - scalEL.getWindowLeftOffset() - scalEL.getWindowRightOffset(); -
branches/SHM-6-dev/source/Lib/TLibCommon/TComUpsampleFilter.h
r693 r703 45 45 #if O0215_PHASE_ALIGNMENT 46 46 #if O0194_JOINT_US_BITSHIFT 47 Void upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window,Bool phaseAlignFlag );47 Void upsampleBasePic( TComSlice* currSlice, UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, Bool phaseAlignFlag ); 48 48 #else 49 49 Void upsampleBasePic( UInt refLayerIdc, TComPicYuv* pcUsPic, TComPicYuv* pcBasePic, TComPicYuv* pcTempPic, const Window window, Bool phaseAlignFlag ); -
branches/SHM-6-dev/source/Lib/TLibDecoder/TDecTop.cpp
r697 r703 1587 1587 #if O0194_JOINT_US_BITSHIFT 1588 1588 #if Q0048_CGS_3D_ASYMLUT 1589 m_cPrediction.upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pBaseColRec, pcPic->getPicYuvRec(), scalEL,pcSlice->getVPS()->getPhaseAlignFlag() );1590 #else 1591 m_cPrediction.upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), scalEL,pcSlice->getVPS()->getPhaseAlignFlag() );1589 m_cPrediction.upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pBaseColRec, pcPic->getPicYuvRec(), pcSlice->getVPS()->getPhaseAlignFlag() ); 1590 #else 1591 m_cPrediction.upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), pcSlice->getVPS()->getPhaseAlignFlag() ); 1592 1592 #endif 1593 1593 #else -
branches/SHM-6-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r700 r703 1100 1100 #if O0194_JOINT_US_BITSHIFT 1101 1101 #if Q0048_CGS_3D_ASYMLUT 1102 m_pcPredSearch->upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pBaseColRec, pcPic->getPicYuvRec(), scalEL,pcSlice->getVPS()->getPhaseAlignFlag() );1103 #else 1104 m_pcPredSearch->upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), scalEL,pcSlice->getVPS()->getPhaseAlignFlag() );1102 m_pcPredSearch->upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pBaseColRec, pcPic->getPicYuvRec(), pcSlice->getVPS()->getPhaseAlignFlag() ); 1103 #else 1104 m_pcPredSearch->upsampleBasePic( pcSlice, refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), pcSlice->getVPS()->getPhaseAlignFlag() ); 1105 1105 #endif 1106 1106 #else
Note: See TracChangeset for help on using the changeset viewer.