Changeset 253 in SHVCSoftware for branches/SHM-2.1-multilayers-dev/source/Lib/TLibCommon/TComPic.cpp
- Timestamp:
- 3 Jun 2013, 20:08:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-2.1-multilayers-dev/source/Lib/TLibCommon/TComPic.cpp
r191 r253 67 67 , m_pNDBFilterYuvTmp (NULL) 68 68 , m_bCheckLTMSB (false) 69 { 69 70 #if SVC_EXTENSION 70 , m_bSpatialEnhLayer( false ) 71 , m_pcFullPelBaseRec( NULL ) 72 #endif 73 { 71 memset( m_pcFullPelBaseRec, NULL, sizeof( m_pcFullPelBaseRec ) ); 72 memset( m_bSpatialEnhLayer, false, sizeof( m_bSpatialEnhLayer ) ); 73 #endif 74 74 m_apcPicYuv[0] = NULL; 75 75 m_apcPicYuv[1] = NULL; … … 91 91 m_apcPicYuv[1] = new TComPicYuv; m_apcPicYuv[1]->create( iWidth, iHeight, uiMaxWidth, uiMaxHeight, uiMaxDepth, pcSps ); 92 92 93 if (m_bSpatialEnhLayer) 94 { 95 m_pcFullPelBaseRec = new TComPicYuv; m_pcFullPelBaseRec->create( iWidth, iHeight, uiMaxWidth, uiMaxHeight, uiMaxDepth, pcSps ); 93 for( Int i = 0; i < MAX_LAYERS; i++ ) 94 { 95 if( m_bSpatialEnhLayer[i] ) 96 { 97 m_pcFullPelBaseRec[i] = new TComPicYuv; m_pcFullPelBaseRec[i]->create( iWidth, iHeight, uiMaxWidth, uiMaxHeight, uiMaxDepth, pcSps ); 98 } 96 99 } 97 100 … … 173 176 deleteSEIs(m_SEIs); 174 177 #if SVC_EXTENSION && SVC_UPSAMPLING 175 if (m_bSpatialEnhLayer) 176 { 177 m_pcFullPelBaseRec->destroy(); 178 delete m_pcFullPelBaseRec; 179 m_pcFullPelBaseRec = NULL; 178 for( Int i = 0; i < MAX_LAYERS; i++ ) 179 { 180 if( m_bSpatialEnhLayer[i] ) 181 { 182 m_pcFullPelBaseRec[i]->destroy(); 183 delete m_pcFullPelBaseRec[i]; 184 m_pcFullPelBaseRec[i] = NULL; 185 } 180 186 } 181 187 #endif … … 564 570 Void TComPic::copyUpsampledMvField(TComPic* pcPicBase) 565 571 { 572 UInt refLayerIdc = pcPicBase->getLayerId(); 566 573 #if AVC_SYNTAX && !ILP_DECODED_PICTURE 567 574 const Window &confBL = pcPicBase->getConformanceWindow(); … … 592 599 593 600 TComDataCU *pcColCU = 0; 594 pcColCU = pcCUDes->getBaseColCU( pelX + 8, pelY + 8, baseCUAddr, baseAbsPartIdx);601 pcColCU = pcCUDes->getBaseColCU(refLayerIdc, pelX + 8, pelY + 8, baseCUAddr, baseAbsPartIdx); 595 602 596 603 #if AVC_SYNTAX && !ILP_DECODED_PICTURE
Note: See TracChangeset for help on using the changeset viewer.