Changeset 1512 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon
- Timestamp:
- 15 Dec 2015, 19:47:27 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/SHM-dev/source/Lib/TLibCommon/TComPic.cpp ¶
r1503 r1512 62 62 #if SVC_EXTENSION 63 63 memset( m_pcFullPelBaseRec, 0, sizeof( m_pcFullPelBaseRec ) ); 64 memset( m_ bSpatialEnhLayer, false, sizeof( m_bSpatialEnhLayer) );64 memset( m_requireResampling, false, sizeof( m_requireResampling ) ); 65 65 memset( m_equalPictureSizeAndOffsetFlag, false, sizeof( m_equalPictureSizeAndOffsetFlag ) ); 66 66 memset( m_mvScalingFactor, 0, sizeof( m_mvScalingFactor ) ); … … 100 100 for( Int i = 0; i < MAX_LAYERS; i++ ) 101 101 { 102 if( m_ bSpatialEnhLayer[i] )102 if( m_requireResampling[i] ) 103 103 { 104 104 m_pcFullPelBaseRec[i] = new TComPicYuv; m_pcFullPelBaseRec[i]->create( iWidth, iHeight, chromaFormatIDC, uiMaxCuWidth, uiMaxCuHeight, uiMaxDepth, true, &conformanceWindow ); … … 158 158 for( Int i = 0; i < MAX_LAYERS; i++ ) 159 159 { 160 if( m_ bSpatialEnhLayer[i] && m_pcFullPelBaseRec[i] )160 if( m_requireResampling[i] && m_pcFullPelBaseRec[i] ) 161 161 { 162 162 m_pcFullPelBaseRec[i]->destroy(); -
TabularUnified branches/SHM-dev/source/Lib/TLibCommon/TComPic.h ¶
r1503 r1512 86 86 87 87 #if SVC_EXTENSION 88 UInt m_layerId; // Layer ID89 Bool m_ bSpatialEnhLayer[MAX_LAYERS]; // whether current layer is a spatial enhancement layer,88 UInt m_layerId; // Layer ID 89 Bool m_requireResampling[MAX_LAYERS]; // whether current layer requires resampling 90 90 TComPicYuv* m_pcFullPelBaseRec[MAX_LAYERS]; // upsampled base layer recontruction for difference domain inter prediction 91 91 Bool m_equalPictureSizeAndOffsetFlag[MAX_LAYERS]; … … 192 192 UInt getLayerId() const { return m_layerId; } 193 193 UInt getLayerIdx() const { return m_picSym.getSlice(0)->getVPS()->getLayerIdxInVps(m_layerId); } 194 Bool isSpatialEnhLayer(UInt refLayerIdc) const { return m_bSpatialEnhLayer[refLayerIdc];}195 Void set SpatialEnhLayerFlag (UInt refLayerIdc, Bool b) { m_bSpatialEnhLayer[refLayerIdc] = b;}194 Bool requireResampling(UInt refLayerIdc) const { return m_requireResampling[refLayerIdc]; } 195 Void setRequireResamplingFlag (UInt refLayerIdc, Bool b) { m_requireResampling[refLayerIdc] = b; } 196 196 Void setFullPelBaseRec (UInt refLayerIdc, TComPicYuv* p) { m_pcFullPelBaseRec[refLayerIdc] = p; } 197 197 TComPicYuv* getFullPelBaseRec (UInt refLayerIdc) const { return m_pcFullPelBaseRec[refLayerIdc]; } -
TabularUnified branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp ¶
r1503 r1512 3333 3333 3334 3334 // copy scalability ratio, it is needed to get the correct location for the motion field of the corresponding reference layer block 3335 pcIlpPic[refLayerIdc]->set SpatialEnhLayerFlag( refLayerIdc, m_pcPic->isSpatialEnhLayer(refLayerIdc) );3335 pcIlpPic[refLayerIdc]->setRequireResamplingFlag( refLayerIdc, m_pcPic->requireResampling(refLayerIdc) ); 3336 3336 3337 3337 pcIlpPic[refLayerIdc]->copyUpsampledPictureYuv( m_pcPic->getFullPelBaseRec( refLayerIdc ), pcIlpPic[refLayerIdc]->getPicYuvRec() );
Note: See TracChangeset for help on using the changeset viewer.