Changeset 244 in 3DVCSoftware for branches/HTM-5.1-dev2-Mediatek/source/Lib/TLibCommon
- Timestamp:
- 31 Jan 2013, 03:48:51 (12 years ago)
- Location:
- branches/HTM-5.1-dev2-Mediatek/source/Lib/TLibCommon
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.1-dev2-Mediatek/source/Lib/TLibCommon/TComDataCU.cpp
r243 r244 3272 3272 #endif 3273 3273 3274 #if LG_RESTRICTEDRESPRED_M24766 3274 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 3275 3275 Int TComDataCU::getResiPredMode(UInt uiPartAddr) 3276 3276 { … … 3676 3676 #endif 3677 3677 3678 #if MTK_MDIVRP_C0138 3679 Bool bDVAvail = true; 3680 #endif 3681 3678 3682 #if QC_MULTI_DIS_CAN_A0097 3679 3683 DisInfo cDisInfo; … … 3702 3706 cDisInfo.m_acMvCand[0].setVer(0); 3703 3707 cDisInfo.m_aVIdxCan[0] = 0; 3708 #if MTK_MDIVRP_C0138 3709 bDVAvail = false; 3710 #endif 3704 3711 } 3705 3712 #if QC_MRG_CANS_B0048 … … 3719 3726 Int iPdmInterDir = getPdmMergeCandidate( uiPUIdx, aiPdmRefIdx, acPdmMv ); 3720 3727 #endif 3728 #if MTK_MDIVRP_C0138 3729 if (m_pcSlice->getSPS()->getMultiviewResPredMode()==1 && iPdmDir[0] && !bNoPdmMerge && cCurPS == SIZE_2Nx2N && bDVAvail) 3730 { 3731 setResPredAvailSubParts(true, 0, 0, uiDepth); 3732 } 3733 #endif 3734 3721 3735 #if QC_MRG_CANS_B0048 3722 3736 if( iPdmDir[0] && !bNoPdmMerge && PDM_MERGE_POS == 0 ) -
branches/HTM-5.1-dev2-Mediatek/source/Lib/TLibCommon/TComDataCU.h
r237 r244 607 607 Void getPartIndexAndSize ( UInt uiPartIdx, UInt& ruiPartAddr, Int& riWidth, Int& riHeight ); 608 608 #endif 609 #if LG_RESTRICTEDRESPRED_M24766 609 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 610 610 Int getResiPredMode(UInt uiPartAddr); 611 611 Void getPUResiPredShift (Int *iPUPredResiShift, UInt uiAbsPartIndex); -
branches/HTM-5.1-dev2-Mediatek/source/Lib/TLibCommon/TComPrediction.cpp
r210 r244 754 754 } 755 755 756 756 #if MTK_MDIVRP_C0138 757 Void TComPrediction::residualPrediction(TComDataCU* pcCU, TComYuv* pcYuvPred, TComYuv* pcYuvResPred) 758 { 759 Int iWidth; 760 Int iHeight; 761 UInt uiPartAddr; 762 763 pcCU->getPartIndexAndSize( 0, uiPartAddr, iWidth, iHeight ); 764 765 Bool bResAvail = false; 766 767 bResAvail = pcCU->getResidualSamples( 0, 768 #if QC_SIMPLIFIEDIVRP_M24938 769 true, 770 #endif 771 pcYuvResPred ); 772 773 assert (bResAvail); 774 775 pcYuvPred->add(pcYuvResPred, iWidth, iHeight); 776 } 777 #endif 757 778 758 779 #if DEPTH_MAP_GENERATION -
branches/HTM-5.1-dev2-Mediatek/source/Lib/TLibCommon/TComPrediction.h
r210 r244 151 151 #endif 152 152 153 #if MTK_MDIVRP_C0138 154 Void residualPrediction (TComDataCU* pcCU, TComYuv* pcYuvPred, TComYuv* pcYuvResPred); 155 #endif 156 153 157 // motion vector prediction 154 158 Void getMvPredAMVP ( TComDataCU* pcCU, UInt uiPartIdx, UInt uiPartAddr, RefPicList eRefPicList, Int iRefIdx, TComMv& rcMvPred ); -
branches/HTM-5.1-dev2-Mediatek/source/Lib/TLibCommon/TComResidualGenerator.cpp
r189 r244 184 184 AOF ( pcPic ); 185 185 186 #if MTK_MDIVRP_C0138 187 if (pcPic->getSPS()->getViewId() != 0) 188 { 189 return; 190 } 191 #endif 192 186 193 if( pcPic->getPOC() == 0 ) 187 194 { … … 296 303 ); 297 304 #endif 305 #if MTK_MDIVRP_C0138 306 return true; 307 #else 298 308 #if QC_SIMPLIFIEDIVRP_M24938 299 309 return xIsNonZeroByCBF( uiBaseViewId , uiXPosInRefView , uiYPosInRefView , uiBlkWidth , uiBlkHeight ); 300 310 #else 301 311 return xIsNonZero( pcYuv, uiBlkWidth, uiBlkHeight ); 312 #endif 302 313 #endif 303 314 } … … 419 430 Pel* pRes = pcCUResidual->getLumaAddr(); 420 431 UInt uiLumaTrMode, uiChromaTrMode; 421 #if LG_RESTRICTEDRESPRED_M24766 432 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 422 433 Int iPUPredResiShift[4]; 423 434 #endif … … 445 456 m_pcTrQuant->invRecurTransformNxN ( pcCU, 0, TEXT_CHROMA_V, pRes, 0, pcCUResidual->getCStride(), uiWidth, uiHeight, uiChromaTrMode, 0, piCoeff ); 446 457 458 #if !MTK_MDIVRP_C0138 447 459 if( pcCU->getResPredFlag( 0 ) ) 448 460 { … … 461 473 #endif 462 474 } 475 #endif 463 476 464 477 //===== clear inter-view predicted parts ===== -
branches/HTM-5.1-dev2-Mediatek/source/Lib/TLibCommon/TComYuv.cpp
r189 r244 392 392 } 393 393 394 #if LG_RESTRICTEDRESPRED_M24766 394 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 395 395 Void 396 396 TComYuv::add(Int *iPUResiPredShift, PartSize uhPartitionSize, TComYuv* pcYuvAdd, Int iWidth, Int iHeight, Bool bSubtract ) … … 408 408 #endif 409 409 410 #if LG_RESTRICTEDRESPRED_M24766 410 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 411 411 Void 412 412 TComYuv::getPUXYOffset(PartSize uhPartitionSize, Int iWidth, Int iHeight, Int &iXOffset, Int &iYOffset) … … 435 435 #endif 436 436 437 #if LG_RESTRICTEDRESPRED_M24766 437 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 438 438 Void 439 439 TComYuv::addLuma(Int *iPUResiPredShift, PartSize uhPartitionSize, TComYuv* pcYuvAdd, Int iWidth, Int iHeight, Bool bSubtract ) … … 449 449 Pel* pDstSamples = getLumaAddr(); 450 450 451 #if LG_RESTRICTEDRESPRED_M24766 451 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 452 452 Int iXOffset, iYOffset; 453 453 … … 502 502 } 503 503 504 #if LG_RESTRICTEDRESPRED_M24766 504 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 505 505 Void 506 506 TComYuv::addChroma(Int *iPUResiPredShift, PartSize uhPartitionSize, TComYuv* pcYuvAdd, Int iWidth, Int iHeight, Bool bSubtract ) … … 518 518 Pel* pDstSamplesCr = getCrAddr(); 519 519 520 #if LG_RESTRICTEDRESPRED_M24766 520 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 521 521 Int iXOffset, iYOffset; 522 522 … … 676 676 } 677 677 678 #if LG_RESTRICTEDRESPRED_M24766 678 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 679 679 Void TComYuv::subtract(Int *iPUResiPredShift, PartSize uhPartitionSize, TComYuv* pcYuvSrc0, TComYuv* pcYuvSrc1, UInt uiTrUnitIdx, UInt uiPartSize ) 680 680 { … … 690 690 #endif 691 691 692 #if LG_RESTRICTEDRESPRED_M24766 692 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 693 693 Void TComYuv::subtractLuma(Int *iPUResiPredShift, PartSize uhPartitionSize, TComYuv* pcYuvSrc0, TComYuv* pcYuvSrc1, UInt uiTrUnitIdx, UInt uiPartSize ) 694 694 #else … … 706 706 Int iDstStride = getStride(); 707 707 708 #if LG_RESTRICTEDRESPRED_M24766 708 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 709 709 Int iXOffset, iYOffset; 710 710 … … 814 814 } 815 815 816 #if LG_RESTRICTEDRESPRED_M24766 816 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 817 817 Void TComYuv::subtractChroma(Int *iPUResiPredShift, PartSize uhPartitionSize, TComYuv* pcYuvSrc0, TComYuv* pcYuvSrc1, UInt uiTrUnitIdx, UInt uiPartSize ) 818 818 #else … … 832 832 Int iSrc1Stride = pcYuvSrc1->getCStride(); 833 833 Int iDstStride = getCStride(); 834 #if LG_RESTRICTEDRESPRED_M24766 834 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 835 835 Int iXOffset, iYOffset; 836 836 -
branches/HTM-5.1-dev2-Mediatek/source/Lib/TLibCommon/TComYuv.h
r100 r244 146 146 Void addClipPartLuma ( TComYuv* pcYuvSrc0, TComYuv* pcYuvSrc1, UInt uiTrUnitIdx, UInt uiPartSize ); //GT 147 147 148 #if LG_RESTRICTEDRESPRED_M24766 148 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 149 149 // pcYuvSrc0 - pcYuvSrc1 -> m_apiBuf 150 150 Void subtract (Int *iPUResiPredShift, PartSize uhPartitionSize, TComYuv* pcYuvSrc0, TComYuv* pcYuvSrc1, UInt uiTrUnitIdx, UInt uiPartSize ); … … 166 166 // Remove High frequency 167 167 Void removeHighFreq ( TComYuv* pcYuvSrc, UInt uiPartIdx, UInt uiWidht, UInt uiHeight ); 168 #if LG_RESTRICTEDRESPRED_M24766 168 #if LG_RESTRICTEDRESPRED_M24766 && !MTK_MDIVRP_C0138 169 169 Void getPUXYOffset (PartSize uhPartitionSize, Int iWidth, Int iHeight, Int &iXOffset, Int &iYOffset); 170 170 Void add (Int *iPUResiPredShift, PartSize uhPartitionSize, TComYuv* pcYuvAdd, Int iWidth, Int iHeight, Bool bSubtract = false ); -
branches/HTM-5.1-dev2-Mediatek/source/Lib/TLibCommon/TypeDef.h
r243 r244 99 99 #define HHI_INTER_VIEW_RESIDUAL_PRED 1 // inter-view residual prediction 100 100 #if HHI_INTER_VIEW_RESIDUAL_PRED 101 #define MTK_MDIVRP_C0138 1 // mode-dependent inter-view residual prediction 101 102 #define LG_RESTRICTEDRESPRED_M24766 1 // restricted inter-view residual prediction 102 103 #define QC_SIMPLIFIEDIVRP_M24938 1
Note: See TracChangeset for help on using the changeset viewer.