Changeset 56 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComPicYuv.h
- Timestamp:
- 11 May 2012, 21:20:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/TComPicYuv.h
r5 r56 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 * Copyright (c) 2010-201 1,ISO/IEC6 * Copyright (c) 2010-2012, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 15 15 * this list of conditions and the following disclaimer in the documentation 16 16 * and/or other materials provided with the distribution. 17 * * Neither the name of the I SO/IEC nor the names of its contributors may17 * * Neither the name of the ITU/ISO/IEC nor the names of its contributors may 18 18 * be used to endorse or promote products derived from this software without 19 19 * specific prior written permission. … … 32 32 */ 33 33 34 35 36 34 /** \file TComPicYuv.h 37 35 \brief picture YUV buffer class (header) … … 43 41 #include <stdio.h> 44 42 #include "CommonDef.h" 43 #include "TComRom.h" 44 45 //! \ingroup TLibCommon 46 //! \{ 45 47 46 48 // ==================================================================================================================== … … 79 81 Int m_iNumCuInWidth; 80 82 83 Int* m_cuOffsetY; 84 Int* m_cuOffsetC; 85 Int* m_buOffsetY; 86 Int* m_buOffsetC; 87 81 88 Int m_iLumaMarginX; 82 89 Int m_iLumaMarginY; … … 110 117 Int getWidth () { return m_iPicWidth; } 111 118 Int getHeight () { return m_iPicHeight; } 112 119 113 120 UInt getMaxCuWidth () { return (UInt)m_iCuWidth; } 114 121 UInt getMaxCuHeight() { return (UInt)m_iCuHeight; } 115 122 UInt getMaxCuDepth () { return m_uiMaxCuDepth; } 116 123 117 124 Int getStride () { return (m_iPicWidth ) + (m_iLumaMarginX <<1); } 118 125 Int getCStride () { return (m_iPicWidth >> 1) + (m_iChromaMarginX<<1); } … … 138 145 139 146 // Access starting position of original picture for specific coding unit (CU) or partition unit (PU) 140 Pel* getLumaAddr ( Int iCuAddr ) ;141 Pel* getCbAddr ( Int iCuAddr ) ;142 Pel* getCrAddr ( Int iCuAddr ) ;143 Pel* getLumaAddr ( Int iCuAddr, Int uiAbsZorderIdx ) ;144 Pel* getCbAddr ( Int iCuAddr, Int uiAbsZorderIdx ) ;145 Pel* getCrAddr ( Int iCuAddr, Int uiAbsZorderIdx ) ;147 Pel* getLumaAddr ( Int iCuAddr ) { return m_piPicOrgY + m_cuOffsetY[ iCuAddr ]; } 148 Pel* getCbAddr ( Int iCuAddr ) { return m_piPicOrgU + m_cuOffsetC[ iCuAddr ]; } 149 Pel* getCrAddr ( Int iCuAddr ) { return m_piPicOrgV + m_cuOffsetC[ iCuAddr ]; } 150 Pel* getLumaAddr ( Int iCuAddr, Int uiAbsZorderIdx ) { return m_piPicOrgY + m_cuOffsetY[iCuAddr] + m_buOffsetY[g_auiZscanToRaster[uiAbsZorderIdx]]; } 151 Pel* getCbAddr ( Int iCuAddr, Int uiAbsZorderIdx ) { return m_piPicOrgU + m_cuOffsetC[iCuAddr] + m_buOffsetC[g_auiZscanToRaster[uiAbsZorderIdx]]; } 152 Pel* getCrAddr ( Int iCuAddr, Int uiAbsZorderIdx ) { return m_piPicOrgV + m_cuOffsetC[iCuAddr] + m_buOffsetC[g_auiZscanToRaster[uiAbsZorderIdx]]; } 146 153 154 147 155 // ------------------------------------------------------------------------------------------------ 148 156 // Miscellaneous 149 157 // ------------------------------------------------------------------------------------------------ 150 158 151 159 // sample to block and block to sample conversion 152 160 Void getTopLeftSamplePos( Int iCuAddr, Int iAbsZorderIdx, Int& riX, Int& riY ); 153 161 Void getCUAddrAndPartIdx( Int iX, Int iY, Int& riCuAddr, Int& riAbsZorderIdx ); 154 162 163 155 164 // Copy function to picture 156 165 Void copyToPic ( TComPicYuv* pcPicYuvDst ); … … 179 188 void calcMD5(TComPicYuv& pic, unsigned char digest[16]); 180 189 190 //! \} 191 181 192 #endif // __TCOMPICYUV__ 182
Note: See TracChangeset for help on using the changeset viewer.