Changeset 5 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComPic.h
- Timestamp:
- 12 Dec 2011, 18:35:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/TComPic.h
r2 r5 1 /* The copyright in this software is being made available under the BSD 2 * License, included below. This software may be subject to other third party 3 * and contributor rights, including patent rights, and no such rights are 4 * granted under this license. 5 * 6 * Copyright (c) 2010-2011, ISO/IEC 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions are met: 11 * 12 * * Redistributions of source code must retain the above copyright notice, 13 * this list of conditions and the following disclaimer. 14 * * Redistributions in binary form must reproduce the above copyright notice, 15 * this list of conditions and the following disclaimer in the documentation 16 * and/or other materials provided with the distribution. 17 * * Neither the name of the ISO/IEC nor the names of its contributors may 18 * be used to endorse or promote products derived from this software without 19 * specific prior written permission. 20 * 21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 22 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 23 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 24 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS 25 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 26 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31 * THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 1 34 2 35 … … 26 59 private: 27 60 TComPicSym* m_apcPicSym; // Symbol 28 61 29 62 TComPicYuv* m_apcPicYuv[2]; // Texture, 0:org / 1:rec 63 #if DEPTH_MAP_GENERATION 30 64 TComPicYuv* m_pcPredDepthMap; // estimated depth map 65 #endif 66 #if HHI_INTER_VIEW_MOTION_PRED 31 67 TComPicYuv* m_pcOrgDepthMap; // original depth map 68 #endif 69 #if HHI_INTER_VIEW_RESIDUAL_PRED 32 70 TComPicYuv* m_pcResidual; // residual buffer (coded or inter-view predicted residual) 33 71 #endif 72 34 73 TComPicYuv* m_pcPicYuvPred; // Prediction 35 74 TComPicYuv* m_pcPicYuvResi; // Residual … … 39 78 Bool m_bReconstructed; 40 79 UInt m_uiCurrSliceIdx; // Index of current slice 41 80 42 81 SEImessages* m_SEIs; ///< Any SEI messages that have been received. If !NULL we own the object. 43 82 44 // SB //GT; Why? can be accesed by getSlice()->getXXX?45 83 SliceType m_eSliceType; 46 84 double m_dQP; … … 55 93 Int** m_aaiCodedOffset; 56 94 57 //GT 95 #if HHI_VSO 58 96 TComMVDRefData m_cReferenceInfo; 59 TComPicYuv* m_pcUsedPelsMap; 97 #endif 98 #if HHI_INTERVIEW_SKIP 99 TComPicYuv* m_pcUsedPelsMap; 100 #endif 60 101 61 102 … … 63 104 TComPic(); 64 105 virtual ~TComPic(); 65 106 66 107 67 108 Void create( Int iWidth, Int iHeight, UInt uiMaxWidth, UInt uiMaxHeight, UInt uiMaxDepth ); 68 109 Void destroy(); 69 110 70 111 TComPicSym* getPicSym() { return m_apcPicSym; } 71 112 TComSlice* getSlice(Int i) { return m_apcPicSym->getSlice(i); } … … 78 119 #endif 79 120 TComDataCU*& getCU( UInt uiCUAddr ) { return m_apcPicSym->getCU( uiCUAddr ); } 80 81 // SB 121 82 122 SliceType getSliceType() { return m_eSliceType ;} 83 123 double getQP() { return m_dQP ;} … … 86 126 TComPicYuv* getPicYuvOrg() { return m_apcPicYuv[0]; } 87 127 TComPicYuv* getPicYuvRec() { return m_apcPicYuv[1]; } 88 128 129 #if DEPTH_MAP_GENERATION 89 130 TComPicYuv* getPredDepthMap() { return m_pcPredDepthMap; } 131 #endif 132 #if HHI_INTER_VIEW_MOTION_PRED 90 133 TComPicYuv* getOrgDepthMap() { return m_pcOrgDepthMap; } 134 #endif 135 #if HHI_INTER_VIEW_RESIDUAL_PRED 91 136 TComPicYuv* getResidual() { return m_pcResidual; } 137 #endif 138 139 #if HHI_INTERVIEW_SKIP 92 140 TComPicYuv* getUsedPelsMap() { return m_pcUsedPelsMap; } 141 #endif 93 142 94 143 … … 97 146 Void setPicYuvPred( TComPicYuv* pcPicYuv ) { m_pcPicYuvPred = pcPicYuv; } 98 147 Void setPicYuvResi( TComPicYuv* pcPicYuv ) { m_pcPicYuvResi = pcPicYuv; } 99 // SB100 148 Void setQP( double dQP ) { m_dQP = dQP; } 101 149 Void setSliceType( SliceType eSliceType ) { m_eSliceType = eSliceType; } … … 116 164 Int** getCodedOffset() { return m_aaiCodedOffset; } 117 165 118 //GT 166 #if HHI_VSO 119 167 TComMVDRefData* getMVDReferenceInfo() { return &m_cReferenceInfo; } 120 168 #endif 169 121 170 UInt getNumCUsInFrame() { return m_apcPicSym->getNumberOfCUsInFrame(); } 122 171 UInt getNumPartInWidth() { return m_apcPicSym->getNumPartInWidth(); } … … 127 176 UInt getMinCUWidth() { return m_apcPicSym->getMinCUWidth(); } 128 177 UInt getMinCUHeight() { return m_apcPicSym->getMinCUHeight(); } 129 178 130 179 UInt getParPelX(UChar uhPartIdx) { return getParPelX(uhPartIdx); } 131 180 UInt getParPelY(UChar uhPartIdx) { return getParPelX(uhPartIdx); } 132 181 133 182 Int getStride() { return m_apcPicYuv[1]->getStride(); } 134 183 Int getCStride() { return m_apcPicYuv[1]->getCStride(); } 135 184 136 185 Void setReconMark (Bool b) { m_bReconstructed = b; } 137 186 Bool getReconMark () { return m_bReconstructed; } 138 187 139 188 #if AMVP_BUFFERCOMPRESS 140 Void compressMotion(); 141 #endif 189 Void compressMotion(); 190 #endif 142 191 UInt getCurrSliceIdx() { return m_uiCurrSliceIdx; } 143 192 Void setCurrSliceIdx(UInt i) { m_uiCurrSliceIdx = i; } … … 150 199 Void addDeblockBuffer (); 151 200 #endif 201 #if DEPTH_MAP_GENERATION 152 202 Void addPrdDepthMapBuffer (); 203 #endif 204 #if HHI_INTER_VIEW_MOTION_PRED 153 205 Void addOrgDepthMapBuffer (); 206 #endif 207 #if HHI_INTER_VIEW_RESIDUAL_PRED 154 208 Void addResidualBuffer (); 209 #endif 210 211 #if HHI_INTERVIEW_SKIP 155 212 Void addUsedPelsMapBuffer (); 156 213 #endif 214 157 215 Void removeOriginalBuffer (); 158 216 #if PARALLEL_MERGED_DEBLK 159 217 Void removeDeblockBuffer (); 160 218 #endif 219 #if DEPTH_MAP_GENERATION 161 220 Void removePrdDepthMapBuffer (); 221 #endif 222 #if HHI_INTER_VIEW_MOTION_PRED 162 223 Void removeOrgDepthMapBuffer (); 224 #endif 225 #if HHI_INTER_VIEW_RESIDUAL_PRED 163 226 Void removeResidualBuffer (); 227 #endif 228 #if HHI_INTERVIEW_SKIP 164 229 Void removeUsedPelsMapBuffer (); 165 230 #endif 231 166 232 #if PARALLEL_MERGED_DEBLK 167 233 TComPicYuv* getPicYuvDeblkBuf() { return m_pcPicYuvDeblkBuf; }
Note: See TracChangeset for help on using the changeset viewer.