Changeset 27 in SHVCSoftware for branches/SHM-1.0-dev/source/Lib/TLibDecoder
- Timestamp:
- 6 Feb 2013, 03:30:58 (13 years ago)
- Location:
- branches/SHM-1.0-dev/source/Lib/TLibDecoder
- Files:
-
- 2 edited
-
TDecGop.cpp (modified) (1 diff)
-
TDecTop.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-1.0-dev/source/Lib/TLibDecoder/TDecGop.cpp
r25 r27 288 288 rpcPic->compressMotion(); 289 289 290 #if REF_IDX_MFM291 if( rpcPic->getLayerId() == 0 && rpcPic->upsampledMvFieldIsNull() )292 {293 TComSPS *spsEL = m_ppcTDecTop[1]->getSPS();294 295 rpcPic->createUpSampledMvField(spsEL->getPicHeightInLumaSamples(), spsEL->getPicWidthInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth); //create up-sampled mv field296 }297 298 if( rpcPic->getLayerId() == 0 && rpcPic->IsUpsampledMvField() == false )299 {300 TComSPS *spsBL = m_ppcTDecTop[0]->getSPS();301 TComSPS *spsEL = m_ppcTDecTop[1]->getSPS();302 303 Int iBWidth = spsBL->getPicWidthInLumaSamples() - spsBL->getPicCropLeftOffset() - spsBL->getPicCropRightOffset();304 Int iBHeight = spsBL->getPicHeightInLumaSamples() - spsBL->getPicCropTopOffset() - spsBL->getPicCropBottomOffset();305 306 Int iEWidth = spsEL->getPicWidthInLumaSamples() - spsEL->getPicCropLeftOffset() - spsEL->getPicCropRightOffset();307 Int iEHeight = spsEL->getPicHeightInLumaSamples() - spsEL->getPicCropTopOffset() - spsEL->getPicCropBottomOffset();308 309 UInt upSampleRatio;310 if(iEWidth == iBWidth && iEHeight == iBHeight)311 upSampleRatio = 0;312 else if(iEWidth == 2*iBWidth && iEHeight == 2*iBHeight)313 upSampleRatio = 1;314 else if(2*iEWidth == 3*iBWidth && 2*iEHeight == 3*iBHeight)315 upSampleRatio = 2;316 else317 assert(0);318 319 rpcPic->doTheUpSampleMvField(upSampleRatio);320 rpcPic->setUpsampledMvField(true);321 }322 #endif323 290 324 291 Char c = (pcSlice->isIntra() ? 'I' : pcSlice->isInterP() ? 'P' : 'B'); -
branches/SHM-1.0-dev/source/Lib/TLibDecoder/TDecTop.cpp
r25 r27 271 271 #endif 272 272 273 #if REF_IDX_MFM 274 rpcPic->setUpsampledMvField(false); 275 #endif 273 276 274 m_cListPic.pushBack( rpcPic ); 277 275 … … 321 319 #endif 322 320 323 #if REF_IDX_MFM 324 rpcPic->setUpsampledMvField(false); 325 #endif 321 326 322 } 327 323
Note: See TracChangeset for help on using the changeset viewer.