Changeset 1570 in SHVCSoftware
- Timestamp:
- 20 Jun 2016, 18:26:10 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1569 r1570 1742 1742 Bool m_deblockingFilterControlPresentFlag; 1743 1743 Bool m_deblockingFilterOverrideEnabledFlag; 1744 Bool m_p icDisableDeblockingFilterFlag;1744 Bool m_ppsDeblockingFilterDisabledFlag; 1745 1745 Int m_deblockingFilterBetaOffsetDiv2; //< beta offset for deblocking filter 1746 1746 Int m_deblockingFilterTcOffsetDiv2; //< tc offset for deblocking filter … … 1861 1861 Void setDeblockingFilterOverrideEnabledFlag( Bool val ) { m_deblockingFilterOverrideEnabledFlag = val; } 1862 1862 Bool getDeblockingFilterOverrideEnabledFlag() const { return m_deblockingFilterOverrideEnabledFlag; } 1863 Void setP icDisableDeblockingFilterFlag(Bool val) { m_picDisableDeblockingFilterFlag = val;} //!< set offset for deblocking filter disabled1864 Bool getP icDisableDeblockingFilterFlag() const { return m_picDisableDeblockingFilterFlag;} //!< get offset for deblocking filter disabled1863 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 1865 1865 Void setDeblockingFilterBetaOffsetDiv2(Int val) { m_deblockingFilterBetaOffsetDiv2 = val; } //!< set beta offset for deblocking filter 1866 1866 Int getDeblockingFilterBetaOffsetDiv2() const { return m_deblockingFilterBetaOffsetDiv2; } //!< get beta offset for deblocking filter -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1569 r1570 308 308 { 309 309 READ_FLAG( uiCode, "deblocking_filter_override_enabled_flag" ); pcPPS->setDeblockingFilterOverrideEnabledFlag( uiCode ? true : false ); 310 READ_FLAG( uiCode, "pps_d isable_deblocking_filter_flag" ); pcPPS->setPicDisableDeblockingFilterFlag(uiCode ? true : false );311 if(!pcPPS->getP icDisableDeblockingFilterFlag())310 READ_FLAG( uiCode, "pps_deblocking_filter_disabled_flag" ); pcPPS->setPPSDeblockingFilterDisabledFlag(uiCode ? true : false ); 311 if(!pcPPS->getPPSDeblockingFilterDisabledFlag()) 312 312 { 313 313 READ_SVLC ( iCode, "pps_beta_offset_div2" ); pcPPS->setDeblockingFilterBetaOffsetDiv2( iCode ); … … 1868 1868 if(pcSlice->getDeblockingFilterOverrideFlag()) 1869 1869 { 1870 READ_FLAG ( uiCode, "slice_d isable_deblocking_filter_flag" ); pcSlice->setDeblockingFilterDisable(uiCode ? 1 : 0);1870 READ_FLAG ( uiCode, "slice_deblocking_filter_disabled_flag" ); pcSlice->setDeblockingFilterDisable(uiCode ? 1 : 0); 1871 1871 if(!pcSlice->getDeblockingFilterDisable()) 1872 1872 { … … 1881 1881 else 1882 1882 { 1883 pcSlice->setDeblockingFilterDisable ( pps->getPicDisableDeblockingFilterFlag() );1883 pcSlice->setDeblockingFilterDisable ( pps->getPPSDeblockingFilterDisabledFlag() ); 1884 1884 pcSlice->setDeblockingFilterBetaOffsetDiv2( pps->getDeblockingFilterBetaOffsetDiv2() ); 1885 1885 pcSlice->setDeblockingFilterTcOffsetDiv2 ( pps->getDeblockingFilterTcOffsetDiv2() ); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1569 r1570 227 227 { 228 228 WRITE_FLAG( pcPPS->getDeblockingFilterOverrideEnabledFlag() ? 1 : 0, "deblocking_filter_override_enabled_flag" ); 229 WRITE_FLAG( pcPPS->getP icDisableDeblockingFilterFlag() ? 1 : 0, "pps_disable_deblocking_filter_flag" );230 if(!pcPPS->getP icDisableDeblockingFilterFlag())229 WRITE_FLAG( pcPPS->getPPSDeblockingFilterDisabledFlag() ? 1 : 0, "pps_deblocking_filter_disabled_flag" ); 230 if(!pcPPS->getPPSDeblockingFilterDisabledFlag()) 231 231 { 232 232 WRITE_SVLC( pcPPS->getDeblockingFilterBetaOffsetDiv2(), "pps_beta_offset_div2" ); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1549 r1570 3715 3715 { 3716 3716 pcPic->getSlice(i)->setDeblockingFilterOverrideFlag(false); 3717 pcPic->getSlice(i)->setDeblockingFilterDisable( pcPic->getSlice(i)->getPPS()->getP icDisableDeblockingFilterFlag() );3717 pcPic->getSlice(i)->setDeblockingFilterDisable( pcPic->getSlice(i)->getPPS()->getPPSDeblockingFilterDisabledFlag() ); 3718 3718 pcPic->getSlice(i)->setDeblockingFilterBetaOffsetDiv2( pcPic->getSlice(i)->getPPS()->getDeblockingFilterBetaOffsetDiv2() ); 3719 3719 pcPic->getSlice(i)->setDeblockingFilterTcOffsetDiv2( pcPic->getSlice(i)->getPPS()->getDeblockingFilterTcOffsetDiv2() ); … … 3825 3825 { 3826 3826 pcPic->getSlice(i)->setDeblockingFilterOverrideFlag(false); 3827 pcPic->getSlice(i)->setDeblockingFilterDisable( pcPic->getSlice(i)->getPPS()->getP icDisableDeblockingFilterFlag() );3827 pcPic->getSlice(i)->setDeblockingFilterDisable( pcPic->getSlice(i)->getPPS()->getPPSDeblockingFilterDisabledFlag() ); 3828 3828 pcPic->getSlice(i)->setDeblockingFilterBetaOffsetDiv2( pcPic->getSlice(i)->getPPS()->getDeblockingFilterBetaOffsetDiv2() ); 3829 3829 pcPic->getSlice(i)->setDeblockingFilterTcOffsetDiv2( pcPic->getSlice(i)->getPPS()->getDeblockingFilterTcOffsetDiv2() ); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSlice.cpp
r1567 r1570 492 492 { 493 493 rpcSlice->setDeblockingFilterOverrideFlag( rpcSlice->getPPS()->getDeblockingFilterOverrideEnabledFlag() ); 494 rpcSlice->setDeblockingFilterDisable( rpcSlice->getPPS()->getP icDisableDeblockingFilterFlag() );494 rpcSlice->setDeblockingFilterDisable( rpcSlice->getPPS()->getPPSDeblockingFilterDisabledFlag() ); 495 495 if ( !rpcSlice->getDeblockingFilterDisable()) 496 496 { -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1569 r1570 1302 1302 { 1303 1303 m_cPPS.setDeblockingFilterOverrideEnabledFlag(true); 1304 m_cPPS.setP icDisableDeblockingFilterFlag(false);1304 m_cPPS.setPPSDeblockingFilterDisabledFlag(false); 1305 1305 } 1306 1306 else 1307 1307 { 1308 1308 m_cPPS.setDeblockingFilterOverrideEnabledFlag( !getLoopFilterOffsetInPPS() ); 1309 m_cPPS.setP icDisableDeblockingFilterFlag( getLoopFilterDisable() );1310 } 1311 1312 if (! m_cPPS.getP icDisableDeblockingFilterFlag())1309 m_cPPS.setPPSDeblockingFilterDisabledFlag( getLoopFilterDisable() ); 1310 } 1311 1312 if (! m_cPPS.getPPSDeblockingFilterDisabledFlag()) 1313 1313 { 1314 1314 m_cPPS.setDeblockingFilterBetaOffsetDiv2( getLoopFilterBetaOffset() ); … … 1323 1323 // deblockingFilterControlPresentFlag is true if any of the settings differ from the inferred values: 1324 1324 const Bool deblockingFilterControlPresentFlag = m_cPPS.getDeblockingFilterOverrideEnabledFlag() || 1325 m_cPPS.getP icDisableDeblockingFilterFlag() ||1325 m_cPPS.getPPSDeblockingFilterDisabledFlag() || 1326 1326 m_cPPS.getDeblockingFilterBetaOffsetDiv2() != 0 || 1327 1327 m_cPPS.getDeblockingFilterTcOffsetDiv2() != 0;
Note: See TracChangeset for help on using the changeset viewer.