Ticket #566: FixFor566.patch

File FixFor566.patch, 1.6 KB (added by rickard, 10 years ago)

Fix for #566

  • source/App/TAppEncoder/TAppEncCfg.cpp

     
    184184  ("LambdaModifier1,-LM1", m_adLambdaModifier[ 1 ], ( double )1.0, "Lambda modifier for temporal layer 1")
    185185  ("LambdaModifier2,-LM2", m_adLambdaModifier[ 2 ], ( double )1.0, "Lambda modifier for temporal layer 2")
    186186  ("LambdaModifier3,-LM3", m_adLambdaModifier[ 3 ], ( double )1.0, "Lambda modifier for temporal layer 3")
     187  ("LambdaModifier4,-LM4", m_adLambdaModifier[ 4 ], ( double )1.0, "Lambda modifier for temporal layer 4")
     188  ("LambdaModifier5,-LM5", m_adLambdaModifier[ 5 ], ( double )1.0, "Lambda modifier for temporal layer 5")
     189  ("LambdaModifier6,-LM6", m_adLambdaModifier[ 6 ], ( double )1.0, "Lambda modifier for temporal layer 6")
     190  ("LambdaModifier7,-LM7", m_adLambdaModifier[ 7 ], ( double )1.0, "Lambda modifier for temporal layer 7")
     191
    187192  ("SourceWidth,-wdt",      m_iSourceWidth,  0, "Source picture width")
    188193  ("SourceHeight,-hgt",     m_iSourceHeight, 0, "Source picture height")
    189194#if PIC_CROPPING
  • source/Lib/TLibEncoder/TEncSlice.cpp

     
    317317 
    318318  if( rpcSlice->getSliceType( ) != I_SLICE )
    319319  {
    320     dLambda *= m_pcCfg->getLambdaModifier( iDepth );
     320    dLambda *= m_pcCfg->getLambdaModifier( m_pcCfg->getGOPEntry(iGOPid).m_temporalId );
    321321  }
    322322
    323323  // store lambda