Changeset 175 in SHVCSoftware for branches/SHM-2.0-dev/source/Lib/TLibDecoder/TDecTop.cpp
- Timestamp:
- 9 May 2013, 22:48:02 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-2.0-dev/source/Lib/TLibDecoder/TDecTop.cpp
r174 r175 836 836 if ( pcPic->isSpatialEnhLayer()) 837 837 { 838 #if SCALED_REF_LAYER_OFFSETS 839 m_cPrediction.upsampleBasePic( pcPic->getFullPelBaseRec(), pcSlice->getBaseColPic()->getPicYuvRec(), pcPic->getPicYuvRec(), pcSlice->getSPS()->getScaledRefLayerWindow() ); 840 #else 838 841 m_cPrediction.upsampleBasePic( pcPic->getFullPelBaseRec(), pcSlice->getBaseColPic()->getPicYuvRec(), pcPic->getPicYuvRec() ); 842 #endif 839 843 } 840 844 else … … 948 952 if (m_layerId > 0) 949 953 { 954 #if SCALED_REF_LAYER_OFFSETS 955 const Window &scalEL = pcSlice->getSPS()->getScaledRefLayerWindow(); 956 957 Int widthBL = pcSlice->getBaseColPic()->getPicYuvRec()->getWidth(); 958 Int heightBL = pcSlice->getBaseColPic()->getPicYuvRec()->getHeight(); 959 960 Int widthEL = pcPic->getPicYuvRec()->getWidth() - scalEL.getWindowLeftOffset() - scalEL.getWindowRightOffset(); 961 Int heightEL = pcPic->getPicYuvRec()->getHeight() - scalEL.getWindowTopOffset() - scalEL.getWindowBottomOffset(); 962 #else 950 963 const Window &confBL = pcSlice->getBaseColPic()->getPicYuvRec()->getConformanceWindow(); 951 964 const Window &confEL = pcPic->getPicYuvRec()->getConformanceWindow(); … … 956 969 Int widthEL = pcPic->getPicYuvRec()->getWidth() - confEL.getWindowLeftOffset() - confEL.getWindowRightOffset(); 957 970 Int heightEL = pcPic->getPicYuvRec()->getHeight() - confEL.getWindowTopOffset() - confEL.getWindowBottomOffset(); 958 971 #endif 959 972 g_mvScalingFactor[m_layerId][0] = Clip3(-4096, 4095, ((widthEL << 8) + (widthBL >> 1)) / widthBL); 960 973 g_mvScalingFactor[m_layerId][1] = Clip3(-4096, 4095, ((heightEL << 8) + (heightBL >> 1)) / heightBL);
Note: See TracChangeset for help on using the changeset viewer.