Ignore:
Timestamp:
5 Feb 2013, 02:08:48 (12 years ago)
Author:
mitsubishi-htm
Message:

-Harmonize the implementation of compensation function with existing ones.

Location:
branches/HTM-5.1-dev3-MERL/source/Lib/TLibEncoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-5.1-dev3-MERL/source/Lib/TLibEncoder/TEncCu.cpp

    r231 r257  
    19731973        {
    19741974#if MERL_VSP_C0152
    1975             m_pcPredSearch->motionCompensationBWVSP ( rpcTempCU, m_ppcPredYuvTemp[uhDepth],  rpcTempCU->getZorderIdxInCU() );
     1975            m_pcPredSearch->motionCompensation ( rpcTempCU, m_ppcPredYuvTemp[uhDepth],  rpcTempCU->getZorderIdxInCU() );
    19761976#else
    19771977            m_pcPredSearch->motionCompensation ( rpcTempCU, m_ppcPredYuvTemp[uhDepth] );
     
    19871987            {
    19881988#if MERL_VSP_C0152
    1989               m_pcPredSearch->motionCompensationBWVSP ( rpcTempCU, m_ppcPredYuvTemp[uhDepth], rpcTempCU->getZorderIdxInCU() );
     1989              m_pcPredSearch->motionCompensation( rpcTempCU, m_ppcPredYuvTemp[uhDepth], rpcTempCU->getZorderIdxInCU() );
    19901990#else
    19911991              m_pcPredSearch->motionCompensation ( rpcTempCU, m_ppcPredYuvTemp[uhDepth] );
     
    28242824    rpcTempCU->setPredModeSubParts( bSkipResidual ? MODE_SKIP : MODE_INTER, 0, uhDepth );
    28252825#if MERL_VSP_C0152
    2826     m_pcPredSearch->motionCompensationBWVSP( rpcTempCU, m_ppcPredYuvTemp[uhDepth], rpcTempCU->getZorderIdxInCU()  );
     2826    m_pcPredSearch->motionCompensation( rpcTempCU, m_ppcPredYuvTemp[uhDepth], rpcTempCU->getZorderIdxInCU()  );
    28272827#else
    28282828    m_pcPredSearch->motionCompensation( rpcTempCU, m_ppcPredYuvTemp[uhDepth] );
  • branches/HTM-5.1-dev3-MERL/source/Lib/TLibEncoder/TEncSearch.cpp

    r231 r257  
    29062906  pcCU->getPartIndexAndSize( iPartIdx, uiAbsPartIdx, iWidth, iHeight );
    29072907#if MERL_VSP_C0152
    2908   motionCompensationBWVSP( pcCU, &m_tmpYuvPred,  pcCU->getZorderIdxInCU(), REF_PIC_LIST_X, iPartIdx );
     2908  motionCompensation( pcCU, &m_tmpYuvPred,  pcCU->getZorderIdxInCU(), REF_PIC_LIST_X, iPartIdx );
    29092909#endif
    29102910  DistParam cDistParam;
     
    34143414              {
    34153415                TComYuv*  pcYuvPred = &m_acYuvPred[iRefList];
     3416#if MERL_VSP_C0152
     3417                motionCompensation ( pcCU, pcYuvPred, pcCU->getZorderIdxInCU(),  eRefPicList, iPartIdx );
     3418#else
    34163419                motionCompensation ( pcCU, pcYuvPred, eRefPicList, iPartIdx );
     3420#endif
    34173421              }
    34183422              if ( (pcCU->getSlice()->getNoBackPredFlag() || (pcCU->getSlice()->getNumRefIdx(REF_PIC_LIST_C) > 0 && pcCU->getSlice()->getRefIdxOfL0FromRefIdxOfL1(0)==0 )) && eRefPicList == REF_PIC_LIST_0 )
    34193423              {
    34203424                TComYuv*  pcYuvPred = &m_acYuvPred[iRefList];
     3425#if MERL_VSP_C0152
     3426                motionCompensation ( pcCU, pcYuvPred, pcCU->getZorderIdxInCU(),  eRefPicList, iPartIdx );
     3427#else
    34213428                motionCompensation ( pcCU, pcYuvPred, eRefPicList, iPartIdx );
     3429#endif
    34223430              }
    34233431#if H0111_MVD_L1_ZERO
     
    34603468        pcCU->getCUMvField( REF_PIC_LIST_1 )->setAllRefIdx( iRefIdxBi[1], ePartSize, uiPartAddr, 0, iPartIdx );
    34613469        TComYuv* pcYuvPred = &m_acYuvPred[1];
     3470#if MERL_VSP_C0152
     3471        motionCompensation( pcCU, pcYuvPred, pcCU->getZorderIdxInCU(),  REF_PIC_LIST_1, iPartIdx );
     3472#else
    34623473        motionCompensation( pcCU, pcYuvPred, REF_PIC_LIST_1, iPartIdx );
    3463 
     3474#endif
    34643475        uiMotBits[0] = uiBits[0] - uiMbBits[0];
    34653476        uiMotBits[1] = uiMbBits[1];
     
    36003611
    36013612              TComYuv* pcYuvPred = &m_acYuvPred[iRefList];
     3613#if MERL_VSP_C0152
     3614              motionCompensation( pcCU, pcYuvPred, pcCU->getZorderIdxInCU(),  REF_PIC_LIST_1, iPartIdx );
     3615#else
    36023616              motionCompensation( pcCU, pcYuvPred, eRefPicList, iPartIdx );
     3617#endif
    36033618#if H0111_MVD_L1_ZERO
    36043619            }
     
    39413956    //  MC
    39423957#if MERL_VSP_C0152
    3943     motionCompensationBWVSP ( pcCU, rpcPredYuv, pcCU->getZorderIdxInCU(), REF_PIC_LIST_X, iPartIdx);
     3958    motionCompensation ( pcCU, rpcPredYuv, pcCU->getZorderIdxInCU(), REF_PIC_LIST_X, iPartIdx);
    39443959#else
    39453960    motionCompensation ( pcCU, rpcPredYuv, REF_PIC_LIST_X, iPartIdx );
Note: See TracChangeset for help on using the changeset viewer.