Changeset 175 in SHVCSoftware for branches/SHM-2.0-dev/source/Lib/TLibEncoder/TEncGOP.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/TLibEncoder/TEncGOP.cpp
r174 r175 690 690 #if SVC_UPSAMPLING 691 691 if ( pcPic->isSpatialEnhLayer()) 692 { 692 { 693 #if SCALED_REF_LAYER_OFFSETS 694 m_pcPredSearch->upsampleBasePic( pcPic->getFullPelBaseRec(), pcSlice->getBaseColPic()->getPicYuvRec(), pcPic->getPicYuvRec(), pcSlice->getSPS()->getScaledRefLayerWindow() ); 695 #else 693 696 m_pcPredSearch->upsampleBasePic( pcPic->getFullPelBaseRec(), pcSlice->getBaseColPic()->getPicYuvRec(), pcPic->getPicYuvRec() ); 697 #endif 694 698 } 695 699 else … … 976 980 if (m_layerId > 0) 977 981 { 982 #if SCALED_REF_LAYER_OFFSETS 983 const Window &scalEL = m_pcEncTop->getScaledRefLayerWindow(); 984 985 Int widthBL = pcSlice->getBaseColPic()->getPicYuvRec()->getWidth(); 986 Int heightBL = pcSlice->getBaseColPic()->getPicYuvRec()->getHeight(); 987 988 Int widthEL = pcPic->getPicYuvRec()->getWidth() - scalEL.getWindowLeftOffset() - scalEL.getWindowRightOffset(); 989 Int heightEL = pcPic->getPicYuvRec()->getHeight() - scalEL.getWindowTopOffset() - scalEL.getWindowBottomOffset(); 990 #else 978 991 const Window &confBL = pcSlice->getBaseColPic()->getPicYuvRec()->getConformanceWindow(); 979 992 const Window &confEL = pcPic->getPicYuvRec()->getConformanceWindow(); … … 984 997 Int widthEL = pcPic->getPicYuvRec()->getWidth() - confEL.getWindowLeftOffset() - confEL.getWindowRightOffset(); 985 998 Int heightEL = pcPic->getPicYuvRec()->getHeight() - confEL.getWindowTopOffset() - confEL.getWindowBottomOffset(); 986 999 #endif 987 1000 g_mvScalingFactor[m_layerId][0] = Clip3(-4096, 4095, ((widthEL << 8) + (widthBL >> 1)) / widthBL); 988 1001 g_mvScalingFactor[m_layerId][1] = Clip3(-4096, 4095, ((heightEL << 8) + (heightBL >> 1)) / heightBL);
Note: See TracChangeset for help on using the changeset viewer.