Changeset 704 in SHVCSoftware for branches/SHM-6-dev


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
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-6-dev/source/App/TAppDecoder/TAppDecTop.cpp

    r702 r704  
    702702          }
    703703#endif
    704 #if REPN_FORMAT_IN_VPS && !Q0200_CONFORMANCE_BL_SIZE
     704#if REPN_FORMAT_IN_VPS
    705705          UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc();
    706706          Int xScal =  TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc );
     
    818818#endif
    819819
    820 #if REPN_FORMAT_IN_VPS && !Q0200_CONFORMANCE_BL_SIZE
     820#if REPN_FORMAT_IN_VPS
    821821          UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc();
    822822          Int xScal =  TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc );
     
    934934          }
    935935#endif
    936 #if REPN_FORMAT_IN_VPS && !Q0200_CONFORMANCE_BL_SIZE
     936#if REPN_FORMAT_IN_VPS
    937937          UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc();
    938938          Int xScal =  TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc );
     
    10521052          }
    10531053#endif
    1054 #if REPN_FORMAT_IN_VPS && !Q0200_CONFORMANCE_BL_SIZE
     1054#if REPN_FORMAT_IN_VPS
    10551055          UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc();
    10561056          Int xScal =  TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc );
     
    11601160    const Window &defDisp = m_respectDefDispWindow ? pic->getDefDisplayWindow() : Window();
    11611161    Int xScal =  1, yScal = 1;
    1162 #if REPN_FORMAT_IN_VPS && !Q0200_CONFORMANCE_BL_SIZE
     1162#if REPN_FORMAT_IN_VPS
    11631163    UInt chromaFormatIdc = pic->getSlice(0)->getChromaFormatIdc();
    11641164    xScal = TComSPS::getWinUnitX( chromaFormatIdc );
  • 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.