Changeset 45 in SHVCSoftware for branches/SHM-1.1-dev/source
- Timestamp:
- 22 Feb 2013, 02:13:37 (12 years ago)
- Location:
- branches/SHM-1.1-dev/source/Lib/TLibCommon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-1.1-dev/source/Lib/TLibCommon/TComPic.cpp
r44 r45 645 645 #endif 646 646 { 647 for(UInt list = 0; list < 2; list++) //each list 648 { 649 TComMv cMv = pcPicBase->getCU(uiBaseCUAddr)->getCUMvField((RefPicList)list)->getMv(uiBaseAbsPartIdx); 650 Int refIdx = pcPicBase->getCU(uiBaseCUAddr)->getCUMvField((RefPicList)list)->getRefIdx(uiBaseAbsPartIdx); 647 for(UInt refPicList = 0; refPicList < 2; refPicList++) //for each reference list 648 { 649 #if REUSE_MVSCALE 650 TComMvField sMvFieldBase, sMvField; 651 pcPicBase->getCU(uiBaseCUAddr)->getMvField( pcPicBase->getCU(uiBaseCUAddr), uiBaseAbsPartIdx, (RefPicList)refPicList, sMvFieldBase); 652 pcCUDes->scaleBaseMV( sMvField, sMvFieldBase ); 653 #else 654 TComMv cMv = pcPicBase->getCU(uiBaseCUAddr)->getCUMvField((RefPicList)refPicList)->getMv(uiBaseAbsPartIdx); 655 Int refIdx = pcPicBase->getCU(uiBaseCUAddr)->getCUMvField((RefPicList)refPicList)->getRefIdx(uiBaseAbsPartIdx); 651 656 652 657 Int Hor = ((Int)upSampleRatio * cMv.getHor())/2 ; … … 656 661 TComMvField sMvField; 657 662 sMvField.setMvField(cScaledMv, refIdx); 658 659 pcCUDes->getCUMvField((RefPicList)list)->setMvField(sMvField, uiAbsPartIdx); 663 #endif 664 665 pcCUDes->getCUMvField((RefPicList)refPicList)->setMvField(sMvField, uiAbsPartIdx); 660 666 pcCUDes->setPredictionMode(uiAbsPartIdx, MODE_INTER); 661 667 } -
branches/SHM-1.1-dev/source/Lib/TLibCommon/TComSlice.cpp
r42 r45 562 562 assert(thePoc == pcRefPicBL->getPOC()); 563 563 564 #if REUSE_MVSCALE 565 ilpPic[0]->getSlice(0)->setBaseColPic( pcRefPicBL ); 566 #endif 567 564 568 //initialize reference POC of ILP 565 569 for(Int refIdx = 0; refIdx < MAX_NUM_REF; refIdx++) -
branches/SHM-1.1-dev/source/Lib/TLibCommon/TypeDef.h
r43 r45 71 71 #define REF_IDX_MFM 1 ///< L0336: motion vector mapping of inter-layer reference picture 72 72 #endif 73 74 #if REF_IDX_MFM 75 #define REUSE_MVSCALE 1 ///< using the base layer MV scaling function 76 #endif 77 73 78 #else 74 79 #define INTRA_BL 1 ///< inter-layer texture prediction
Note: See TracChangeset for help on using the changeset viewer.