Ignore:
Timestamp:
12 Nov 2014, 08:09:17 (10 years ago)
Author:
seregin
Message:

initial porting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-upgrade/source/Lib/TLibCommon/TComMotionInfo.h

    r820 r916  
    22 * License, included below. This software may be subject to other third party
    33 * and contributor rights, including patent rights, and no such rights are
    4  * granted under this license. 
     4 * granted under this license.
    55 *
    66 * Copyright (c) 2010-2014, ITU/ISO/IEC
     
    6868  TComMv    m_acMv;
    6969  Int       m_iRefIdx;
    70  
     70
    7171public:
    7272  TComMvField() : m_iRefIdx( NOT_VALID ) {}
    73  
     73
    7474  Void setMvField( TComMv const & cMv, Int iRefIdx )
    7575  {
     
    7777    m_iRefIdx = iRefIdx;
    7878  }
    79  
     79
    8080  Void setRefIdx( Int refIdx ) { m_iRefIdx = refIdx; }
    81  
     81
    8282  TComMv const & getMv() const { return  m_acMv; }
    8383  TComMv       & getMv()       { return  m_acMv; }
    84  
     84
    8585  Int getRefIdx() const { return  m_iRefIdx;       }
    8686  Int getHor   () const { return  m_acMv.getHor(); }
     
    9797  UInt      m_uiNumPartition;
    9898  AMVPInfo  m_cAMVPInfo;
    99    
     99
    100100  template <typename T>
    101101  Void setAll( T *p, T const & val, PartSize eCUMode, Int iPartAddr, UInt uiDepth, Int iPartIdx );
     
    108108  // create / destroy
    109109  // ------------------------------------------------------------------------------------------------------------------
    110  
     110
    111111  Void    create( UInt uiNumPartition );
    112112  Void    destroy();
    113  
     113
    114114  // ------------------------------------------------------------------------------------------------------------------
    115115  // clear / copy
     
    117117
    118118  Void    clearMvField();
    119  
     119
    120120  Void    copyFrom( TComCUMvField const * pcCUMvFieldSrc, Int iNumPartSrc, Int iPartAddrDst );
    121121  Void    copyTo  ( TComCUMvField* pcCUMvFieldDst, Int iPartAddrDst ) const;
    122122  Void    copyTo  ( TComCUMvField* pcCUMvFieldDst, Int iPartAddrDst, UInt uiOffset, UInt uiNumPart ) const;
    123  
     123
    124124  // ------------------------------------------------------------------------------------------------------------------
    125125  // get
    126126  // ------------------------------------------------------------------------------------------------------------------
    127  
     127
    128128  TComMv const & getMv    ( Int iIdx ) const { return  m_pcMv    [iIdx]; }
    129129  TComMv const & getMvd   ( Int iIdx ) const { return  m_pcMvd   [iIdx]; }
    130130  Int            getRefIdx( Int iIdx ) const { return  m_piRefIdx[iIdx]; }
    131  
     131
    132132  AMVPInfo* getAMVPInfo () { return &m_cAMVPInfo; }
    133  
     133
    134134  // ------------------------------------------------------------------------------------------------------------------
    135135  // set
    136136  // ------------------------------------------------------------------------------------------------------------------
    137  
     137
    138138  Void    setAllMv     ( TComMv const & rcMv,         PartSize eCUMode, Int iPartAddr, UInt uiDepth, Int iPartIdx=0 );
    139139  Void    setAllMvd    ( TComMv const & rcMvd,        PartSize eCUMode, Int iPartAddr, UInt uiDepth, Int iPartIdx=0 );
     
    145145    m_uiNumPartition = iNumPart;
    146146  }
    147  
     147
    148148  Void linkToWithOffset( TComCUMvField const * src, Int offset )
    149149  {
     
    152152    m_piRefIdx = src->m_piRefIdx + offset;
    153153  }
    154  
    155   Void compress(Char* pePredMode, Int scale); 
     154
     155  Void compress(Char* pePredMode, Int scale);
    156156
    157157#if REF_IDX_MFM
Note: See TracChangeset for help on using the changeset viewer.