Ignore:
Timestamp:
9 May 2013, 07:51:01 (12 years ago)
Author:
mediatek-htm
Message:

D0156 source code

Location:
branches/HTM-6.2-dev1-MediaTek/source/Lib/TLibCommon
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-6.2-dev1-MediaTek/source/Lib/TLibCommon/TComDataCU.cpp

    r380 r384  
    5353#if MERL_VSP_C0152
    5454
     55#if MTK_D0156
     56#define CHECK_ADD_YET(pcCURef,uiIdx,vspIdx) && ( (!m_pcSlice->getSPS()->getUseVSPCompensation()) || (!( (pcCURef)->getVSPIndex(uiIdx) == vspIdx && bVspMvZeroDone[vspIdx-1] )))
     57#else
    5558#define CHECK_ADD_YET(pcCURef,uiIdx,vspIdx) && !( (pcCURef)->getVSPIndex(uiIdx) == vspIdx && bVspMvZeroDone[vspIdx-1] )
     59#endif
    5660
    5761inline Void TComDataCU::xInheritVspMode( TComDataCU* pcCURef, UInt uiIdx, Bool* bVspMvZeroDone, Int iCount, Int* iVSPIndexTrue, TComMvField* pcMvFieldNeighbours, DisInfo* pDInfo
     
    6165)
    6266{
     67#if MTK_D0156
     68    if( !m_pcSlice->getSPS()->getUseVSPCompensation() )
     69    {
     70        return;
     71    }
     72#endif
     73
    6374  Int vspIdx = (Int) pcCURef->getVSPIndex(uiIdx);
    6475  if( vspIdx != 0 )
     
    8899                                          UChar* puhInterDirNeighbours, TComMvField* pcMvFieldNeighbours, Int* iVSPIndexTrue, Int mrgCandIdx, DisInfo* pDInfo )
    89100{
     101#if MTK_D0156
     102    if( !m_pcSlice->getSPS()->getUseVSPCompensation() )
     103    {
     104        return true;
     105    }
     106#endif
     107
    90108#if MERL_VSP_C0152_BugFix_ForNoDepthCase
    91109  TComPic* pRefPicBaseDepth = NULL;
     
    43474365        bValid = false;
    43484366#endif
     4367
     4368#if MTK_D0156
     4369      if( !m_pcSlice->getSPS()->getUseVSPCompensation())
     4370      {
     4371          bValid = true;
     4372      }
     4373#endif
     4374
    43494375      if (abCandIsInter[i] && abCandIsInter[j]&& (puhInterDirNeighbours[i]&0x1)&&(puhInterDirNeighbours[j]&0x2)
    43504376#if MERL_VSP_C0152
     
    51705196  }
    51715197
     5198#if MTK_D0156
     5199  if( !m_pcSlice->getSPS()->getUseDVPRefine() )
     5200  {
     5201      bDepthRefine = false;
     5202  }
     5203#endif
     5204
    51725205  // Get Positions 
    51735206  PartSize eCUMode    = getPartitionSize( uiPartAddr );   
  • branches/HTM-6.2-dev1-MediaTek/source/Lib/TLibCommon/TComSlice.h

    r374 r384  
    180180  Bool          m_bIVScalingFlag;
    181181#endif
     182
     183#if MTK_D0156
     184#if MERL_VSP_COMPENSATION_C0152
     185  Bool      m_abUseVSPCompensation[ MAX_TLAYER ];
     186#endif
     187  Bool      m_abUseDVPRefine[ MAX_TLAYER ];
     188#endif
     189
    182190public:
    183191  TComVPS();
     
    245253 
    246254#endif
     255
     256#if MTK_D0156
     257#if MERL_VSP_COMPENSATION_C0152
     258  Bool    getUseVSPCompensation( UInt tLayer ){  return m_abUseVSPCompensation[ tLayer ];}
     259  Void    setUseVSPCompensation( Bool bValue, UInt tLayer ){ m_abUseVSPCompensation[ tLayer ] = bValue;}
     260#endif
     261  Bool    getUseDVPRefine( UInt tLayer ){  return m_abUseDVPRefine[ tLayer ];}
     262  Void    setUseDVPRefine( Bool bValue, UInt tLayer ){ m_abUseDVPRefine[ tLayer ] = bValue;}
     263#endif
    247264};
    248265
     
    398415#if H3D_IVRP
    399416  TComResidualGenerator* m_pcResidualGenerator;
     417#endif
     418
     419#if MTK_D0156
     420#if MERL_VSP_COMPENSATION_C0152
     421  Bool      m_bUseVSPCompensation;
     422#endif
     423  Bool      m_bUseDVPRefine;
    400424#endif
    401425
     
    669693  TComResidualGenerator*  getResidualGenerator()                                              { return m_pcResidualGenerator; }
    670694#endif
     695
     696#if MTK_D0156
     697
     698#if MERL_VSP_COMPENSATION_C0152
     699  Bool    getUseVSPCompensation( ){  return m_bUseVSPCompensation;}
     700  Void    setUseVSPCompensation( Bool bValue ){ m_bUseVSPCompensation = bValue;}
     701#endif
     702
     703  Bool    getUseDVPRefine( ){  return m_bUseDVPRefine;}
     704  Void    setUseDVPRefine( Bool bValue ){ m_bUseDVPRefine = bValue;}
     705
     706#endif
    671707};
    672708
     
    11211157  Int          m_iShiftPrec;
    11221158#endif
     1159
    11231160
    11241161public:
  • branches/HTM-6.2-dev1-MediaTek/source/Lib/TLibCommon/TypeDef.h

    r374 r384  
    176176#endif
    177177
     178
    178179///// ***** VSP *********
    179180#define MERL_VSP_C0152                    1 // JCT3V-C0152: 1: enable VSP-related tools; 0: disable VSP-related tools
     
    183184#define MERL_VSP_C0152_BugFix_ForNoDepthCase     1// MERL bugfix for test condition of no depth
    184185#define QC_BVSP_CleanUP_D0191                    1
     186
     187#define MTK_D0156                 1
    185188/*
    186189 * Two macros are used to configure combinations of JCT3V-C0152 and JCT3V-C0131
Note: See TracChangeset for help on using the changeset viewer.