Changeset 1512 in SHVCSoftware
- Timestamp:
- 15 Dec 2015, 19:47:27 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
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(); -
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]; } -
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() ); -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1510 r1512 272 272 if(m_layerId > 0) 273 273 { 274 xSet SpatialEnhLayerFlag( vps, sps, pps, rpcPic );274 xSetRequireResamplingFlag( vps, sps, pps, rpcPic ); 275 275 } 276 276 … … 321 321 if( m_layerId > 0 ) 322 322 { 323 xSet SpatialEnhLayerFlag( vps, sps, pps, rpcPic );323 xSetRequireResamplingFlag( vps, sps, pps, rpcPic ); 324 324 } 325 325 … … 1711 1711 #endif 1712 1712 1713 if( m_pcPic-> isSpatialEnhLayer(refLayerIdc) )1713 if( m_pcPic->requireResampling(refLayerIdc) ) 1714 1714 { 1715 1715 // check for the sample prediction picture type … … 2590 2590 } 2591 2591 2592 Void TDecTop::xSet SpatialEnhLayerFlag( const TComVPS &vps, const TComSPS &sps, const TComPPS &pps, TComPic* pic )2592 Void TDecTop::xSetRequireResamplingFlag( const TComVPS &vps, const TComSPS &sps, const TComPPS &pps, TComPic* pic ) 2593 2593 { 2594 2594 for(UInt i = 0; i < vps.getNumDirectRefLayers( m_layerId ); i++ ) … … 2620 2620 ) 2621 2621 { 2622 pic->set SpatialEnhLayerFlag( i, true );2622 pic->setRequireResamplingFlag( i, true ); 2623 2623 2624 2624 //only for scalable extension -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h
r1505 r1512 262 262 263 263 #if CONFORMANCE_BITSTREAM_MODE 264 std::vector<TComPic>* getConfListPic() { return &m_confListPic; }265 Bool getConfModeFlag() const { return m_confModeFlag; }266 Void setConfModeFlag(Bool x) { m_confModeFlag = x; }264 std::vector<TComPic>* getConfListPic() { return &m_confListPic; } 265 Bool getConfModeFlag() const { return m_confModeFlag; } 266 Void setConfModeFlag(Bool x) { m_confModeFlag = x; } 267 267 #endif 268 268 #endif //SVC_EXTENSION … … 279 279 #if SVC_EXTENSION 280 280 Bool xDecodeSlice(InputNALUnit &nalu, Int &iSkipFrame, Int iPOCLastDisplay, UInt& curLayerId, Bool& bNewPOC); 281 Void xSet SpatialEnhLayerFlag( const TComVPS &vps, const TComSPS &sps, const TComPPS &pps, TComPic* pic );281 Void xSetRequireResamplingFlag( const TComVPS &vps, const TComSPS &sps, const TComPPS &pps, TComPic* pic ); 282 282 #else 283 283 Bool xDecodeSlice(InputNALUnit &nalu, Int &iSkipFrame, Int iPOCLastDisplay); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1502 r1512 1652 1652 m_Enc3DAsymLUTPicUpdate.addRefLayerId( pcSlice->getVPS()->getRefLayerId(m_layerId, refLayerIdc) ); 1653 1653 1654 if( pcSlice->getPic()->getPosScalingFactor(refLayerIdc, 0) < POS_SCALING_FACTOR_1X || pcSlice->getPic()->getPosScalingFactor(refLayerIdc, 1) < POS_SCALING_FACTOR_1X ) //if(pcPic-> isSpatialEnhLayer(refLayerIdc))1654 if( pcSlice->getPic()->getPosScalingFactor(refLayerIdc, 0) < POS_SCALING_FACTOR_1X || pcSlice->getPic()->getPosScalingFactor(refLayerIdc, 1) < POS_SCALING_FACTOR_1X ) //if(pcPic->requireResampling(refLayerIdc)) 1655 1655 { 1656 1656 //downsampling … … 1681 1681 #endif 1682 1682 1683 if( pcPic-> isSpatialEnhLayer(refLayerIdc) )1683 if( pcPic->requireResampling(refLayerIdc) ) 1684 1684 { 1685 1685 // check for the sample prediction picture type -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1503 r1512 741 741 ) 742 742 { 743 pcEPic->set SpatialEnhLayerFlag( i, true );743 pcEPic->setRequireResamplingFlag( i, true ); 744 744 745 745 //only for scalable extension … … 786 786 ) 787 787 { 788 rpcPic->set SpatialEnhLayerFlag( i, true );788 rpcPic->setRequireResamplingFlag( i, true ); 789 789 790 790 //only for scalable extension
Note: See TracChangeset for help on using the changeset viewer.