Ignore:
Timestamp:
18 Jun 2013, 23:24:53 (11 years ago)
Author:
tech
Message:
  • changed IV-MERGE HLS to match Test Model 4 spec
  • incorporated iv-refpic list to TComSlice
  • removed TComDepthMapGenerator
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.3-dev2/source/Lib/TLibEncoder/TEncGOP.cpp

    r478 r479  
    4949#include <time.h>
    5050#include <math.h>
    51 #if H_3D_IV_MERGE
    52 #include "../../App/TAppEncoder/TAppEncTop.h"
    53 #endif
     51
    5452using namespace std;
    5553//! \ingroup TLibEncoder
     
    109107  m_viewIndex  =   0;
    110108  m_isDepth = false;
    111 #if H_3D_IV_MERGE
    112   m_pcDepthMapGenerator = NULL;
    113 #endif
    114109#endif
    115110#endif
     
    160155  m_viewIndex            = pcTEncTop->getViewIndex();
    161156  m_isDepth              = pcTEncTop->getIsDepth();
    162 #if H_3D_IV_MERGE
    163   m_pcDepthMapGenerator  = pcTEncTop->getDepthMapGenerator();
    164 #endif
    165157#endif
    166158#endif
     
    502494    pcPic->setCurrSliceIdx(0);
    503495
     496#if H_3D_GEN
     497    m_pcSliceEncoder->initEncSlice ( pcPic, iPOCLast, pocCurr, iNumPicRcvd, iGOPid, pcSlice, m_pcEncTop->getVPS(), m_pcEncTop->getSPS(), m_pcEncTop->getPPS() );     
     498#else
    504499    m_pcSliceEncoder->initEncSlice ( pcPic, iPOCLast, pocCurr, iNumPicRcvd, iGOPid, pcSlice, m_pcEncTop->getSPS(), m_pcEncTop->getPPS() );
     500#endif
    505501    pcSlice->setLastIDR(m_iLastIDR);
    506502    pcSlice->setSliceIdx(0);
     
    510506    pcSlice->setLayerId     ( getLayerId() );
    511507    pcSlice->setViewId      ( getViewId()  );   
     508#if !H_3D_GEN
    512509    pcSlice->setVPS         ( m_pcEncTop->getVPS() );
     510#endif
    513511#if H_3D
    514512    pcPic  ->setViewIndex   ( getViewIndex() );
     
    516514    pcSlice->setViewIndex   ( getViewIndex()  );
    517515    pcSlice->setIsDepth( getIsDepth() );   
    518     pcSlice->setCamparaSlice( pcPic->getCodedScale(), pcPic->getCodedOffset() );
    519 #endif
    520 #endif
     516    pcSlice->setCamparaSlice( pcPic->getCodedScale(), pcPic->getCodedOffset() );   
     517#endif
     518#endif 
    521519    //set default slice level flag to the same as SPS level flag
    522520    pcSlice->setLFCrossSliceBoundaryFlag(  pcSlice->getPPS()->getLoopFilterAcrossSlicesEnabledFlag()  );
     
    682680#endif
    683681
    684 #if H_3D_IV_MERGE
    685     TAppEncTop* tAppEncTop = m_pcEncTop->getEncTop();
    686     TComPic * const pcTexturePic = m_pcEncTop->getIsDepth() ? tAppEncTop->getPicFromView( getViewIndex(), pcSlice->getPOC(), false ) : NULL;
    687     assert( !m_pcEncTop->getIsDepth() || pcTexturePic != NULL );
    688     pcSlice->setTexturePic( pcTexturePic );
     682#if H_3D
     683    pcSlice->setIvPicLists( m_ivPicLists );         
     684#if H_3D_IV_MERGE   
     685    assert( !m_pcEncTop->getIsDepth() || ( pcSlice->getTexturePic() != 0 ) );
     686#endif   
    689687#endif
    690688    //  Slice info. refinement
     
    10421040    m_storedStartCUAddrForEncodingSliceSegment.push_back(nextCUAddr);
    10431041    startCUAddrSliceSegmentIdx++;
    1044 #if H_3D_IV_MERGE
    1045     m_pcDepthMapGenerator->initViewComponent( pcPic );
    1046 #endif
    10471042#if H_3D_NBDV
    10481043      if(pcSlice->getViewIndex() && !pcSlice->getIsDepth()) //Notes from QC: this condition shall be changed once the configuration is completed, e.g. in pcSlice->getSPS()->getMultiviewMvPredMode() || ARP in prev. HTM. Remove this comment once it is done.
Note: See TracChangeset for help on using the changeset viewer.