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/TLibCommon/TComSlice.h

    r478 r479  
    5454class TComPicLists;
    5555#endif
    56 #if H_3D_IV_MERGE
    57 class TComDepthMapGenerator;
    58 #endif
    5956// ====================================================================================================================
    6057// Constants
     
    540537  Int         m_refLayerId               [ MAX_NUM_LAYERS ][MAX_NUM_LAYERS]; 
    541538
     539#if H_3D_IV_MERGE
     540  Bool        m_ivMvPredFlag             [ MAX_NUM_LAYERS ];
     541#endif
    542542#endif
    543543public:
     
    673673  Bool    checkVPSExtensionSyntax();
    674674  Int     scalTypeToScalIdx   ( ScalabilityType scalType );
     675#if H_3D_IV_MERGE
     676  Void    setIvMvPredFlag     ( Int layerIdInVps, Bool val )  { m_ivMvPredFlag[ layerIdInVps ] = val; }
     677  Bool    getIvMvPredFlag     ( Int layerIdInVps )            { return m_ivMvPredFlag[ layerIdInVps ]; };
     678#endif
    675679#endif
    676680};
     
    984988  Int         m_aaiCodedScale [2][MAX_NUM_LAYERS];
    985989  Int         m_aaiCodedOffset[2][MAX_NUM_LAYERS];
    986 #if H_3D_IV_MERGE
    987   UInt        m_uiMultiviewMvPredMode;
    988   UInt        m_uiPredDepthMapGeneration;
    989 
    990   UInt        m_uiViewIndex;
    991   Bool        m_bDepth;
    992   TComDepthMapGenerator* m_pcDepthMapGenerator;
    993 #endif
    994990#endif
    995991public:
     
    11351131  Int* getInvCodedScale      ()  { return m_aaiCodedScale [1]; }
    11361132  Int* getInvCodedOffset     ()  { return m_aaiCodedOffset[1]; }
    1137 #if H_3D_IV_MERGE
    1138   Void  initCamParaSPSDepth      ( UInt uiViewIndex);
    1139   UInt  getMultiviewMvPredMode   ()          { return m_uiMultiviewMvPredMode;    }
    1140   UInt  getPredDepthMapGeneration()          { return m_uiPredDepthMapGeneration; }
    1141 
    1142   UInt  getViewIndex             ()  { return m_uiViewIndex; }
    1143   Bool  isDepth               ()  { return m_bDepth; }
    1144   Void  setDepthMapGenerator( TComDepthMapGenerator* pcDepthMapGenerator )  { m_pcDepthMapGenerator = pcDepthMapGenerator; }
    1145   TComDepthMapGenerator*  getDepthMapGenerator()                                              { return m_pcDepthMapGenerator; }
    1146   Void setPredDepthMapGeneration( UInt uiViewIndex, Bool bIsDepth, UInt uiPdmGenMode = 0, UInt uiPdmMvPredMode = 0);
    1147 #endif
    11481133#endif
    11491134};
     
    14361421#endif
    14371422  Bool        m_bIsUsedAsLongTerm[2][MAX_NUM_REF+1];
    1438 #if H_3D_IV_MERGE
    1439   TComPic*    m_pcTexturePic;
    1440 #endif
    14411423  Int         m_iDepth;
    14421424 
     
    15101492  Bool       m_isDepth;
    15111493  Int        m_aaiCodedScale [2][MAX_NUM_LAYERS];
    1512   Int        m_aaiCodedOffset[2][MAX_NUM_LAYERS];
     1494  Int        m_aaiCodedOffset[2][MAX_NUM_LAYERS]; 
     1495#if H_3D_GEN
     1496  TComPic*   m_ivPicsCurrPoc [2][MAX_NUM_LAYERS]; 
     1497#endif
    15131498#endif
    15141499#endif
     
    15691554  TComPic*  getRefPic           ( RefPicList e, Int iRefIdx)    { return  m_apcRefPicList[e][iRefIdx];  }
    15701555  Int       getRefPOC           ( RefPicList e, Int iRefIdx)    { return  m_aiRefPOCList[e][iRefIdx];   }
     1556#if H_3D_GEN
     1557  TComPic*  getIvPic            ( Bool depthFlag, Int viewIndex){ return  m_ivPicsCurrPoc[ depthFlag ? 1 : 0 ][ viewIndex ]; }
     1558#endif
    15711559#if H_3D_IV_MERGE
    1572   TComPic*  getTexturePic       () const                        { return  m_pcTexturePic; }
     1560  TComPic*  getTexturePic       ()                              { return  m_ivPicsCurrPoc[0][ m_viewIndex ]; }
    15731561#endif
    15741562  Int       getDepth            ()                              { return  m_iDepth;                     }
     
    16221610  Void      setRefPic           ( TComPic* p, RefPicList e, Int iRefIdx ) { m_apcRefPicList[e][iRefIdx] = p; }
    16231611  Void      setRefPOC           ( Int i, RefPicList e, Int iRefIdx ) { m_aiRefPOCList[e][iRefIdx] = i; }
    1624 #if H_3D_IV_MERGE
    1625   Void      setTexturePic       ( TComPic *pcTexturePic )       { m_pcTexturePic = pcTexturePic; }
    1626 #endif
    16271612  Void      setNumRefIdx        ( RefPicList e, Int i )         { m_aiNumRefIdx[e]    = i;      }
    16281613  Void      setPic              ( TComPic* p )                  { m_pcPic             = p;      }
     
    17891774#endif
    17901775#endif
     1776#if H_3D_GEN
     1777  Void    setIvPicLists( TComPicLists* m_ivPicLists );
     1778#endif
     1779
    17911780protected:
    17921781  TComPic*  xGetRefPic  (TComList<TComPic*>& rcListPic,
     
    17941783TComPic*  xGetLongTermRefPic(TComList<TComPic*>& rcListPic, Int poc, Bool pocHasMsb);
    17951784#if H_MV
    1796   TComPic*  xGetInterLayerRefPic( std::vector<TComPic*>& rcListIlPic, Int layerId );
     1785  TComPic*  xGetInterLayerRefPic( std::vector<TComPic*>& rcListIlPic, Int layerId ); 
    17971786#endif
    17981787};// END CLASS DEFINITION TComSlice
Note: See TracChangeset for help on using the changeset viewer.