Changeset 5 in 3DVCSoftware for trunk/source/Lib/TLibCommon/TComPic.cpp
- Timestamp:
- 12 Dec 2011, 18:35:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/Lib/TLibCommon/TComPic.cpp
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 … … 17 50 m_apcPicYuv[0] = NULL; 18 51 m_apcPicYuv[1] = NULL; 52 #if DEPTH_MAP_GENERATION 19 53 m_pcPredDepthMap = NULL; 54 #endif 55 #if HHI_INTER_VIEW_MOTION_PRED 20 56 m_pcOrgDepthMap = NULL; 57 #endif 58 #if HHI_INTER_VIEW_RESIDUAL_PRED 21 59 m_pcResidual = NULL; 60 #endif 22 61 m_pcPicYuvPred = NULL; 23 62 m_pcPicYuvResi = NULL; 63 #if HHI_INTERVIEW_SKIP 24 64 m_pcUsedPelsMap = NULL; 65 #endif 25 66 26 67 #if PARALLEL_MERGED_DEBLK … … 76 117 } 77 118 119 #if DEPTH_MAP_GENERATION 78 120 if( m_pcPredDepthMap ) 79 121 { … … 82 124 m_pcPredDepthMap = NULL; 83 125 } 84 126 #endif 127 128 #if HHI_INTER_VIEW_MOTION_PRED 85 129 if( m_pcOrgDepthMap ) 86 130 { … … 89 133 m_pcOrgDepthMap = NULL; 90 134 } 91 135 #endif 136 137 #if HHI_INTER_VIEW_RESIDUAL_PRED 92 138 if( m_pcResidual ) 93 139 { … … 96 142 m_pcResidual = NULL; 97 143 } 98 144 #endif 145 146 #if HHI_INTERVIEW_SKIP 99 147 if( m_pcUsedPelsMap ) 100 148 { … … 103 151 m_pcUsedPelsMap = NULL; 104 152 } 153 #endif 105 154 106 155 #if PARALLEL_MERGED_DEBLK … … 160 209 #endif 161 210 211 #if DEPTH_MAP_GENERATION 162 212 Void 163 213 TComPic::addPrdDepthMapBuffer() … … 173 223 m_pcPredDepthMap ->create( iWidth, iHeight, uiMaxCuWidth, uiMaxCuHeight, uiMaxCuDepth ); 174 224 } 175 225 #endif 226 227 #if HHI_INTER_VIEW_MOTION_PRED 176 228 Void 177 229 TComPic::addOrgDepthMapBuffer() … … 187 239 m_pcOrgDepthMap ->create( iWidth, iHeight, uiMaxCuWidth, uiMaxCuHeight, uiMaxCuDepth ); 188 240 } 189 241 #endif 242 243 #if HHI_INTER_VIEW_RESIDUAL_PRED 190 244 Void 191 245 TComPic::addResidualBuffer() … … 201 255 m_pcResidual ->create( iWidth, iHeight, uiMaxCuWidth, uiMaxCuHeight, uiMaxCuDepth ); 202 256 } 203 257 #endif 258 259 #if HHI_INTERVIEW_SKIP 204 260 Void 205 261 TComPic::addUsedPelsMapBuffer() … … 215 271 m_pcUsedPelsMap ->create( iWidth, iHeight, uiMaxCuWidth, uiMaxCuHeight, uiMaxCuDepth ); 216 272 } 273 #endif 217 274 218 275 Void … … 240 297 #endif 241 298 299 #if DEPTH_MAP_GENERATION 242 300 Void 243 301 TComPic::removePrdDepthMapBuffer() … … 250 308 } 251 309 } 252 310 #endif 311 312 #if HHI_INTER_VIEW_MOTION_PRED 253 313 Void 254 314 TComPic::removeOrgDepthMapBuffer() … … 261 321 } 262 322 } 263 323 #endif 324 325 #if HHI_INTER_VIEW_RESIDUAL_PRED 264 326 Void 265 327 TComPic::removeResidualBuffer() … … 272 334 } 273 335 } 274 336 #endif 337 338 #if HHI_INTERVIEW_SKIP 275 339 Void 276 340 TComPic::removeUsedPelsMapBuffer() … … 283 347 } 284 348 } 285 349 #endif 350
Note: See TracChangeset for help on using the changeset viewer.