Changeset 34 in 3DVCSoftware for branches/0.3-nokia/source/Lib/TLibDecoder


Ignore:
Timestamp:
18 Mar 2012, 10:42:07 (13 years ago)
Author:
nokia
Message:

FlexCO upload

Location:
branches/0.3-nokia/source/Lib/TLibDecoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/0.3-nokia/source/Lib/TLibDecoder/TDecTop.cpp

    r21 r34  
    513513
    514514#if DCM_SKIP_DECODING_FRAMES
     515#if FLEX_CODING_ORDER
     516Bool TDecTop::decode (Bool bEos, TComBitstream* pcBitstream, UInt& ruiPOC, TComList<TComPic*>*& rpcListPic, NalUnitType& reNalUnitType, TComSPS& cComSPS, Int& iSkipFrame,  Int& iPOCLastDisplay, Bool& bNewPictureType)
     517#else
    515518Bool TDecTop::decode (Bool bEos, TComBitstream* pcBitstream, UInt& ruiPOC, TComList<TComPic*>*& rpcListPic, NalUnitType& reNalUnitType, TComSPS& cComSPS, Int& iSkipFrame,  Int& iPOCLastDisplay)
     519
     520#endif
    516521#else
    517522Void TDecTop::decode (Bool bEos, TComBitstream* pcBitstream, UInt& ruiPOC, TComList<TComPic*>*& rpcListPic, NalUnitType& reNalUnitType, TComSPS& cComSPS )
     
    541546      TComSPS cTempSPS;
    542547      m_cEntropyDecoder.decodeSPS( &cTempSPS );
     548#if FLEX_CODING_ORDER
     549      m_cNewSPS = cTempSPS;
     550#endif
    543551
    544552      if( (m_iViewIdx == cTempSPS.getViewId()) && ( m_bIsDepth == cTempSPS.isDepth() ) )
     
    615623      {
    616624        m_uiPrevPOC = m_apcSlicePilot->getPOC();
     625#if FLEX_CODING_ORDER
     626        bNewPictureType = m_cNewSPS.isDepth();
     627#endif
    617628        return true;
    618629      }
     
    697708        std::vector<TComPic*> apcSpatRefPics = getDecTop()->getSpatialRefPics( pcPic->getViewIdx(), pcSlice->getPOC(), m_cSPS.isDepth() );
    698709        TComPic * const pcTexturePic = m_cSPS.isDepth() ? getDecTop()->getPicFromView( pcPic->getViewIdx(), pcSlice->getPOC(), false ) : NULL;
     710
     711#if FLEX_CODING_ORDER
     712        if (pcTexturePic != NULL)
     713        {
     714          assert( ! m_cSPS.isDepth() || pcTexturePic != NULL );
     715          pcSlice->setTexturePic( pcTexturePic );
     716        }
     717#else
    699718        assert( ! m_cSPS.isDepth() || pcTexturePic != NULL );
    700719        pcSlice->setTexturePic( pcTexturePic );
    701720        pcSlice->setViewIdx( pcPic->getViewIdx() );
     721#endif
    702722#if SONY_COLPIC_AVAILABILITY
    703723        pcSlice->setViewOrderIdx( pcPic->getViewOrderIdx() );
  • branches/0.3-nokia/source/Lib/TLibDecoder/TDecTop.h

    r21 r34  
    111111  TComList<TComPic*>      m_cListPic;         //  Dynamic buffer
    112112  TComSPS                 m_cSPS;
     113#if FLEX_CODING_ORDER
     114  TComSPS                 m_cNewSPS;
     115#endif
    113116  TComPPS                 m_cPPS;
    114117  TComSlice*              m_apcSlicePilot;
     
    167170  Void  init( TAppDecTop* pcTAppDecTop, Bool bFirstInstance = true );
    168171#if DCM_SKIP_DECODING_FRAMES
     172#if FLEX_CODING_ORDER
     173  Bool  decode (Bool bEos, TComBitstream* pcBitstream, UInt& ruiPOC, TComList<TComPic*>*& rpcListPic, NalUnitType& reNalUnitType, TComSPS& cComSPS, Int& iSkipFrame, Int& iPOCLastDisplay, Bool& bNewPictureType);
     174#else
    169175  Bool  decode (Bool bEos, TComBitstream* pcBitstream, UInt& ruiPOC, TComList<TComPic*>*& rpcListPic, NalUnitType& reNalUnitType, TComSPS& cComSPS, Int& iSkipFrame, Int& iPOCLastDisplay);
     176
     177#endif
    170178#else
    171179  Void  decode ( Bool bEos, TComBitstream* pcBitstream, UInt& ruiPOC, TComList<TComPic*>*& rpcListPic, NalUnitType& reNalUnitType, TComSPS& cComSPS );
Note: See TracChangeset for help on using the changeset viewer.