Changeset 569 in 3DVCSoftware
- Timestamp:
- 14 Aug 2013, 05:47:26 (11 years ago)
- Location:
- branches/HTM-DEV-2.0-dev1-Mediatek/source/Lib/TLibCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-2.0-dev1-Mediatek/source/Lib/TLibCommon/TComDataCU.cpp
r567 r569 5209 5209 TComMv defaultDV(0, 0); 5210 5210 pDInfo->m_acNBDV = defaultDV; 5211 #if NBDV_DEFAULT_VIEWIDX_BUGFIX 5212 Int valid = 0; 5213 Int viewIndex = 0; 5214 for( UInt uiBId = 0; uiBId < getSlice()->getViewIndex() && valid==0; uiBId++ ) 5215 { 5216 UInt uiBaseId = uiBId; 5217 TComPic* pcBasePic = getSlice()->getIvPic( false, uiBaseId ); 5218 for( Int iRefListId = 0; ( iRefListId < (getSlice()->isInterB()? 2:1) ) && !getSlice()->isIntra() && valid==0; iRefListId++ ) 5219 { 5220 RefPicList eRefPicListTest = RefPicList( iRefListId ); 5221 Int iNumRefPics = getSlice()->getNumRefIdx( eRefPicListTest ) ; 5222 for( Int iRefIndex = 0; iRefIndex < iNumRefPics; iRefIndex++ ) 5223 { 5224 if(pcBasePic->getPOC() == getSlice()->getRefPic( eRefPicListTest, iRefIndex )->getPOC() 5225 && pcBasePic->getViewIndex() == getSlice()->getRefPic( eRefPicListTest, iRefIndex )->getViewIndex()) 5226 { 5227 valid=1; 5228 viewIndex = uiBaseId; 5229 break; 5230 } 5231 } 5232 } 5233 } 5234 if(valid) 5235 { 5236 pDInfo->m_aVIdxCan = viewIndex; 5237 #if H_3D_NBDV_REF 5238 TComPic* picDepth = NULL; 5239 picDepth = getSlice()->getIvPic( true, viewIndex ); 5240 assert(picDepth!=NULL); 5241 5242 if (picDepth && bDepthRefine) 5243 { 5244 estimateDVFromDM(viewIndex, uiPartIdx, picDepth, uiPartAddr, &defaultDV ); // from base view 5245 } 5246 pDInfo->m_acDoNBDV = defaultDV; 5247 #endif 5248 } 5249 #else 5211 5250 pDInfo->m_aVIdxCan = 0; 5212 5251 #if H_3D_NBDV_REF … … 5221 5260 pDInfo->m_acDoNBDV = defaultDV; 5222 5261 #endif 5223 5262 #endif 5224 5263 return false; 5225 5264 } -
branches/HTM-DEV-2.0-dev1-Mediatek/source/Lib/TLibCommon/TypeDef.h
r567 r569 101 101 // MERL_D0166: Reference view selection in NBDV & Bi-VSP 102 102 // MERL_C0152: Basic VSP 103 104 #define NBDV_DEFAULT_VIEWIDX_BUGFIX 1 // Bug fix for invalid default view index for NBDV 103 105 #define MTK_RVS_BUGFIX_E0172 1 // Bug fix for issues caused by reference view selection, JCT3V-E0172 104 106 #if MTK_RVS_BUGFIX_E0172
Note: See TracChangeset for help on using the changeset viewer.