Changeset 562 in SHVCSoftware for branches/SHM-5.0-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
27 Jan 2014, 17:40:23 (11 years ago)
Author:
seregin
Message:

remove M0457_COL_PICTURE_SIGNALING macro

Location:
branches/SHM-5.0-dev/source/Lib/TLibEncoder
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r561 r562  
    579579  }
    580580  WRITE_FLAG( pcSPS->getTMVPFlagsPresent()  ? 1 : 0,           "sps_temporal_mvp_enable_flag" );
    581 #if REF_IDX_MFM
    582 #if !M0457_COL_PICTURE_SIGNALING
    583   if( pcSPS->getLayerId() > 0 )
    584   {
    585     WRITE_FLAG( pcSPS->getMFMEnabledFlag() ? 1 : 0,          "sps_enh_mfm_enable_flag" );
    586   }
    587 #endif
    588 #endif
    589581  WRITE_FLAG( pcSPS->getUseStrongIntraSmoothing(),             "sps_strong_intra_smoothing_enable_flag" );
    590582
     
    17671759    if ( pcSlice->getEnableTMVPFlag() )
    17681760    {
    1769 #if SVC_EXTENSION && M0457_COL_PICTURE_SIGNALING && !REMOVE_COL_PICTURE_SIGNALING
    1770       if ( !pcSlice->getIdrPicFlag() && pcSlice->getLayerId() > 0 && pcSlice->getActiveNumILRRefIdx() > 0 && pcSlice->getNumMotionPredRefLayers() > 0 )
    1771       {
    1772         WRITE_FLAG( pcSlice->getAltColIndicationFlag() ? 1 : 0, "alt_collocated_indication_flag" );
    1773         if (pcSlice->getAltColIndicationFlag() && pcSlice->getNumMotionPredRefLayers() > 1)
    1774         {
    1775           WRITE_UVLC(0, "collocated_ref_layer_idx");
    1776         }
    1777       }
    1778       else
    1779       {
    1780 #endif
    17811761      if ( pcSlice->getSliceType() == B_SLICE )
    17821762      {
     
    17901770        WRITE_UVLC( pcSlice->getColRefIdx(), "collocated_ref_idx" );
    17911771      }
    1792 #if SVC_EXTENSION && M0457_COL_PICTURE_SIGNALING && !REMOVE_COL_PICTURE_SIGNALING
    1793       }
    1794 #endif
    17951772    }
    17961773    if ( (pcSlice->getPPS()->getUseWP() && pcSlice->getSliceType()==P_SLICE) || (pcSlice->getPPS()->getWPBiPred() && pcSlice->getSliceType()==B_SLICE) )
  • branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r559 r562  
    690690      pcSlice->setActiveNumILRRefIdx(0);
    691691      pcSlice->setInterLayerPredEnabledFlag(false);
    692 #if M0457_COL_PICTURE_SIGNALING
    693692      pcSlice->setMFMEnabledFlag(false);
    694693#if !REMOVE_COL_PICTURE_SIGNALING
    695694      pcSlice->setAltColIndicationFlag(false);
    696 #endif
    697695#endif
    698696    }
     
    11911189
    11921190#if SVC_EXTENSION
    1193 #if M0457_COL_PICTURE_SIGNALING && !REMOVE_COL_PICTURE_SIGNALING
    1194     if ( pcSlice->getSliceType() == B_SLICE && !(pcSlice->getActiveNumILRRefIdx() > 0 && m_pcEncTop->getNumMotionPredRefLayers() > 0) )
    1195 #else
    11961191    if( pcSlice->getSliceType() == B_SLICE )
    1197 #endif
    11981192    {
    11991193      pcSlice->setColFromL0Flag(1-uiColDir);
     
    12101204      pcSlice->setILRPic( m_pcEncTop->getIlpList() );
    12111205#if REF_IDX_MFM
    1212 #if M0457_COL_PICTURE_SIGNALING
    12131206      if( pcSlice->getMFMEnabledFlag() )
    1214 #else
    1215       if( pcSlice->getSPS()->getMFMEnabledFlag() )
    1216 #endif
    12171207      {
    12181208        pcSlice->setRefPOCListILP(m_pcEncTop->getIlpList(), pcSlice->getBaseColPic());
    1219 #if M0457_COL_PICTURE_SIGNALING && !REMOVE_COL_PICTURE_SIGNALING
    1220         pcSlice->setMotionPredIlp(getMotionPredIlp(pcSlice));
    1221 #endif
    12221209      }
    12231210#else
     
    12291216
    12301217#if REF_IDX_MFM
    1231 #if M0457_COL_PICTURE_SIGNALING
    12321218#if REMOVE_COL_PICTURE_SIGNALING
    12331219      if( pcSlice->getMFMEnabledFlag() )
    12341220#else
    12351221      if( pcSlice->getMFMEnabledFlag() && !(pcSlice->getActiveNumILRRefIdx() > 0 && m_pcEncTop->getNumMotionPredRefLayers() > 0) )
    1236 #endif
    1237 #else
    1238       if( pcSlice->getSPS()->getMFMEnabledFlag() )
    12391222#endif
    12401223      {
     
    20502033            startCUAddrSliceSegmentIdx++;
    20512034          }
    2052 #if SVC_EXTENSION && M0457_COL_PICTURE_SIGNALING
     2035#if SVC_EXTENSION
    20532036          pcSlice->setNumMotionPredRefLayers(m_pcEncTop->getNumMotionPredRefLayers());
    20542037#endif
     
    37343717  free(rowSAD);
    37353718}
    3736 
    3737 #if M0457_COL_PICTURE_SIGNALING && !REMOVE_COL_PICTURE_SIGNALING
    3738 TComPic* TEncGOP::getMotionPredIlp(TComSlice* pcSlice)
    3739 {
    3740   TComPic* ilpPic = NULL;
    3741   Int activeMotionPredReflayerIdx = 0;
    3742 
    3743   for( Int i = 0; i < pcSlice->getActiveNumILRRefIdx(); i++ )
    3744   {
    3745     UInt refLayerIdc = pcSlice->getInterLayerPredLayerIdc(i);
    3746     if( m_pcEncTop->getMotionPredEnabledFlag( pcSlice->getVPS()->getRefLayerId( m_layerId, refLayerIdc ) ) )
    3747     {
    3748       if (activeMotionPredReflayerIdx == pcSlice->getColRefLayerIdx())
    3749       {
    3750         ilpPic = m_pcEncTop->getIlpList()[refLayerIdc];
    3751         break;
    3752       }
    3753       else
    3754       {
    3755         activeMotionPredReflayerIdx++;
    3756       }
    3757     }
    3758   }
    3759 
    3760   assert(ilpPic != NULL);
    3761 
    3762   return ilpPic;
    3763 }
    3764 #endif
    3765 
    37663719//! \}
  • branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncGOP.h

    r442 r562  
    210210#endif
    211211  Void dblMetric( TComPic* pcPic, UInt uiNumSlices );
    212 #if M0457_COL_PICTURE_SIGNALING && !REMOVE_COL_PICTURE_SIGNALING
    213   TComPic* getMotionPredIlp(TComSlice* pcSlice);
    214 #endif
    215212};// END CLASS DEFINITION TEncGOP
    216213
  • branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncSlice.cpp

    r540 r562  
    536536    rpcSlice->setNumILRRefIdx( rpcSlice->getVPS()->getNumDirectRefLayers( layerId ) );
    537537#endif
    538 #if M0457_COL_PICTURE_SIGNALING
    539538    rpcSlice->setMFMEnabledFlag(m_ppcTEncTop[layerId]->getMFMEnabledFlag());
    540539#if !REMOVE_COL_PICTURE_SIGNALING
    541540    rpcSlice->setAltColIndicationFlag(rpcSlice->getMFMEnabledFlag());
    542 #endif
    543541#endif
    544542  }
  • branches/SHM-5.0-dev/source/Lib/TLibEncoder/TEncTop.cpp

    r549 r562  
    934934#if SVC_EXTENSION
    935935  m_cSPS.setLayerId(m_layerId);
    936 #if REF_IDX_MFM
    937 #if !M0457_COL_PICTURE_SIGNALING
    938   m_cSPS.setMFMEnabledFlag(m_bMFMEnabledFlag);
    939 #endif
    940 #endif
    941936  m_cSPS.setNumScaledRefLayerOffsets(m_numScaledRefLayerOffsets);
    942937  for(Int i = 0; i < m_cSPS.getNumScaledRefLayerOffsets(); i++)
Note: See TracChangeset for help on using the changeset viewer.