Ignore:
Timestamp:
5 Nov 2014, 11:34:26 (10 years ago)
Author:
tech
Message:

HHI_DEPENDENCY_SIGNALLING_I1_J0107: Integrated IdRefListLayers.

Location:
branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncCavlc.cpp

    r1084 r1103  
    18871887    Bool interLayerPredLayerIdcPresentFlag = false;
    18881888    Int layerId = pcSlice->getLayerId();
     1889#if HHI_DEPENDENCY_SIGNALLING_I1_J0107
     1890#if H_3D
     1891    if( pcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumRefListLayers( layerId ) > 0 )
     1892#else
    18891893    if( pcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumDirectRefLayers( layerId ) > 0 )
     1894#endif
     1895#else
     1896    if( pcSlice->getLayerId() > 0 && !vps->getAllRefLayersActiveFlag() && vps->getNumDirectRefLayers( layerId ) > 0 )
     1897#endif
    18901898    {   
    18911899      WRITE_FLAG( pcSlice->getInterLayerPredEnabledFlag( ) ? 1 : 0 , "inter_layer_pred_enabled_flag" );
     1900#if HHI_DEPENDENCY_SIGNALLING_I1_J0107
     1901#if H_3D
     1902      if( pcSlice->getInterLayerPredEnabledFlag() && vps->getNumRefListLayers( layerId ) > 1 )
     1903#else
    18921904      if( pcSlice->getInterLayerPredEnabledFlag() && vps->getNumDirectRefLayers( layerId ) > 1 )
     1905#endif
     1906#else
     1907      if( pcSlice->getInterLayerPredEnabledFlag() && vps->getNumDirectRefLayers( layerId ) > 1 )
     1908#endif
    18931909      {           
    18941910        if( !vps->getMaxOneActiveRefLayerFlag()) 
     
    18961912          WRITE_CODE( pcSlice->getNumInterLayerRefPicsMinus1( ), pcSlice->getNumInterLayerRefPicsMinus1Len( ), "num_inter_layer_ref_pics_minus1" );
    18971913        }
     1914#if HHI_DEPENDENCY_SIGNALLING_I1_J0107
     1915#if H_3D
     1916        if ( pcSlice->getNumActiveRefLayerPics() != vps->getNumRefListLayers( layerId ) )
     1917#else
    18981918        if ( pcSlice->getNumActiveRefLayerPics() != vps->getNumDirectRefLayers( layerId ) )
     1919#endif
     1920#else
     1921        if ( pcSlice->getNumActiveRefLayerPics() != vps->getNumDirectRefLayers( layerId ) )
     1922#endif
    18991923        {       
    19001924          interLayerPredLayerIdcPresentFlag = true;
     
    20372061    }
    20382062#if H_3D_IC
     2063#if HHI_DEPENDENCY_SIGNALLING_I1_J0107
     2064    else if( pcSlice->getViewIndex() && ( pcSlice->getSliceType() == P_SLICE || pcSlice->getSliceType() == B_SLICE ) && !pcSlice->getIsDepth() && vps->getNumRefListLayers( layerId ) > 0 )
     2065#else
    20392066    else if( pcSlice->getViewIndex() && ( pcSlice->getSliceType() == P_SLICE || pcSlice->getSliceType() == B_SLICE ) && !pcSlice->getIsDepth() && vps->getNumDirectRefLayers( layerId ) > 0 )
     2067#endif
    20402068    {
    20412069      WRITE_FLAG( pcSlice->getApplyIC() ? 1 : 0, "slice_ic_enable_flag" );
  • TabularUnified branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncGOP.cpp

    r1100 r1103  
    880880
    881881    TComVPS*           vps = pcSlice->getVPS();     
     882#if HHI_DEPENDENCY_SIGNALLING_I1_J0107
     883#if H_3D
     884    Int numDirectRefLayers = vps    ->getNumRefListLayers( getLayerId() );
     885#else
    882886    Int numDirectRefLayers = vps    ->getNumDirectRefLayers( getLayerId() );
     887#endif
     888#else
     889    Int numDirectRefLayers = vps    ->getNumDirectRefLayers( getLayerId() );
     890#endif
    883891    GOPEntry gopEntry      = m_pcCfg->getGOPEntry( (pcSlice->getRapPicFlag() && getLayerId() > 0) ? MAX_GOP : iGOPid );     
    884892   
     
    893901          pcSlice->setNumInterLayerRefPicsMinus1( gopEntry.m_numActiveRefLayerPics - 1 );
    894902        }
     903#if HHI_DEPENDENCY_SIGNALLING_I1_J0107
     904#if H_3D
     905        if ( gopEntry.m_numActiveRefLayerPics != vps->getNumRefListLayers( getLayerId() ) )
     906#else
    895907        if ( gopEntry.m_numActiveRefLayerPics != vps->getNumDirectRefLayers( getLayerId() ) )
     908#endif
     909#else
     910        if ( gopEntry.m_numActiveRefLayerPics != vps->getNumDirectRefLayers( getLayerId() ) )
     911#endif
    896912        {       
    897913          interLayerPredLayerIdcPresentFlag = true;
  • TabularUnified branches/HTM-12.2-dev2-HHI/source/Lib/TLibEncoder/TEncTop.cpp

    r1084 r1103  
    896896#if H_MV
    897897  m_cPPS.setLayerId( getLayerId() );
     898#if HHI_DEPENDENCY_SIGNALLING_I1_J0107
     899#if H_3D
     900  // Check if this condition is still correct
     901  if( getVPS()->getNumRefListLayers( getLayerId() ) > 0 )
     902#else
    898903  if( getVPS()->getNumDirectRefLayers( getLayerId() ) > 0 )
     904#endif
     905#else
     906  if( getVPS()->getNumDirectRefLayers( getLayerId() ) > 0 )
     907#endif
    899908  {
    900909    m_cPPS.setListsModificationPresentFlag( true );
Note: See TracChangeset for help on using the changeset viewer.