Changeset 635 in 3DVCSoftware for branches/HTM-8.2-dev0-KWU/source/Lib/TLibEncoder/TEncTop.cpp
- Timestamp:
- 14 Oct 2013, 20:13:58 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-8.2-dev0-KWU/source/Lib/TLibEncoder/TEncTop.cpp
r622 r635 123 123 if ( m_RCEnableRateControl ) 124 124 { 125 #if KWU_RC_MADPRED_E0227 126 m_cRateCtrl.init( m_framesToBeEncoded, m_RCTargetBitrate, m_iFrameRate, m_iGOPSize, m_iSourceWidth, m_iSourceHeight, 127 g_uiMaxCUWidth, g_uiMaxCUHeight, m_RCKeepHierarchicalBit, m_RCUseLCUSeparateModel, m_GOPList, getLayerId() ); 128 #else 125 129 m_cRateCtrl.init( m_framesToBeEncoded, m_RCTargetBitrate, m_iFrameRate, m_iGOPSize, m_iSourceWidth, m_iSourceHeight, 126 130 g_uiMaxCUWidth, g_uiMaxCUHeight, m_RCKeepHierarchicalBit, m_RCUseLCUSeparateModel, m_GOPList ); 127 } 128 #else 129 m_cRateCtrl.create(getIntraPeriod(), getGOPSize(), getFrameRate(), getTargetBitrate(), getQP(), getNumLCUInUnit(), getSourceWidth(), getSourceHeight(), g_uiMaxCUWidth, g_uiMaxCUHeight); 131 #endif 132 } 133 #else 134 if(m_enableRateCtrl) 135 m_cRateCtrl.create(getIntraPeriod(), getGOPSize(), getFrameRate(), getTargetBitrate(), getQP(), getNumLCUInUnit(), getSourceWidth(), getSourceHeight(), g_uiMaxCUWidth, g_uiMaxCUHeight); 130 136 #endif 131 137 // if SBAC-based RD optimization is used … … 224 230 } 225 231 m_cLoopFilter. destroy(); 226 m_cRateCtrl. destroy();227 232 // SBAC RD 228 233 if( m_bUseSBACRD ) … … 284 289 } 285 290 291 #if KWU_RC_MADPRED_E0227 292 Void TEncTop::init(TAppEncTop* pcTAppEncTop) 293 #else 286 294 Void TEncTop::init() 295 #endif 287 296 { 288 297 // initialize SPS … … 310 319 m_cCuEncoder. init( this ); 311 320 321 #if KWU_RC_MADPRED_E0227 322 m_pcTAppEncTop = pcTAppEncTop; 323 #endif 312 324 // initialize transform & quantization class 313 325 m_pcCavlcCoder = getCavlcCoder(); … … 739 751 m_cPPS.setMinCuDQPSize( m_cPPS.getSPS()->getMaxCUWidth() >> ( m_cPPS.getMaxCuDQPDepth()) ); 740 752 } 753 #else 754 if ( m_enableRateCtrl ) 755 { 756 m_cPPS.setUseDQP(true); 757 m_cPPS.setMaxCuDQPDepth( 0 ); 758 m_cPPS.setMinCuDQPSize( m_cPPS.getSPS()->getMaxCUWidth() >> ( m_cPPS.getMaxCuDQPDepth()) ); 759 } 741 760 #endif 742 761
Note: See TracChangeset for help on using the changeset viewer.