Changeset 704 in SHVCSoftware for branches/SHM-6-dev/source/Lib/TLibDecoder


Ignore:
Timestamp:
19 Apr 2014, 06:07:35 (11 years ago)
Author:
samsung
Message:

Q0200_CONFORMANCE_BL_SIZE synchronized with REPN_FORMAT_IN_VPS

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

Legend:

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

    r688 r704  
    658658  {
    659659    Window &conf = pcSPS->getConformanceWindow();
    660 #if REPN_FORMAT_IN_VPS && !Q0200_CONFORMANCE_BL_SIZE
     660#if REPN_FORMAT_IN_VPS
    661661    READ_UVLC(   uiCode, "conf_win_left_offset" );               conf.setWindowLeftOffset  ( uiCode );
    662662    READ_UVLC(   uiCode, "conf_win_right_offset" );              conf.setWindowRightOffset ( uiCode );
  • branches/SHM-6-dev/source/Lib/TLibDecoder/TDecTop.cpp

    r703 r704  
    15561556        Int heightBL  = pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec()->getHeight();
    15571557#if Q0200_CONFORMANCE_BL_SIZE
    1558         const Window &confBL = pcSlice->getBaseColPic(refLayerIdc)->getConformanceWindow();
     1558        Window &confBL = pcSlice->getBaseColPic(refLayerIdc)->getConformanceWindow();
     1559#if REPN_FORMAT_IN_VPS
     1560UInt chromaFormatIdc =  pcSlice->getBaseColPic(refLayerIdc)->getSlice(0)->getChromaFormatIdc();
     1561Int xScal = TComSPS::getWinUnitX( chromaFormatIdc );
     1562Int yScal = TComSPS::getWinUnitY( chromaFormatIdc );
     1563confBL.setWindowBottomOffset(confBL.getWindowBottomOffset()*yScal);
     1564confBL.setWindowTopOffset(confBL.getWindowTopOffset()*yScal);
     1565confBL.setWindowLeftOffset(confBL.getWindowLeftOffset()*xScal);
     1566confBL.setWindowRightOffset(confBL.getWindowRightOffset()*xScal);
     1567#endif
    15591568        widthBL  -= confBL.getWindowLeftOffset() + confBL.getWindowRightOffset();
    15601569        heightBL -= confBL.getWindowTopOffset() + confBL.getWindowBottomOffset();
     
    16191628        }
    16201629        pcSlice->setFullPelBaseRec ( refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc) );
     1630#if REPN_FORMAT_IN_VPS && Q0200_CONFORMANCE_BL_SIZE
     1631confBL.setWindowBottomOffset(confBL.getWindowBottomOffset()/yScal);
     1632confBL.setWindowTopOffset(confBL.getWindowTopOffset()/yScal);
     1633confBL.setWindowLeftOffset(confBL.getWindowLeftOffset()/xScal);
     1634confBL.setWindowRightOffset(confBL.getWindowRightOffset()/xScal);
     1635#endif
    16211636#endif
    16221637      }
Note: See TracChangeset for help on using the changeset viewer.