Changeset 231 in 3DVCSoftware for branches/HTM-5.1-dev3-MERL/source/Lib/TLibDecoder/TDecTop.h
- Timestamp:
- 26 Jan 2013, 19:36:53 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.1-dev3-MERL/source/Lib/TLibDecoder/TDecTop.h
r210 r231 77 77 Bool isInitialized() const { return m_bInitialized; } 78 78 79 #if MERL_VSP_C0152 80 Int**** getBaseViewShiftLUTI() { return m_aiBaseViewShiftLUT; } 81 #endif 79 82 private: 80 83 Bool xIsComplete (); … … 97 100 Int m_iLastPOC; 98 101 UInt m_uiMaxViewId; 102 103 #if MERL_VSP_C0152 104 UInt m_uiBitDepthForLUT; 105 UInt m_iLog2Precision; 106 UInt m_uiInputBitDepth; 107 // look-up tables 108 Double**** m_adBaseViewShiftLUT; ///< Disparity LUT 109 Int**** m_aiBaseViewShiftLUT; ///< Disparity LUT 110 Void xCreateLUTs( UInt uiNumberSourceViews, UInt uiNumberTargetViews, Double****& radLUT, Int****& raiLUT); 111 Void xInitLUTs( UInt uiSourceView, UInt uiTargetView, Int iScale, Int iOffset, Double****& radLUT, Int****& raiLUT); 112 template<class T> Void xDeleteArray ( T*& rpt, UInt uiSize1, UInt uiSize2, UInt uiSize3 ); 113 template<class T> Void xDeleteArray ( T*& rpt, UInt uiSize1, UInt uiSize2 ); 114 template<class T> Void xDeleteArray ( T*& rpt, UInt uiSize ); 115 #endif 116 99 117 }; 118 119 #if MERL_VSP_C0152 120 template <class T> 121 Void CamParsCollector::xDeleteArray( T*& rpt, UInt uiSize1, UInt uiSize2, UInt uiSize3 ) 122 { 123 if( rpt ) 124 { 125 for( UInt uiK = 0; uiK < uiSize1; uiK++ ) 126 { 127 for( UInt uiL = 0; uiL < uiSize2; uiL++ ) 128 { 129 for( UInt uiM = 0; uiM < uiSize3; uiM++ ) 130 { 131 delete[] rpt[ uiK ][ uiL ][ uiM ]; 132 } 133 delete[] rpt[ uiK ][ uiL ]; 134 } 135 delete[] rpt[ uiK ]; 136 } 137 delete[] rpt; 138 } 139 rpt = NULL; 140 }; 141 142 143 template <class T> 144 Void CamParsCollector::xDeleteArray( T*& rpt, UInt uiSize1, UInt uiSize2 ) 145 { 146 if( rpt ) 147 { 148 for( UInt uiK = 0; uiK < uiSize1; uiK++ ) 149 { 150 for( UInt uiL = 0; uiL < uiSize2; uiL++ ) 151 { 152 delete[] rpt[ uiK ][ uiL ]; 153 } 154 delete[] rpt[ uiK ]; 155 } 156 delete[] rpt; 157 } 158 rpt = NULL; 159 }; 160 161 162 template <class T> 163 Void CamParsCollector::xDeleteArray( T*& rpt, UInt uiSize ) 164 { 165 if( rpt ) 166 { 167 for( UInt uiK = 0; uiK < uiSize; uiK++ ) 168 { 169 delete[] rpt[ uiK ]; 170 } 171 delete[] rpt; 172 } 173 rpt = NULL; 174 }; 175 176 #endif 100 177 101 178 /// decoder class … … 206 283 ParameterSetManagerDecoder* xGetParaSetDec () {return &m_parameterSetManagerDecoder;} 207 284 #endif 285 208 286 protected: 209 287 Void xGetNewPicBuffer (TComSlice* pcSlice, TComPic*& rpcPic);
Note: See TracChangeset for help on using the changeset viewer.