Changeset 916 in SHVCSoftware for branches/SHM-upgrade/source/Lib/TLibCommon/TComMotionInfo.h
- Timestamp:
- 12 Nov 2014, 08:09:17 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-upgrade/source/Lib/TLibCommon/TComMotionInfo.h
r820 r916 2 2 * License, included below. This software may be subject to other third party 3 3 * and contributor rights, including patent rights, and no such rights are 4 * granted under this license. 4 * granted under this license. 5 5 * 6 6 * Copyright (c) 2010-2014, ITU/ISO/IEC … … 68 68 TComMv m_acMv; 69 69 Int m_iRefIdx; 70 70 71 71 public: 72 72 TComMvField() : m_iRefIdx( NOT_VALID ) {} 73 73 74 74 Void setMvField( TComMv const & cMv, Int iRefIdx ) 75 75 { … … 77 77 m_iRefIdx = iRefIdx; 78 78 } 79 79 80 80 Void setRefIdx( Int refIdx ) { m_iRefIdx = refIdx; } 81 81 82 82 TComMv const & getMv() const { return m_acMv; } 83 83 TComMv & getMv() { return m_acMv; } 84 84 85 85 Int getRefIdx() const { return m_iRefIdx; } 86 86 Int getHor () const { return m_acMv.getHor(); } … … 97 97 UInt m_uiNumPartition; 98 98 AMVPInfo m_cAMVPInfo; 99 99 100 100 template <typename T> 101 101 Void setAll( T *p, T const & val, PartSize eCUMode, Int iPartAddr, UInt uiDepth, Int iPartIdx ); … … 108 108 // create / destroy 109 109 // ------------------------------------------------------------------------------------------------------------------ 110 110 111 111 Void create( UInt uiNumPartition ); 112 112 Void destroy(); 113 113 114 114 // ------------------------------------------------------------------------------------------------------------------ 115 115 // clear / copy … … 117 117 118 118 Void clearMvField(); 119 119 120 120 Void copyFrom( TComCUMvField const * pcCUMvFieldSrc, Int iNumPartSrc, Int iPartAddrDst ); 121 121 Void copyTo ( TComCUMvField* pcCUMvFieldDst, Int iPartAddrDst ) const; 122 122 Void copyTo ( TComCUMvField* pcCUMvFieldDst, Int iPartAddrDst, UInt uiOffset, UInt uiNumPart ) const; 123 123 124 124 // ------------------------------------------------------------------------------------------------------------------ 125 125 // get 126 126 // ------------------------------------------------------------------------------------------------------------------ 127 127 128 128 TComMv const & getMv ( Int iIdx ) const { return m_pcMv [iIdx]; } 129 129 TComMv const & getMvd ( Int iIdx ) const { return m_pcMvd [iIdx]; } 130 130 Int getRefIdx( Int iIdx ) const { return m_piRefIdx[iIdx]; } 131 131 132 132 AMVPInfo* getAMVPInfo () { return &m_cAMVPInfo; } 133 133 134 134 // ------------------------------------------------------------------------------------------------------------------ 135 135 // set 136 136 // ------------------------------------------------------------------------------------------------------------------ 137 137 138 138 Void setAllMv ( TComMv const & rcMv, PartSize eCUMode, Int iPartAddr, UInt uiDepth, Int iPartIdx=0 ); 139 139 Void setAllMvd ( TComMv const & rcMvd, PartSize eCUMode, Int iPartAddr, UInt uiDepth, Int iPartIdx=0 ); … … 145 145 m_uiNumPartition = iNumPart; 146 146 } 147 147 148 148 Void linkToWithOffset( TComCUMvField const * src, Int offset ) 149 149 { … … 152 152 m_piRefIdx = src->m_piRefIdx + offset; 153 153 } 154 155 Void compress(Char* pePredMode, Int scale); 154 155 Void compress(Char* pePredMode, Int scale); 156 156 157 157 #if REF_IDX_MFM
Note: See TracChangeset for help on using the changeset viewer.