Ignore:
Timestamp:
20 Jun 2013, 22:40:50 (11 years ago)
Author:
vidyo
Message:

Implementation of inter_layer_sample_pred_only_flag part of M0457. The code is disabled by default. Enable by setting M0457_IL_SAMPLE_PRED_ONLY_FLAG to 1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-2.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r296 r297  
    539539#endif
    540540
     541#if M0457_IL_SAMPLE_PRED_ONLY_FLAG
     542    pcSlice->setNumSamplePredRefLayers( m_pcEncTop->getNumSamplePredRefLayers() );
     543    pcSlice->setInterLayerSamplePredOnlyFlag( 0 );
     544    if( pcSlice->getNumSamplePredRefLayers() > 0 && pcSlice->getActiveNumILRRefIdx() > 0 )
     545    {
     546      if( m_pcEncTop->getIlSampleOnlyPred() > 0 )
     547      {
     548        pcSlice->setInterLayerSamplePredOnlyFlag( true );
     549      }
     550    }
     551#endif
     552
    541553    pcSlice->setLastIDR(m_iLastIDR);
    542554    pcSlice->setSliceIdx(0);
     
    923935#endif
    924936
     937#if M0457_IL_SAMPLE_PRED_ONLY_FLAG
     938    if (pcSlice->getSliceType() == B_SLICE && m_pcEncTop->getIlSampleOnlyPred() == 0)
     939#else
    925940    if (pcSlice->getSliceType() == B_SLICE)
     941#endif
    926942    {
    927943#if !REF_IDX_FRAMEWORK
Note: See TracChangeset for help on using the changeset viewer.