Ignore:
Timestamp:
14 Oct 2013, 20:13:58 (11 years ago)
Author:
kwu-htm
Message:

"JCT3V-E0227 : Inter-view MAD prediction for 3D multi-view video" is integrated by KWU. Configuration has changed by adding rate control for URQ and the integrated view-wise target bitrate allocation and inter-view MAD prediction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-8.2-dev0-KWU/source/Lib/TLibEncoder/TEncTop.cpp

    r622 r635  
    123123  if ( m_RCEnableRateControl )
    124124  {
     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
    125129    m_cRateCtrl.init( m_framesToBeEncoded, m_RCTargetBitrate, m_iFrameRate, m_iGOPSize, m_iSourceWidth, m_iSourceHeight,
    126130                      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);
    130136#endif
    131137  // if SBAC-based RD optimization is used
     
    224230  }
    225231  m_cLoopFilter.        destroy();
    226   m_cRateCtrl.          destroy();
    227232  // SBAC RD
    228233  if( m_bUseSBACRD )
     
    284289}
    285290
     291#if KWU_RC_MADPRED_E0227
     292Void TEncTop::init(TAppEncTop* pcTAppEncTop)
     293#else
    286294Void TEncTop::init()
     295#endif
    287296{
    288297  // initialize SPS
     
    310319  m_cCuEncoder.   init( this );
    311320 
     321#if KWU_RC_MADPRED_E0227
     322  m_pcTAppEncTop = pcTAppEncTop;
     323#endif
    312324  // initialize transform & quantization class
    313325  m_pcCavlcCoder = getCavlcCoder();
     
    739751    m_cPPS.setMinCuDQPSize( m_cPPS.getSPS()->getMaxCUWidth() >> ( m_cPPS.getMaxCuDQPDepth()) );
    740752  }
     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  }
    741760#endif
    742761
Note: See TracChangeset for help on using the changeset viewer.