Changeset 28 in SHVCSoftware for trunk/source/Lib/TLibDecoder


Ignore:
Timestamp:
7 Feb 2013, 02:16:51 (12 years ago)
Author:
seregin
Message:

Reintegrate SHM-1.0-dev branch

Location:
trunk/source/Lib/TLibDecoder
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r2 r28  
    844844#endif
    845845  READ_FLAG( uiCode, "sps_temporal_mvp_enable_flag" );            pcSPS->setTMVPFlagsPresent(uiCode);
     846#if REF_IDX_MFM
     847  if(pcSPS->getLayerId() > 0)
     848  {
     849          READ_FLAG( uiCode, "sps_enh_mfm_enable_flag" );
     850          pcSPS->setMFMEnabledFlag( uiCode ? true : false );
     851          assert(pcSPS->getMFMEnabledFlag());
     852  }
     853#endif
    846854#if SUPPORT_FOR_VUI
    847855  READ_FLAG( uiCode, "vui_parameters_present_flag" );             pcSPS->setVuiParametersPresentFlag(uiCode);
  • trunk/source/Lib/TLibDecoder/TDecGop.cpp

    r2 r28  
    287287
    288288  rpcPic->compressMotion();
     289
     290
    289291  Char c = (pcSlice->isIntra() ? 'I' : pcSlice->isInterP() ? 'P' : 'B');
    290292  if (!pcSlice->isReferenced()) c += 32;
  • trunk/source/Lib/TLibDecoder/TDecTop.cpp

    r21 r28  
    164164        m_cIlpPic[j]->create(pcSPS->getPicWidthInLumaSamples(), pcSPS->getPicHeightInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, true);
    165165#endif
    166 #if REF_IDX_ME_AROUND_ZEROMV || REF_IDX_ME_ZEROMV
     166#if REF_IDX_ME_AROUND_ZEROMV || REF_IDX_ME_ZEROMV || REF_IDX_MFM
    167167        m_cIlpPic[j]->setIsILR(true);
    168168#endif
     
    270270    rpcPic->getPicSym()->allocSaoParam(&m_cSAO);
    271271#endif
     272
     273
    272274    m_cListPic.pushBack( rpcPic );
    273275   
     
    316318  rpcPic->getPicSym()->allocSaoParam(&m_cSAO);
    317319#endif
     320
     321
    318322}
    319323
     
    768772    {
    769773      setILRPic(pcPic);
     774#if REF_IDX_MFM
     775      pcSlice->setRefPOCListILP(m_ppcTDecTop[m_layerId]->m_cIlpPic, pcSlice->getBaseColPic());
     776#endif
     777
    770778      pcSlice->addRefPicList ( m_cIlpPic,
    771779                               1,
     
    880888  m_cEntropyDecoder.decodeSPS( sps );
    881889  m_parameterSetManagerDecoder.storePrefetchedSPS(sps);
     890#if REF_IDX_MFM
     891  m_pcSPS = sps;
     892  setMFMEnabledFlag(sps->getMFMEnabledFlag());
     893#endif
    882894#if !REMOVE_ALF
    883895  m_cAdaptiveLoopFilter.create( sps->getPicWidthInLumaSamples(), sps->getPicHeightInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth );
  • trunk/source/Lib/TLibDecoder/TDecTop.h

    r2 r28  
    8080  ParameterSetManagerDecoder m_parameterSetManagerDecoder;  // storage for parameter sets
    8181#endif
     82
     83#if REF_IDX_MFM
     84  TComSPS*               m_pcSPS;
     85  Bool                   m_bMFMEnabledFlag;
     86#endif
     87
    8288  TComSlice*              m_apcSlicePilot;
    8389 
     
    170176  Void      setILRPic(TComPic *pcPic);
    171177#endif
     178#if REF_IDX_MFM
     179  TComSPS*  getSPS()                       {return m_pcSPS;}
     180  Void      setMFMEnabledFlag(Bool flag)   {m_bMFMEnabledFlag = flag;}
     181  Bool      getMFMEnabledFlag()            {return m_bMFMEnabledFlag;}
     182#endif
     183
    172184protected:
    173185  Void  xGetNewPicBuffer  (TComSlice* pcSlice, TComPic*& rpcPic);
Note: See TracChangeset for help on using the changeset viewer.