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/TLibEncoder
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-6.2-dev1-MediaTek/source/Lib/TLibEncoder/TEncCavlc.cpp

    r374 r384  
    716716      }
    717717#endif
    718     }
     718
     719    }
     720
     721#if MTK_D0156
     722#if MERL_VSP_COMPENSATION_C0152
     723    WRITE_FLAG( pcSPS->getUseVSPCompensation() ? 1 : 0,              "view_synthesis_pred_flag" );
     724#endif
     725
     726    WRITE_FLAG( pcSPS->getUseDVPRefine() ? 1 : 0,                    "dv_refine_flag" );
     727#endif
    719728  }
    720729  else
  • branches/HTM-6.2-dev1-MediaTek/source/Lib/TLibEncoder/TEncCfg.h

    r332 r384  
    336336#endif
    337337
     338#if MTK_D0156
     339
     340#if MERL_VSP_COMPENSATION_C0152
     341  Bool      m_bUseVSPCompensation;
     342#endif
     343  Bool      m_bUseDVPRefine;
     344#endif
     345
    338346public:
    339347  TEncCfg()          {}
     
    809817  Int       getViewOrderIdx                 ()      { return  m_iViewOrderIdx; }    // will be changed to view_id
    810818#endif
     819
     820#if MTK_D0156
     821
     822#if MERL_VSP_COMPENSATION_C0152
     823  Bool    getUseVSPCompensation( ){  return m_bUseVSPCompensation;}
     824  Void    setUseVSPCompensation( Bool bValue ){ m_bUseVSPCompensation = bValue;}
     825#endif
     826
     827
     828  Bool    getUseDVPRefine( ){  return m_bUseDVPRefine;}
     829  Void    setUseDVPRefine( Bool bValue ){ m_bUseDVPRefine = bValue;}
     830#endif
     831
    811832};
    812833
  • branches/HTM-6.2-dev1-MediaTek/source/Lib/TLibEncoder/TEncCu.cpp

    r374 r384  
    19261926          rpcTempCU->setMergeIndexSubParts( uiMergeCand, 0, 0, uhDepth ); // interprets depth relative to LCU level
    19271927#if MERL_VSP_C0152
     1928
     1929#if MTK_D0156
     1930          if( !rpcTempCU->getSlice()->getSPS()->getUseVSPCompensation() )
     1931          {
     1932              rpcTempCU->setVSPIndexSubParts( 0, 0, 0, uhDepth );
     1933          }
     1934          else
     1935#endif
    19281936          {
    19291937            Int iVSPIdx = 0;
  • branches/HTM-6.2-dev1-MediaTek/source/Lib/TLibEncoder/TEncSearch.cpp

    r355 r384  
    29892989      pcCU->getCUMvField(REF_PIC_LIST_1)->setAllMvField( cMvFieldNeighbours[1 + 2*uiMergeCand], ePartSize, uiAbsPartIdx, 0, iPUIdx );
    29902990#if MERL_VSP_C0152
     2991#if MTK_D0156
     2992      if( !pcCU->getSlice()->getSPS()->getUseVSPCompensation() )
     2993      {
     2994          pcCU->setVSPIndexSubParts( 0, uiAbsPartIdx, iPUIdx, pcCU->getDepth( uiAbsPartIdx ) );
     2995      }
     2996      else
     2997#endif
    29912998      {
    29922999        Int iVSPIdx = 0;
     
    37183725        pcCU->setMergeIndexSubParts( uiMRGIndex,    uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );
    37193726#if MERL_VSP_C0152
     3727
     3728#if MTK_D0156
     3729        if( !pcCU->getSlice()->getSPS()->getUseVSPCompensation() )
     3730        {
     3731            pcCU->setVSPIndexSubParts( 0, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );
     3732        }
     3733        else
     3734#endif
    37203735        {
    37213736          Int iVSPIdx = 0;
  • branches/HTM-6.2-dev1-MediaTek/source/Lib/TLibEncoder/TEncTop.cpp

    r332 r384  
    710710#endif
    711711
     712
     713#if MTK_D0156
     714#if MERL_VSP_COMPENSATION_C0152
     715  m_cSPS.setUseVSPCompensation           ( m_bUseVSPCompensation );
     716#endif
     717  m_cSPS.setUseDVPRefine                 ( m_bUseDVPRefine       );
     718#endif
     719
    712720  if( m_isDepth )
    713721  {
     
    744752      m_cSPS.setMultiviewResPredMode  ( m_uiMultiviewResPredMode );
    745753#endif
     754
    746755    }
    747756    else
Note: See TracChangeset for help on using the changeset viewer.