Changeset 1322 in SHVCSoftware for branches/SHM-dev/source/Lib
- Timestamp:
- 21 Jul 2015, 23:48:01 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h
r1316 r1322 162 162 Int m_loopFilterBetaOffsetDiv2; 163 163 Int m_loopFilterTcOffsetDiv2; 164 Bool m_DeblockingFilterControlPresent;165 164 Bool m_DeblockingFilterMetric; 166 165 Bool m_bUseSAO; … … 538 537 Void setLoopFilterBetaOffset ( Int i ) { m_loopFilterBetaOffsetDiv2 = i; } 539 538 Void setLoopFilterTcOffset ( Int i ) { m_loopFilterTcOffsetDiv2 = i; } 540 Void setDeblockingFilterControlPresent ( Bool b ) { m_DeblockingFilterControlPresent = b; }541 539 Void setDeblockingFilterMetric ( Bool b ) { m_DeblockingFilterMetric = b; } 542 540 … … 604 602 Int getLoopFilterBetaOffset () { return m_loopFilterBetaOffsetDiv2; } 605 603 Int getLoopFilterTcOffset () { return m_loopFilterTcOffsetDiv2; } 606 Bool getDeblockingFilterControlPresent() { return m_DeblockingFilterControlPresent; }607 604 Bool getDeblockingFilterMetric () { return m_DeblockingFilterMetric; } 608 605 -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1316 r1322 1091 1091 m_cPPS.setOutputFlagPresentFlag( false ); 1092 1092 m_cPPS.setSignHideFlag(getSignHideFlag()); 1093 1093 1094 if ( getDeblockingFilterMetric() ) 1094 1095 { 1095 m_cPPS.setDeblockingFilterControlPresentFlag (true);1096 1096 m_cPPS.setDeblockingFilterOverrideEnabledFlag(true); 1097 1097 m_cPPS.setPicDisableDeblockingFilterFlag(false); 1098 } 1099 else 1100 { 1101 m_cPPS.setDeblockingFilterOverrideEnabledFlag( !getLoopFilterOffsetInPPS() ); 1102 m_cPPS.setPicDisableDeblockingFilterFlag( getLoopFilterDisable() ); 1103 } 1104 1105 if (! m_cPPS.getPicDisableDeblockingFilterFlag()) 1106 { 1107 m_cPPS.setDeblockingFilterBetaOffsetDiv2( getLoopFilterBetaOffset() ); 1108 m_cPPS.setDeblockingFilterTcOffsetDiv2( getLoopFilterTcOffset() ); 1109 } 1110 else 1111 { 1098 1112 m_cPPS.setDeblockingFilterBetaOffsetDiv2(0); 1099 1113 m_cPPS.setDeblockingFilterTcOffsetDiv2(0); 1100 1114 } 1101 else 1102 { 1103 m_cPPS.setDeblockingFilterControlPresentFlag (m_DeblockingFilterControlPresent ); 1104 1105 if (m_cPPS.getDeblockingFilterControlPresentFlag()) 1106 { 1107 m_cPPS.setDeblockingFilterOverrideEnabledFlag( !getLoopFilterOffsetInPPS() ); 1108 m_cPPS.setPicDisableDeblockingFilterFlag( getLoopFilterDisable() ); 1109 } 1110 } 1111 1112 if (m_cPPS.getDeblockingFilterControlPresentFlag() && ! m_cPPS.getPicDisableDeblockingFilterFlag()) 1113 { 1114 m_cPPS.setDeblockingFilterBetaOffsetDiv2( getLoopFilterBetaOffset() ); 1115 m_cPPS.setDeblockingFilterTcOffsetDiv2( getLoopFilterTcOffset() ); 1116 } 1115 1116 // deblockingFilterControlPresentFlag is true if any of the settings differ from the inferred values: 1117 const Bool deblockingFilterControlPresentFlag = m_cPPS.getDeblockingFilterOverrideEnabledFlag() || 1118 m_cPPS.getPicDisableDeblockingFilterFlag() || 1119 m_cPPS.getDeblockingFilterBetaOffsetDiv2() != 0 || 1120 m_cPPS.getDeblockingFilterTcOffsetDiv2() != 0; 1121 1122 m_cPPS.setDeblockingFilterControlPresentFlag(deblockingFilterControlPresentFlag); 1123 1117 1124 m_cPPS.setLog2ParallelMergeLevelMinus2 (m_log2ParallelMergeLevelMinus2 ); 1118 1125 m_cPPS.setCabacInitPresentFlag(CABAC_INIT_PRESENT_FLAG);
Note: See TracChangeset for help on using the changeset viewer.