Ignore:
Timestamp:
1 Nov 2012, 04:03:25 (12 years ago)
Author:
mediatek-htm
Message:

Integration of B0083 (macro MTK_UNCONSTRAINED_MVI).
by Jian-Liang Lin (jl.lin@…)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-4.1-dev2-Mediatek/source/Lib/TLibCommon/TComDataCU.cpp

    r156 r161  
    70947094  memcpy( m_puhInterDir + uiAbsPartIdxDst, pcCU->getInterDir() + uiAbsPartIdxSrc,       sizeof( m_puhInterDir[0] ) * uiNumPartition );
    70957095
     7096#if !MTK_UNCONSTRAINED_MVI
    70967097  memcpy( m_apiMVPIdx[0] + uiAbsPartIdxDst, pcCU->getMVPIdx(REF_PIC_LIST_0) + uiAbsPartIdxSrc, sizeof(*m_apiMVPIdx[0]) * uiNumPartition );
    70977098  memcpy( m_apiMVPIdx[1] + uiAbsPartIdxDst, pcCU->getMVPIdx(REF_PIC_LIST_1) + uiAbsPartIdxSrc, sizeof(*m_apiMVPIdx[0]) * uiNumPartition );
    70987099  memcpy( m_apiMVPNum[0] + uiAbsPartIdxDst, pcCU->getMVPNum(REF_PIC_LIST_0) + uiAbsPartIdxSrc, sizeof(*m_apiMVPNum[0]) * uiNumPartition );
    70997100  memcpy( m_apiMVPNum[1] + uiAbsPartIdxDst, pcCU->getMVPNum(REF_PIC_LIST_1) + uiAbsPartIdxSrc, sizeof(*m_apiMVPNum[0]) * uiNumPartition );
     7101#endif
    71007102
    71017103  pcCU->getCUMvField( REF_PIC_LIST_0 )->copyTo( &m_acCUMvField[0], -Int(uiAbsPartIdxSrc) + uiAbsPartIdxDst, uiAbsPartIdxSrc, uiNumPartition );
    71027104  pcCU->getCUMvField( REF_PIC_LIST_1 )->copyTo( &m_acCUMvField[1], -Int(uiAbsPartIdxSrc) + uiAbsPartIdxDst, uiAbsPartIdxSrc, uiNumPartition );
     7105
     7106#if MTK_UNCONSTRAINED_MVI
     7107  if( pcCU->getSlice()->getSliceType() == P_SLICE)
     7108  {
     7109    m_acCUMvField[0].setUndefinedMv( uiAbsPartIdxDst, uiNumPartition, m_pePredMode, m_puhInterDir,  0, 1);
     7110    m_acCUMvField[1].setUndefinedMv( uiAbsPartIdxDst, uiNumPartition, m_pePredMode, m_puhInterDir, -1, 1);
     7111  }
     7112  else
     7113  {
     7114    m_acCUMvField[0].setUndefinedMv( uiAbsPartIdxDst, uiNumPartition, m_pePredMode, m_puhInterDir,  0, 3);
     7115    m_acCUMvField[1].setUndefinedMv( uiAbsPartIdxDst, uiNumPartition, m_pePredMode, m_puhInterDir,  0, 3);
     7116  }
     7117#endif
     7118
    71037119
    71047120#if HHI_FULL_PEL_DEPTH_MAP_MV_ACC
Note: See TracChangeset for help on using the changeset viewer.