Changeset 1570 in SHVCSoftware


Ignore:
Timestamp:
20 Jun 2016, 18:26:10 (9 years ago)
Author:
seregin
Message:

port rev 4748

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

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h

    r1569 r1570  
    17421742  Bool             m_deblockingFilterControlPresentFlag;
    17431743  Bool             m_deblockingFilterOverrideEnabledFlag;
    1744   Bool             m_picDisableDeblockingFilterFlag;
     1744  Bool             m_ppsDeblockingFilterDisabledFlag;
    17451745  Int              m_deblockingFilterBetaOffsetDiv2;    //< beta offset for deblocking filter
    17461746  Int              m_deblockingFilterTcOffsetDiv2;      //< tc offset for deblocking filter
     
    18611861  Void                   setDeblockingFilterOverrideEnabledFlag( Bool val )               { m_deblockingFilterOverrideEnabledFlag = val;  }
    18621862  Bool                   getDeblockingFilterOverrideEnabledFlag() const                   { return m_deblockingFilterOverrideEnabledFlag; }
    1863   Void                   setPicDisableDeblockingFilterFlag(Bool val)                      { m_picDisableDeblockingFilterFlag = val;       } //!< set offset for deblocking filter disabled
    1864   Bool                   getPicDisableDeblockingFilterFlag() const                        { return m_picDisableDeblockingFilterFlag;      } //!< get offset for deblocking filter disabled
     1863  Void                   setPPSDeblockingFilterDisabledFlag(Bool val)                     { m_ppsDeblockingFilterDisabledFlag = val;      } //!< set offset for deblocking filter disabled
     1864  Bool                   getPPSDeblockingFilterDisabledFlag() const                       { return m_ppsDeblockingFilterDisabledFlag;     } //!< get offset for deblocking filter disabled
    18651865  Void                   setDeblockingFilterBetaOffsetDiv2(Int val)                       { m_deblockingFilterBetaOffsetDiv2 = val;       } //!< set beta offset for deblocking filter
    18661866  Int                    getDeblockingFilterBetaOffsetDiv2() const                        { return m_deblockingFilterBetaOffsetDiv2;      } //!< get beta offset for deblocking filter
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1569 r1570  
    308308  {
    309309    READ_FLAG( uiCode, "deblocking_filter_override_enabled_flag" );    pcPPS->setDeblockingFilterOverrideEnabledFlag( uiCode ? true : false );
    310     READ_FLAG( uiCode, "pps_disable_deblocking_filter_flag" );         pcPPS->setPicDisableDeblockingFilterFlag(uiCode ? true : false );
    311     if(!pcPPS->getPicDisableDeblockingFilterFlag())
     310    READ_FLAG( uiCode, "pps_deblocking_filter_disabled_flag" );        pcPPS->setPPSDeblockingFilterDisabledFlag(uiCode ? true : false );
     311    if(!pcPPS->getPPSDeblockingFilterDisabledFlag())
    312312    {
    313313      READ_SVLC ( iCode, "pps_beta_offset_div2" );                     pcPPS->setDeblockingFilterBetaOffsetDiv2( iCode );
     
    18681868      if(pcSlice->getDeblockingFilterOverrideFlag())
    18691869      {
    1870         READ_FLAG ( uiCode, "slice_disable_deblocking_filter_flag" );   pcSlice->setDeblockingFilterDisable(uiCode ? 1 : 0);
     1870        READ_FLAG ( uiCode, "slice_deblocking_filter_disabled_flag" );   pcSlice->setDeblockingFilterDisable(uiCode ? 1 : 0);
    18711871        if(!pcSlice->getDeblockingFilterDisable())
    18721872        {
     
    18811881      else
    18821882      {
    1883         pcSlice->setDeblockingFilterDisable   ( pps->getPicDisableDeblockingFilterFlag() );
     1883        pcSlice->setDeblockingFilterDisable       ( pps->getPPSDeblockingFilterDisabledFlag() );
    18841884        pcSlice->setDeblockingFilterBetaOffsetDiv2( pps->getDeblockingFilterBetaOffsetDiv2() );
    18851885        pcSlice->setDeblockingFilterTcOffsetDiv2  ( pps->getDeblockingFilterTcOffsetDiv2() );
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1569 r1570  
    227227  {
    228228    WRITE_FLAG( pcPPS->getDeblockingFilterOverrideEnabledFlag() ? 1 : 0,  "deblocking_filter_override_enabled_flag" );
    229     WRITE_FLAG( pcPPS->getPicDisableDeblockingFilterFlag() ? 1 : 0,       "pps_disable_deblocking_filter_flag" );
    230     if(!pcPPS->getPicDisableDeblockingFilterFlag())
     229    WRITE_FLAG( pcPPS->getPPSDeblockingFilterDisabledFlag() ? 1 : 0,      "pps_deblocking_filter_disabled_flag" );
     230    if(!pcPPS->getPPSDeblockingFilterDisabledFlag())
    231231    {
    232232      WRITE_SVLC( pcPPS->getDeblockingFilterBetaOffsetDiv2(),             "pps_beta_offset_div2" );
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r1549 r1570  
    37153715    {
    37163716      pcPic->getSlice(i)->setDeblockingFilterOverrideFlag(false);
    3717       pcPic->getSlice(i)->setDeblockingFilterDisable(        pcPic->getSlice(i)->getPPS()->getPicDisableDeblockingFilterFlag() );
     3717      pcPic->getSlice(i)->setDeblockingFilterDisable(        pcPic->getSlice(i)->getPPS()->getPPSDeblockingFilterDisabledFlag() );
    37183718      pcPic->getSlice(i)->setDeblockingFilterBetaOffsetDiv2( pcPic->getSlice(i)->getPPS()->getDeblockingFilterBetaOffsetDiv2() );
    37193719      pcPic->getSlice(i)->setDeblockingFilterTcOffsetDiv2(   pcPic->getSlice(i)->getPPS()->getDeblockingFilterTcOffsetDiv2()   );
     
    38253825    {
    38263826      pcPic->getSlice(i)->setDeblockingFilterOverrideFlag(false);
    3827       pcPic->getSlice(i)->setDeblockingFilterDisable(        pcPic->getSlice(i)->getPPS()->getPicDisableDeblockingFilterFlag() );
     3827      pcPic->getSlice(i)->setDeblockingFilterDisable(        pcPic->getSlice(i)->getPPS()->getPPSDeblockingFilterDisabledFlag() );
    38283828      pcPic->getSlice(i)->setDeblockingFilterBetaOffsetDiv2( pcPic->getSlice(i)->getPPS()->getDeblockingFilterBetaOffsetDiv2() );
    38293829      pcPic->getSlice(i)->setDeblockingFilterTcOffsetDiv2(   pcPic->getSlice(i)->getPPS()->getDeblockingFilterTcOffsetDiv2()   );
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncSlice.cpp

    r1567 r1570  
    492492  {
    493493    rpcSlice->setDeblockingFilterOverrideFlag( rpcSlice->getPPS()->getDeblockingFilterOverrideEnabledFlag() );
    494     rpcSlice->setDeblockingFilterDisable( rpcSlice->getPPS()->getPicDisableDeblockingFilterFlag() );
     494    rpcSlice->setDeblockingFilterDisable( rpcSlice->getPPS()->getPPSDeblockingFilterDisabledFlag() );
    495495    if ( !rpcSlice->getDeblockingFilterDisable())
    496496    {
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r1569 r1570  
    13021302  {
    13031303    m_cPPS.setDeblockingFilterOverrideEnabledFlag(true);
    1304     m_cPPS.setPicDisableDeblockingFilterFlag(false);
     1304    m_cPPS.setPPSDeblockingFilterDisabledFlag(false);
    13051305  }
    13061306  else
    13071307  {
    13081308    m_cPPS.setDeblockingFilterOverrideEnabledFlag( !getLoopFilterOffsetInPPS() );
    1309     m_cPPS.setPicDisableDeblockingFilterFlag( getLoopFilterDisable() );
    1310   }
    1311 
    1312   if (! m_cPPS.getPicDisableDeblockingFilterFlag())
     1309    m_cPPS.setPPSDeblockingFilterDisabledFlag( getLoopFilterDisable() );
     1310  }
     1311
     1312  if (! m_cPPS.getPPSDeblockingFilterDisabledFlag())
    13131313  {
    13141314    m_cPPS.setDeblockingFilterBetaOffsetDiv2( getLoopFilterBetaOffset() );
     
    13231323  // deblockingFilterControlPresentFlag is true if any of the settings differ from the inferred values:
    13241324  const Bool deblockingFilterControlPresentFlag = m_cPPS.getDeblockingFilterOverrideEnabledFlag() ||
    1325                                                   m_cPPS.getPicDisableDeblockingFilterFlag()      ||
     1325                                                  m_cPPS.getPPSDeblockingFilterDisabledFlag()      ||
    13261326                                                  m_cPPS.getDeblockingFilterBetaOffsetDiv2() != 0 ||
    13271327                                                  m_cPPS.getDeblockingFilterTcOffsetDiv2() != 0;
Note: See TracChangeset for help on using the changeset viewer.