Changeset 1268 in 3DVCSoftware for branches/HTM-14.1-update-dev3-MediaTek2/source/Lib
- Timestamp:
- 13 Jul 2015, 04:27:53 (9 years ago)
- Location:
- branches/HTM-14.1-update-dev3-MediaTek2/source/Lib/TLibCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev3-MediaTek2/source/Lib/TLibCommon/TComDataCU.cpp
r1267 r1268 3327 3327 deriveLeftRightTopIdxGeneral( uiAbsPartIdx, uiPUIdx, uiPartIdxLT, uiPartIdxRT ); 3328 3328 deriveLeftBottomIdxGeneral ( uiAbsPartIdx, uiPUIdx, uiPartIdxLB ); 3329 #if H_3D3329 #if NH_3D_TEXT_MERGE 3330 3330 Bool bMPIFlag = getSlice()->getMpiFlag(); 3331 Bool bIsDepth = getSlice()->getIsDepth();3331 Int tmpDir; 3332 3332 #endif 3333 #if NH_3D_IV_MERGE 3333 #if NH_3D_IV_MERGE || NH_3D_TEXT_MERGE 3334 3334 Bool bIsDepth = getSlice()->getIsDepth(); 3335 3335 #endif … … 3447 3447 3448 3448 3449 #if H_3D_IV_MERGE3449 #if NH_3D_TEXT_MERGE 3450 3450 3451 3451 ///////////////////////////////////////////// … … 3473 3473 3474 3474 this->getPartIndexAndSize( uiPUIdx, uiPartAddr, iWidth, iHeight ); 3475 pcTexRec->getTopLeftSamplePos( this->get Addr(), this->getZorderIdxInCU() + uiPartAddr, iCurrPosX, iCurrPosY );3475 pcTexRec->getTopLeftSamplePos( this->getCtuRsAddr(), this->getZorderIdxInCtu() + uiPartAddr, iCurrPosX, iCurrPosY ); 3476 3476 3477 3477 Int iPUWidth, iPUHeight, iNumPart, iNumPartLine; … … 3498 3498 3499 3499 Int iTexPosX, iTexPosY; 3500 #if NH_3D_INTEGER_MV_DEPTH 3500 3501 const TComMv cMvRounding( 1 << ( 2 - 1 ), 1 << ( 2 - 1 ) ); 3501 3502 #endif 3502 3503 Int iCenterPosX = iCurrPosX + ( ( iWidth / iPUWidth ) >> 1 ) * iPUWidth + ( iPUWidth >> 1 ); 3503 3504 Int iCenterPosY = iCurrPosY + ( ( iHeight / iPUHeight ) >> 1 ) * iPUHeight + (iPUHeight >> 1); … … 3513 3514 3514 3515 pcTexRec->getCUAddrAndPartIdx( iCenterPosX , iCenterPosY , iTexCenterCUAddr, iTexCenterAbsPartIdx ); 3515 TComDataCU* pcDefaultCU = pcTexPic->getC U( iTexCenterCUAddr );3516 TComDataCU* pcDefaultCU = pcTexPic->getCtu( iTexCenterCUAddr ); 3516 3517 3517 3518 if( pcDefaultCU->getPredictionMode( iTexCenterAbsPartIdx ) != MODE_INTRA ) … … 3532 3533 { 3533 3534 bSPIVMPFlag = true; 3535 #if NH_3D_INTEGER_MV_DEPTH 3534 3536 TComMv cMv = cDefaultMvField.getMv() + cMvRounding; 3535 3537 cMv >>= 2; 3538 #else 3539 TComMv cMv = cDefaultMvField.getMv(); 3540 #endif 3536 3541 cMvFieldSaved[eCurrRefPicList].setMvField(cMv, iRefPicList) ; 3537 3542 break; … … 3558 3563 iTexPosY = i + iOffsetY; 3559 3564 pcTexRec->getCUAddrAndPartIdx( iTexPosX, iTexPosY, iTexCUAddr, iTexAbsPartIdx ); 3560 pcTexCU = pcTexPic->getC U( iTexCUAddr );3565 pcTexCU = pcTexPic->getCtu( iTexCUAddr ); 3561 3566 3562 3567 if( pcTexCU && !pcTexCU->isIntra(iTexAbsPartIdx) ) … … 3570 3575 if( (cTexMvField.getRefIdx()>=0) && ( iValidDepRef >= 0 ) ) 3571 3576 { 3577 #if NH_3D_INTEGER_MV_DEPTH 3572 3578 TComMv cMv = cTexMvField.getMv() + cMvRounding; 3573 3579 cMv >>=2; 3580 #else 3581 TComMv cMv = cTexMvField.getMv(); 3582 #endif 3574 3583 pcMvFieldSP[2*iPartition + uiCurrRefListId].setMvField(cMv, iValidDepRef); 3575 3584 } … … 3590 3599 } 3591 3600 } 3592 #if H_3D 3593 } 3594 #endif 3601 } 3595 3602 #if H_3D_FCO 3596 3603 } -
branches/HTM-14.1-update-dev3-MediaTek2/source/Lib/TLibCommon/TypeDef.h
r1267 r1268 76 76 #define NH_3D_SPIVMP 1 77 77 #define NH_3D_INTEGER_MV_DEPTH 1 78 #define NH_3D_TEXT_MERGE 1 78 79 #endif 79 80
Note: See TracChangeset for help on using the changeset viewer.