Changeset 629 in 3DVCSoftware for branches/HTM-8.2-dev0-MediaTek/source/Lib/TLibCommon/TComDataCU.cpp
- Timestamp:
- 23 Sep 2013, 08:46:50 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-8.2-dev0-MediaTek/source/Lib/TLibCommon/TComDataCU.cpp
r622 r629 3569 3569 UInt uiPartIdxCenter; 3570 3570 xDeriveCenterIdx( uiPUIdx, uiPartIdxCenter ); 3571 #if H_3D_FCO 3572 TComPic * pcTexturePic = m_pcSlice->getTexturePic(); 3573 TComDataCU *pcTextureCU = 0; 3574 if ( pcTexturePic ) 3575 pcTextureCU = pcTexturePic->getCU( getAddr() ); 3576 #else 3571 3577 TComDataCU *pcTextureCU = m_pcSlice->getTexturePic()->getCU( getAddr() ); 3578 #endif 3572 3579 3580 #if H_3D_FCO 3581 if ( pcTextureCU && pcTexturePic->getReconMark() && !pcTextureCU->isIntra( uiPartIdxCenter ) ) 3582 #else 3573 3583 if ( pcTextureCU && !pcTextureCU->isIntra( uiPartIdxCenter ) ) 3584 #endif 3574 3585 { 3575 3586 pcTextureCU->getMvField( pcTextureCU, uiPartIdxCenter, REF_PIC_LIST_0, pcMvFieldNeighbours[iCount<<1] ); … … 5562 5573 5563 5574 #if H_3D_NBDV_REF 5564 TComPic* picDepth = NULL; 5575 TComPic* picDepth = NULL; 5576 #if H_3D_FCO_VSP_DONBDV 5577 picDepth = getSlice()->getIvPic(true, getSlice()->getViewIndex() ); 5578 if ( picDepth->getPicYuvRec() != NULL ) 5579 { 5580 cColMv.setZero(); 5581 } 5582 else // Go back with virtual depth 5583 { 5584 picDepth = getSlice()->getIvPic( true, iTargetViewIdx ); 5585 } 5586 5587 assert(picDepth != NULL); 5588 #else 5565 5589 picDepth = getSlice()->getIvPic( true, iTargetViewIdx ); 5566 5590 assert(picDepth != NULL); 5591 #endif 5567 5592 if (picDepth && bDepthRefine) 5568 5593 estimateDVFromDM(iTargetViewIdx, uiPartIdx, picDepth, uiPartAddr, &cColMv ); … … 5662 5687 pDInfo->m_aVIdxCan = cIDVInfo.m_aVIdxCan[iList][ curPos ]; 5663 5688 #if H_3D_NBDV_REF 5689 #if H_3D_FCO_VSP_DONBDV 5690 TComPic* picDepth = NULL; 5691 5692 picDepth = getSlice()->getIvPic(true, getSlice()->getViewIndex() ); 5693 if ( picDepth->getPicYuvRec() != NULL ) 5694 { 5695 cDispVec.setZero(); 5696 } 5697 else // Go back with virtual depth 5698 { 5699 picDepth = getSlice()->getIvPic( true, pDInfo->m_aVIdxCan ); 5700 } 5701 5702 assert(picDepth != NULL); 5703 #else 5664 5704 TComPic* picDepth = getSlice()->getIvPic( true, pDInfo->m_aVIdxCan ); 5665 5705 assert(picDepth!=NULL); 5706 #endif 5666 5707 5667 5708 if (picDepth && bDepthRefine) … … 5707 5748 #if H_3D_NBDV_REF 5708 5749 TComPic* picDepth = NULL; 5750 #if H_3D_FCO_VSP_DONBDV 5751 picDepth = getSlice()->getIvPic(true, getSlice()->getViewIndex() ); 5752 if ( picDepth->getPicYuvRec() != NULL ) 5753 { 5754 defaultDV.setZero(); 5755 } 5756 else // Go back with virtual depth 5757 { 5758 picDepth = getSlice()->getIvPic( true, viewIndex ); 5759 } 5760 5761 assert(picDepth != NULL); 5762 #else 5709 5763 picDepth = getSlice()->getIvPic( true, viewIndex ); 5710 5764 assert(picDepth!=NULL); 5711 5765 #endif 5712 5766 if (picDepth && bDepthRefine) 5713 5767 { … … 5812 5866 TComPic* picDepth = NULL; 5813 5867 assert(getSlice()->getRefPic(eRefPicList, refId)->getPOC() == getSlice()->getPOC()); 5868 #if H_3D_FCO_VSP_DONBDV 5869 picDepth = getSlice()->getIvPic(true, getSlice()->getViewIndex() ); 5870 if ( picDepth->getPicYuvRec() != NULL ) 5871 { 5872 cMvPred.setZero(); 5873 } 5874 else// Go back with virtual depth 5875 { 5876 picDepth = getSlice()->getIvPic (true, refViewIdx ); 5877 } 5878 assert(picDepth != NULL); 5879 #else 5814 5880 picDepth = getSlice()->getIvPic (true, refViewIdx ); 5815 5881 assert(picDepth != NULL); 5816 5882 #endif 5817 5883 UInt uiPartIdx = 0; //Notes from MTK: Please confirm that using 0 as partition index and partition address is correct for CU-level DoNBDV 5818 5884 UInt uiPartAddr = 0; //QC: confirmed
Note: See TracChangeset for help on using the changeset viewer.