Changeset 448 in SHVCSoftware for branches/SHM-4.0-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
8 Nov 2013, 06:17:03 (11 years ago)
Author:
seregin
Message:

remove SCALED_REF_LAYER_OFFSETS macro

Location:
branches/SHM-4.0-dev/source/Lib/TLibDecoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-4.0-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r447 r448  
    835835  assert( uiCode == 0 );
    836836#endif
    837 #if SCALED_REF_LAYER_OFFSETS
    838837  if( pcSPS->getLayerId() > 0 )
    839838  {
     
    849848    }
    850849  }
    851 #endif
    852850#if M0463_VUI_EXT_ILP_REF
    853851  ////   sps_extension_vui_parameters( )
  • branches/SHM-4.0-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r446 r448  
    11591159#endif
    11601160
    1161 #if SCALED_REF_LAYER_OFFSETS
    11621161        const Window &scalEL = pcSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc);
    11631162
     
    11671166        Int widthEL   = pcPic->getPicYuvRec()->getWidth()  - scalEL.getWindowLeftOffset() - scalEL.getWindowRightOffset();
    11681167        Int heightEL  = pcPic->getPicYuvRec()->getHeight() - scalEL.getWindowTopOffset()  - scalEL.getWindowBottomOffset();
    1169 #else
    1170         const Window &confBL = pcSlice->getBaseColPic()->getPicYuvRec()->getConformanceWindow();
    1171         const Window &confEL = pcPic->getPicYuvRec()->getConformanceWindow();
    1172 
    1173         Int widthBL   = pcSlice->getBaseColPic()->getPicYuvRec()->getWidth () - confBL.getWindowLeftOffset() - confBL.getWindowRightOffset();
    1174         Int heightBL  = pcSlice->getBaseColPic()->getPicYuvRec()->getHeight() - confBL.getWindowTopOffset() - confBL.getWindowBottomOffset();
    1175 
    1176         Int widthEL   = pcPic->getPicYuvRec()->getWidth() - confEL.getWindowLeftOffset() - confEL.getWindowRightOffset();
    1177         Int heightEL  = pcPic->getPicYuvRec()->getHeight() - confEL.getWindowTopOffset() - confEL.getWindowBottomOffset();
    1178 #endif
     1168
    11791169        g_mvScalingFactor[refLayerIdc][0] = widthEL  == widthBL  ? 4096 : Clip3(-4096, 4095, ((widthEL  << 8) + (widthBL  >> 1)) / widthBL);
    11801170        g_mvScalingFactor[refLayerIdc][1] = heightEL == heightBL ? 4096 : Clip3(-4096, 4095, ((heightEL << 8) + (heightBL >> 1)) / heightBL);
     
    11861176        if( pcPic->isSpatialEnhLayer(refLayerIdc) )
    11871177        {   
    1188 #if SCALED_REF_LAYER_OFFSETS
    11891178          m_cPrediction.upsampleBasePic( refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), pcSlice->getSPS()->getScaledRefLayerWindow(refLayerIdc) );
    1190 #else
    1191           m_cPrediction.upsampleBasePic( refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec() );
    1192 #endif
    11931179        }
    11941180        else
     
    12681254#endif
    12691255#endif
    1270 
    1271 #endif //SVC_EXTENSION
    1272 
     1256   
    12731257#if N0147_IRAP_ALIGN_FLAG
    12741258    if(  m_layerId > 0 && pcSlice->getVPS()->getCrossLayerIrapAlignFlag())
     
    12851269    }
    12861270#endif
     1271#endif //SVC_EXTENSION
    12871272   
    12881273    // For generalized B
Note: See TracChangeset for help on using the changeset viewer.