Changeset 260 in SHVCSoftware for branches/SHM-2.1-multilayers-dev
- Timestamp:
- 5 Jun 2013, 09:06:22 (11 years ago)
- Location:
- branches/SHM-2.1-multilayers-dev/source/Lib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-2.1-multilayers-dev/source/Lib/TLibCommon/TComSlice.cpp
r259 r260 576 576 m_activeNumILRRefIdx = numInterLayerRPSPics; 577 577 } 578 #if MAX_ONE_RESAMPLING_DIRECT_LAYERS 578 #if MAX_ONE_RESAMPLING_DIRECT_LAYERS && SIMPLIFIED_MV_POS_SCALING 579 579 if( m_pcVPS->getScalabilityMask(1) ) 580 580 { -
branches/SHM-2.1-multilayers-dev/source/Lib/TLibCommon/TComUpsampleFilter.cpp
r255 r260 127 127 Pel* piDstV; 128 128 129 #if SIMPLIFIED_MV_POS_SCALING 129 130 Int scaleX = g_posScalingFactor[refLayerIdc][0]; 130 131 Int scaleY = g_posScalingFactor[refLayerIdc][1]; 132 #else 133 Int scaleX = ( ( widthBL << shiftX ) + ( widthEL >> 1 ) ) / widthEL; 134 Int scaleY = ( ( heightBL << shiftY ) + ( heightEL >> 1 ) ) / heightEL; 135 #endif 131 136 132 137 if( scaleX == 65536 && scaleY == 65536 ) // ratio 1x … … 334 339 shiftYM4 = shiftY - 4; 335 340 341 #if !SIMPLIFIED_MV_POS_SCALING 342 scaleX = ( ( widthBL << shiftX ) + ( widthEL >> 1 ) ) / widthEL; 343 scaleY = ( ( heightBL << shiftY ) + ( heightEL >> 1 ) ) / heightEL; 344 #endif 345 336 346 #if ILP_DECODED_PICTURE 337 347 widthEL = pcUsPic->getWidth () >> 1; -
branches/SHM-2.1-multilayers-dev/source/Lib/TLibDecoder/TDecTop.cpp
r257 r260 186 186 if(m_cIlpPic[refLayerIdc]) 187 187 { 188 m_cIlpPic[refLayerIdc]->copyUpsampledPictureYuv(pcPic->getFullPelBaseRec( i), m_cIlpPic[refLayerIdc]->getPicYuvRec());188 m_cIlpPic[refLayerIdc]->copyUpsampledPictureYuv(pcPic->getFullPelBaseRec(refLayerIdc), m_cIlpPic[refLayerIdc]->getPicYuvRec()); 189 189 m_cIlpPic[refLayerIdc]->getSlice(0)->setPOC(pcPic->getPOC()); 190 m_cIlpPic[refLayerIdc]->setLayerId(pcPic->getSlice(0)->getBaseColPic( i)->getLayerId()); //set reference layerId190 m_cIlpPic[refLayerIdc]->setLayerId(pcPic->getSlice(0)->getBaseColPic(refLayerIdc)->getLayerId()); //set reference layerId 191 191 m_cIlpPic[refLayerIdc]->getPicYuvRec()->setBorderExtension(false); 192 192 m_cIlpPic[refLayerIdc]->getPicYuvRec()->extendPicBorder(); … … 890 890 891 891 #if SVC_UPSAMPLING 892 if ( pcPic->isSpatialEnhLayer(refLayerIdc))892 if( pcPic->isSpatialEnhLayer(refLayerIdc) ) 893 893 { 894 894 #if SCALED_REF_LAYER_OFFSETS 895 895 m_cPrediction.upsampleBasePic( refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec(), pcSlice->getSPS()->getScaledRefLayerWindow() ); 896 896 #else 897 m_cPrediction.upsampleBasePic( refLayerIdc, pcPic->getFullPelBaseRec( ), pcSlice->getBaseColPic()->getPicYuvRec(), pcPic->getPicYuvRec() );897 m_cPrediction.upsampleBasePic( refLayerIdc, pcPic->getFullPelBaseRec(refLayerIdc), pcSlice->getBaseColPic(refLayerIdc)->getPicYuvRec(), pcPic->getPicYuvRec() ); 898 898 #endif 899 899 } … … 908 908 909 909 #if REF_IDX_FRAMEWORK 910 #if ZERO_NUM_DIRECT_LAYERS 911 if( m_layerId > 0 && pcSlice->getActiveNumILRRefIdx() ) 912 #else 910 913 if(m_layerId > 0) 914 #endif 911 915 { 912 916 setILRPic(pcPic); -
branches/SHM-2.1-multilayers-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r255 r260 543 543 TComList<TComPic*> *cListPic = m_ppcTEncTop[m_layerId-1]->getListPic(); 544 544 #endif 545 pcSlice->setBaseColPic (*cListPic, refLayerIdc );545 pcSlice->setBaseColPic( *cListPic, refLayerIdc ); 546 546 547 547 #if SIMPLIFIED_MV_POS_SCALING … … 936 936 { 937 937 pcSlice->getSPS()->setTMVPFlagsPresent(1); 938 #if SVC_EXTENSION 939 if( pcSlice->getIdrPicFlag() ) 940 { 941 pcSlice->setEnableTMVPFlag(0); 942 } 943 else 944 #endif 938 945 pcSlice->setEnableTMVPFlag(1); 939 946 } -
branches/SHM-2.1-multilayers-dev/source/Lib/TLibEncoder/TEncSearch.cpp
r212 r260 3313 3313 3314 3314 #if (ENCODER_FAST_MODE) 3315 if (pcCU->getSlice()->getNumRefIdx(eRefPicList) > 1)3315 if( pcCU->getSlice()->getNumRefIdx(eRefPicList) - pcCU->getSlice()->getActiveNumILRRefIdx() > 0) 3316 3316 { 3317 3317 testILR = false; -
branches/SHM-2.1-multilayers-dev/source/Lib/TLibEncoder/TEncSlice.cpp
r259 r260 995 995 TComDataCU*& pcCU = rpcPic->getCU( uiCUAddr ); 996 996 pcCU->initCU( rpcPic, uiCUAddr ); 997 #if SVC_EXTENSION998 pcCU->setLayerId(m_pcCfg->getLayerId());999 #endif1000 997 1001 998 #if !RATE_CONTROL_LAMBDA_DOMAIN -
branches/SHM-2.1-multilayers-dev/source/Lib/TLibEncoder/TEncTop.cpp
r257 r260 1222 1222 } 1223 1223 1224 return (TEncTop *)getLayerEnc( getVPS()->getRefLayerId( m_layerId, refLayerIdc ) );1224 return (TEncTop *)getLayerEnc( m_cVPS.getRefLayerId( m_layerId, refLayerIdc ) ); 1225 1225 } 1226 1226 #endif
Note: See TracChangeset for help on using the changeset viewer.