Changeset 1259 in 3DVCSoftware for branches/HTM-14.1-update-dev3-MediaTek-Qualcomm/source/Lib/TLibDecoder
- Timestamp:
- 23 Jun 2015, 03:55:51 (10 years ago)
- Location:
- branches/HTM-14.1-update-dev3-MediaTek-Qualcomm/source/Lib/TLibDecoder
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev3-MediaTek-Qualcomm/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1200 r1259 2805 2805 { 2806 2806 READ_UVLC( uiCode, "five_minus_max_num_merge_cand"); 2807 #if H_3D_IV_MERGE2807 #if NH_3D_IV_MERGE 2808 2808 pcSlice->setMaxNumMergeCand(( ( pcSlice->getMpiFlag() || pcSlice->getIvMvPredFlag() || pcSlice->getViewSynthesisPredFlag() ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode); 2809 2809 #else -
branches/HTM-14.1-update-dev3-MediaTek-Qualcomm/source/Lib/TLibDecoder/TDecCu.cpp
r1255 r1259 163 163 Void TDecCu::decompressCtu( TComDataCU* pCtu ) 164 164 { 165 #if ! H_3D_IV_MERGE165 #if !NH_3D_IV_MERGE 166 166 xDecompressCU( pCtu, 0, 0 ); 167 167 #endif … … 327 327 m_ppcCU[uiDepth]->setHeight(0, pcCU->getSlice()->getSPS()->getMaxCUHeight() / (1 << uiDepth)); 328 328 m_ppcCU[uiDepth]->setPartSizeSubParts(SIZE_2Nx2N, 0, uiDepth); 329 #if H_3D_IV_MERGE329 #if NH_3D_IV_MERGE 330 330 if( pcCU->getSlice()->getIsDepth()) 331 331 { … … 345 345 m_ppcCU[uiDepth]->getDisMvpCandNBDV(&DvInfo); 346 346 } 347 #if H_3D_IV_MERGE347 #if NH_3D_IV_MERGE 348 348 } 349 349 #endif … … 392 392 m_ppcCU[uiDepth]->copyInterPredInfoFrom( pcCU, uiAbsPartIdx, REF_PIC_LIST_0 ); 393 393 m_ppcCU[uiDepth]->copyInterPredInfoFrom( pcCU, uiAbsPartIdx, REF_PIC_LIST_1 ); 394 #if H_3D_IV_MERGE394 #if NH_3D_IV_MERGE 395 395 m_ppcCU[uiDepth]->copyDVInfoFrom(pcCU, uiAbsPartIdx); 396 396 TComMvField cMvFieldNeighbours[MRG_MAX_NUM_CANDS_MEM << 1]; // double length for mv of both lists … … 424 424 memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM); 425 425 #endif 426 #if H_3D_SPIVMP426 #if NH_3D_SPIVMP 427 427 Bool bSPIVMPFlag[MRG_MAX_NUM_CANDS_MEM]; 428 428 memset(bSPIVMPFlag, false, sizeof(Bool)*MRG_MAX_NUM_CANDS_MEM); 429 429 TComMvField* pcMvFieldSP; 430 430 UChar* puhInterDirSP; 431 pcMvFieldSP = new TComMvField[pcCU->getPic()->getPicSym()->getNumPartition ()*2];432 puhInterDirSP = new UChar[pcCU->getPic()->getPicSym()->getNumPartition ()];431 pcMvFieldSP = new TComMvField[pcCU->getPic()->getPicSym()->getNumPartitionsInCtu()*2]; 432 puhInterDirSP = new UChar[pcCU->getPic()->getPicSym()->getNumPartitionsInCtu()]; 433 433 #endif 434 434 … … 439 439 #if NH_3D_MLC 440 440 m_ppcCU[uiDepth]->xGetInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours 441 #if H_3D_SPIVMP441 #if NH_3D_SPIVMP 442 442 , pcMvFieldSP, puhInterDirSP 443 443 #endif … … 448 448 , vspFlag 449 449 #endif 450 #if H_3D_SPIVMP450 #if NH_3D_SPIVMP 451 451 , bSPIVMPFlag 452 452 #endif … … 501 501 } 502 502 } 503 #if H_3D_SPIVMP503 #if NH_3D_SPIVMP 504 504 pcCU->setSPIVMPFlagSubParts(bSPIVMPFlag[uiMergeIndex], uiAbsPartIdx, 0, uiDepth ); 505 505 if (bSPIVMPFlag[uiMergeIndex]) … … 526 526 527 527 xFinishDecodeCU( pcCU, uiAbsPartIdx, uiDepth, isLastCtuOfSliceSegment ); 528 #if H_3D_IV_MERGE528 #if NH_3D_IV_MERGE 529 529 xDecompressCU(pcCU, uiAbsPartIdx, uiDepth ); 530 530 #endif … … 551 551 #endif 552 552 xFinishDecodeCU( pcCU, uiAbsPartIdx, uiDepth, isLastCtuOfSliceSegment ); 553 #if H_3D_IV_MERGE553 #if NH_3D_IV_MERGE 554 554 xDecompressCU(pcCU, uiAbsPartIdx, uiDepth ); 555 555 #endif … … 571 571 #endif 572 572 xFinishDecodeCU( pcCU, uiAbsPartIdx, uiDepth, isLastCtuOfSliceSegment ); 573 #if H_3D_IV_MERGE573 #if NH_3D_IV_MERGE 574 574 xDecompressCU(pcCU, uiAbsPartIdx, uiDepth ); 575 575 #endif … … 594 594 { 595 595 TComPic* pcPic = pCtu->getPic(); 596 #if ! H_3D_IV_MERGE596 #if !NH_3D_IV_MERGE 597 597 TComSlice * pcSlice = pCtu->getSlice(); 598 598 const TComSPS &sps=*(pcSlice->getSPS()); -
branches/HTM-14.1-update-dev3-MediaTek-Qualcomm/source/Lib/TLibDecoder/TDecEntropy.cpp
r1255 r1259 244 244 UChar uhInterDirNeighbours[MRG_MAX_NUM_CANDS]; 245 245 #endif 246 #if H_3D_SPIVMP246 #if NH_3D_SPIVMP 247 247 Bool bSPIVMPFlag[MRG_MAX_NUM_CANDS_MEM]; 248 TComMvField* pcMvFieldSP = new TComMvField[pcCU->getPic()->getPicSym()->getNumPartition ()*2];249 UChar* puhInterDirSP = new UChar[pcCU->getPic()->getPicSym()->getNumPartition ()];250 #endif 251 #if H_3D_IV_MERGE248 TComMvField* pcMvFieldSP = new TComMvField[pcCU->getPic()->getPicSym()->getNumPartitionsInCtu()*2]; 249 UChar* puhInterDirSP = new UChar[pcCU->getPic()->getPicSym()->getNumPartitionsInCtu()]; 250 #endif 251 #if NH_3D_IV_MERGE 252 252 pcSubCU->copyDVInfoFrom( pcCU, uiAbsPartIdx); 253 253 #endif … … 489 489 memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM); 490 490 #endif 491 #if H_3D_SPIVMP491 #if NH_3D_SPIVMP 492 492 memset(bSPIVMPFlag, false, sizeof(Bool)*MRG_MAX_NUM_CANDS_MEM); 493 493 #endif … … 497 497 #if NH_3D_MLC 498 498 pcSubCU->xGetInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours 499 #if H_3D_SPIVMP499 #if NH_3D_SPIVMP 500 500 , pcMvFieldSP, puhInterDirSP 501 501 #endif … … 505 505 , vspFlag 506 506 #endif 507 #if H_3D_SPIVMP507 #if NH_3D_SPIVMP 508 508 , bSPIVMPFlag 509 509 #endif … … 526 526 memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM); 527 527 #endif 528 #if H_3D_SPIVMP528 #if NH_3D_SPIVMP 529 529 memset(bSPIVMPFlag, false, sizeof(Bool)*MRG_MAX_NUM_CANDS_MEM); 530 530 #endif … … 534 534 #if NH_3D_MLC 535 535 pcSubCU->xGetInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours 536 #if H_3D_SPIVMP536 #if NH_3D_SPIVMP 537 537 , pcMvFieldSP, puhInterDirSP 538 538 #endif … … 542 542 , vspFlag 543 543 #endif 544 #if H_3D_SPIVMP544 #if NH_3D_SPIVMP 545 545 , bSPIVMPFlag 546 546 #endif … … 579 579 } 580 580 } 581 #if NH_3D_SPIVMP 582 pcCU->setSPIVMPFlagSubParts(bSPIVMPFlag[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth ); 583 if (bSPIVMPFlag[uiMergeIndex] != 0) 584 { 585 Int iWidth, iHeight; 586 UInt uiIdx; 587 pcCU->getPartIndexAndSize( uiPartIdx, uiIdx, iWidth, iHeight, uiSubPartIdx, true ); 588 589 UInt uiSPAddr; 590 591 Int iNumSPInOneLine, iNumSP, iSPWidth, iSPHeight; 592 593 pcCU->getSPPara(iWidth, iHeight, iNumSP, iNumSPInOneLine, iSPWidth, iSPHeight); 594 595 for (Int iPartitionIdx = 0; iPartitionIdx < iNumSP; iPartitionIdx++) 596 { 597 pcCU->getSPAbsPartIdx(uiSubPartIdx, iSPWidth, iSPHeight, iPartitionIdx, iNumSPInOneLine, uiSPAddr); 598 pcCU->setInterDirSP(puhInterDirSP[iPartitionIdx], uiSPAddr, iSPWidth, iSPHeight); 599 pcCU->getCUMvField( REF_PIC_LIST_0 )->setMvFieldSP(pcCU, uiSPAddr, pcMvFieldSP[2*iPartitionIdx], iSPWidth, iSPHeight); 600 pcCU->getCUMvField( REF_PIC_LIST_1 )->setMvFieldSP(pcCU, uiSPAddr, pcMvFieldSP[2*iPartitionIdx + 1], iSPWidth, iSPHeight); 601 } 602 } 603 #endif 581 604 } 582 605 else … … 612 635 } 613 636 #endif 614 #if H_3D_SPIVMP637 #if NH_3D_SPIVMP 615 638 delete[] pcMvFieldSP; 616 639 delete[] puhInterDirSP; -
branches/HTM-14.1-update-dev3-MediaTek-Qualcomm/source/Lib/TLibDecoder/TDecTop.cpp
r1210 r1259 292 292 293 293 294 #if H_3D_IV_MERGE294 #if NH_3D_IV_MERGE 295 295 Void 296 296 CamParsCollector::copyCamParamForSlice( TComSlice* pcSlice ) … … 1167 1167 #if NH_3D 1168 1168 pcSlice->checkInCompPredRefLayers(); 1169 #if H_3D_IV_MERGE1169 #if NH_3D_IV_MERGE 1170 1170 #if H_3D_FCO 1171 1171 //assert( !getIsDepth() ); … … 1264 1264 } 1265 1265 1266 #if H_3D_IV_MERGE1266 #if NH_3D_IV_MERGE 1267 1267 #if H_3D_FCO 1268 1268 if( !pcSlice->getIsDepth() && m_pcCamParsCollector ) -
branches/HTM-14.1-update-dev3-MediaTek-Qualcomm/source/Lib/TLibDecoder/TDecTop.h
r1200 r1259 81 81 Int**** getBaseViewShiftLUTI() { return m_aiBaseViewShiftLUT; } 82 82 83 #if H_3D_IV_MERGE83 #if NH_3D_IV_MERGE 84 84 Void copyCamParamForSlice( TComSlice* pcSlice ); 85 85 #endif
Note: See TracChangeset for help on using the changeset viewer.