Changeset 314 in SHVCSoftware


Ignore:
Timestamp:
27 Jul 2013, 17:08:27 (11 years ago)
Author:
seregin
Message:

check number of active ref layers for JCTVC_M0259_LAMBDAREFINEMENT, provided by Done Bugdayci <ext-done.bugdayci@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibEncoder/TEncSlice.cpp

    r313 r314  
    345345
    346346#if JCTVC_M0259_LAMBDAREFINEMENT
    347   if( rpcSlice->getLayerId() > 0 && depth >= 3 && m_pcCfg->getGOPSize() == ( 1 << depth ) )
     347  if( rpcSlice->getLayerId() > 0 && rpcSlice->getActiveNumILRRefIdx() && depth >= 3 && m_pcCfg->getGOPSize() == ( 1 << depth ) )
    348348  {
    349349    Int nCurLayer = rpcSlice->getLayerId();
     
    373373  weight = pow( 2.0, (iQP-g_aucChromaScale[qpc])/3.0 );  // takes into account of the chroma qp mapping and chroma qp Offset
    374374#if JCTVC_M0259_LAMBDAREFINEMENT
    375   if( rpcSlice->getLayerId() > 0 && m_pcCfg->getGOPSize() >= 8 && rpcSlice->isIntra() == false && depth == 0 )
     375  if( rpcSlice->getLayerId() > 0 && rpcSlice->getActiveNumILRRefIdx() && m_pcCfg->getGOPSize() >= 8 && rpcSlice->isIntra() == false && depth == 0 )
    376376  {
    377377    dLambda *= 1.1;
Note: See TracChangeset for help on using the changeset viewer.