Changeset 1259 in 3DVCSoftware for branches/HTM-14.1-update-dev3-MediaTek-Qualcomm/source/Lib/TLibEncoder
- Timestamp:
- 23 Jun 2015, 03:55:51 (10 years ago)
- Location:
- branches/HTM-14.1-update-dev3-MediaTek-Qualcomm/source/Lib/TLibEncoder
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev3-MediaTek-Qualcomm/source/Lib/TLibEncoder/TEncCavlc.cpp
r1200 r1259 2195 2195 } 2196 2196 #endif 2197 #if H_3D_IV_MERGE2197 #if NH_3D_IV_MERGE 2198 2198 assert(pcSlice->getMaxNumMergeCand()<=MRG_MAX_NUM_CANDS_MEM); 2199 2199 #else … … 2202 2202 if (!pcSlice->isIntra()) 2203 2203 { 2204 #if H_3D_IV_MERGE2204 #if NH_3D_IV_MERGE 2205 2205 WRITE_UVLC( ( ( pcSlice->getMpiFlag( ) || pcSlice->getIvMvPredFlag( ) || pcSlice->getViewSynthesisPredFlag( ) ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS ) - pcSlice->getMaxNumMergeCand(), "five_minus_max_num_merge_cand"); 2206 2206 #else -
branches/HTM-14.1-update-dev3-MediaTek-Qualcomm/source/Lib/TLibEncoder/TEncCu.cpp
r1255 r1259 615 615 PartSize ePartTemp = rpcTempCU->getPartitionSize(0); 616 616 rpcTempCU->setPartSizeSubParts(SIZE_2Nx2N, 0, uiDepth); 617 #if H_3D_IV_MERGE617 #if NH_3D_IV_MERGE 618 618 if (rpcTempCU->getSlice()->getIsDepth() ) 619 619 { … … 633 633 rpcTempCU->getDisMvpCandNBDV(&DvInfo); 634 634 } 635 #if H_3D_IV_MERGE635 #if NH_3D_IV_MERGE 636 636 } 637 637 #endif … … 1810 1810 rpcTempCU->setPartSizeSubParts( SIZE_2Nx2N, 0, uhDepth ); // interprets depth relative to CTU level 1811 1811 1812 #if NH_3D_SPIVMP 1813 Bool bSPIVMPFlag[MRG_MAX_NUM_CANDS_MEM]; 1814 memset(bSPIVMPFlag, false, sizeof(Bool)*MRG_MAX_NUM_CANDS_MEM); 1815 TComMvField* pcMvFieldSP; 1816 UChar* puhInterDirSP; 1817 pcMvFieldSP = new TComMvField[rpcTempCU->getPic()->getPicSym()->getNumPartitionsInCtu()*2]; 1818 puhInterDirSP = new UChar[rpcTempCU->getPic()->getPicSym()->getNumPartitionsInCtu()]; 1819 #endif 1820 1812 1821 #if NH_3D_VSP 1813 1822 #if !H_3D_ARP … … 1820 1829 #if NH_3D_MLC 1821 1830 rpcTempCU->xGetInterMergeCandidates( 0, 0, cMvFieldNeighbours,uhInterDirNeighbours 1822 #if H_3D_SPIVMP1831 #if NH_3D_SPIVMP 1823 1832 , pcMvFieldSP, puhInterDirSP 1824 1833 #endif … … 1827 1836 1828 1837 rpcTempCU->buildMCL( cMvFieldNeighbours,uhInterDirNeighbours, vspFlag 1829 #if H_3D_SPIVMP1838 #if NH_3D_SPIVMP 1830 1839 , bSPIVMPFlag 1831 1840 #endif … … 1856 1865 #endif 1857 1866 #endif 1858 1859 1860 1861 1862 1863 1864 1865 1867 1866 1868 #if NH_3D_MLC … … 1983 1985 rpcTempCU->setVSPFlagSubParts( vspFlag[uiMergeCand], 0, 0, uhDepth ); 1984 1986 #endif 1985 #if H_3D_SPIVMP1987 #if NH_3D_SPIVMP 1986 1988 rpcTempCU->setSPIVMPFlagSubParts(bSPIVMPFlag[uiMergeCand], 0, 0, uhDepth); 1987 1989 if (bSPIVMPFlag[uiMergeCand]) … … 2206 2208 } 2207 2209 DEBUG_STRING_APPEND(sDebug, bestStr) 2208 #if H_3D_SPIVMP2210 #if NH_3D_SPIVMP 2209 2211 delete[] pcMvFieldSP; 2210 2212 delete[] puhInterDirSP; -
branches/HTM-14.1-update-dev3-MediaTek-Qualcomm/source/Lib/TLibEncoder/TEncGOP.cpp
r1210 r1259 1443 1443 } 1444 1444 1445 #if H_3D_IV_MERGE1445 #if NH_3D_IV_MERGE 1446 1446 // This needs to be done after initialization of 3D tool parameters. 1447 1447 pcSlice->setMaxNumMergeCand ( m_pcCfg->getMaxNumMergeCand() + ( ( pcSlice->getMpiFlag( ) || pcSlice->getIvMvPredFlag( ) || pcSlice->getViewSynthesisPredFlag( ) ) ? 1 : 0 )); -
branches/HTM-14.1-update-dev3-MediaTek-Qualcomm/source/Lib/TLibEncoder/TEncSearch.cpp
r1255 r1259 3872 3872 , Int* vspFlag 3873 3873 #endif 3874 #if H_3D_SPIVMP3874 #if NH_3D_SPIVMP 3875 3875 , Bool* pbSPIVMPFlag, TComMvField* pcMvFieldSP, UChar* puhInterDirSP 3876 3876 #endif … … 3929 3929 pcCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours,uhInterDirNeighbours, numValidMergeCand ); 3930 3930 pcCU->xGetInterMergeCandidates( 0, 0, cMvFieldNeighbours,uhInterDirNeighbours 3931 #if H_3D_SPIVMP3931 #if NH_3D_SPIVMP 3932 3932 , pcMvFieldSP, puhInterDirSP 3933 3933 #endif … … 3939 3939 , vspFlag 3940 3940 #endif 3941 #if H_3D_SPIVMP3941 #if NH_3D_SPIVMP 3942 3942 , pbSPIVMPFlag 3943 3943 #endif … … 3956 3956 pcCU->getInterMergeCandidates( uiAbsPartIdx, iPUIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand ); 3957 3957 pcCU->xGetInterMergeCandidates( uiAbsPartIdx, iPUIdx, cMvFieldNeighbours, uhInterDirNeighbours 3958 #if H_3D_SPIVMP3958 #if NH_3D_SPIVMP 3959 3959 , pcMvFieldSP, puhInterDirSP 3960 3960 #endif … … 3966 3966 , vspFlag 3967 3967 #endif 3968 #if H_3D_SPIVMP3968 #if NH_3D_SPIVMP 3969 3969 , pbSPIVMPFlag 3970 3970 #endif … … 4005 4005 #endif 4006 4006 4007 #if H_3D_SPIVMP4007 #if NH_3D_SPIVMP 4008 4008 pcCU->setSPIVMPFlagSubParts( pbSPIVMPFlag[uiMergeCand], uiAbsPartIdx, iPUIdx, pcCU->getDepth( uiAbsPartIdx )); 4009 4009 if (pbSPIVMPFlag[uiMergeCand]) … … 4172 4172 Distortion biPDistTemp = std::numeric_limits<Distortion>::max(); 4173 4173 4174 #if H_3D_IV_MERGE4174 #if NH_3D_IV_MERGE 4175 4175 TComMvField cMvFieldNeighbours[MRG_MAX_NUM_CANDS_MEM << 1]; // double length for mv of both lists 4176 4176 UChar uhInterDirNeighbours[MRG_MAX_NUM_CANDS_MEM]; … … 4599 4599 DisInfo OriginalDvInfo = pcCU->getDvInfo(uiAbsPartIdx); 4600 4600 #endif 4601 #if H_3D_SPIVMP4601 #if NH_3D_SPIVMP 4602 4602 Bool bSPIVMPFlag[MRG_MAX_NUM_CANDS_MEM]; 4603 4603 memset(bSPIVMPFlag, false, sizeof(Bool)*MRG_MAX_NUM_CANDS_MEM); 4604 4604 TComMvField* pcMvFieldSP; 4605 4605 UChar* puhInterDirSP; 4606 pcMvFieldSP = new TComMvField[pcCU->getPic()->getPicSym()->getNumPartition ()*2];4607 puhInterDirSP = new UChar[pcCU->getPic()->getPicSym()->getNumPartition ()];4606 pcMvFieldSP = new TComMvField[pcCU->getPic()->getPicSym()->getNumPartitionsInCtu()*2]; 4607 puhInterDirSP = new UChar[pcCU->getPic()->getPicSym()->getNumPartitionsInCtu()]; 4608 4608 #endif 4609 4609 xMergeEstimation( pcCU, pcOrgYuv, iPartIdx, uiMRGInterDir, cMRGMvField, uiMRGIndex, uiMRGCost, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand … … 4611 4611 , vspFlag 4612 4612 #endif 4613 #if H_3D_SPIVMP4613 #if NH_3D_SPIVMP 4614 4614 , bSPIVMPFlag, pcMvFieldSP, puhInterDirSP 4615 4615 #endif … … 4624 4624 pcCU->setVSPFlagSubParts( vspFlag[uiMRGIndex], uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); 4625 4625 #endif 4626 #if H_3D_SPIVMP4626 #if NH_3D_SPIVMP 4627 4627 pcCU->setSPIVMPFlagSubParts(bSPIVMPFlag[uiMRGIndex], uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); 4628 4628 if (bSPIVMPFlag[uiMRGIndex]!=0) … … 4700 4700 else 4701 4701 { 4702 #if H_3D_SPIVMP4702 #if NH_3D_SPIVMP 4703 4703 pcCU->setSPIVMPFlagSubParts(0, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); 4704 4704 #endif … … 4713 4713 pcCU->getCUMvField( REF_PIC_LIST_1 )->setAllMvField( cMEMvField[1], ePartSize, uiPartAddr, 0, iPartIdx ); 4714 4714 } 4715 #if H_3D_SPIVMP4715 #if NH_3D_SPIVMP 4716 4716 delete[] pcMvFieldSP; 4717 4717 delete[] puhInterDirSP; … … 5879 5879 const Double zeroCost = (pcCU->isLosslessCoded( 0 )) ? (nonZeroCost+1) : (m_pcRdCost->calcRdCost( zeroResiBits, zeroDistortion )); 5880 5880 #endif 5881 #if H_3D_SPIVMP5882 if ( dZeroCost < dCost || pcCU->getQtRootCbf(0)==0)5881 #if NH_3D_SPIVMP 5882 if ( zeroCost < nonZeroCost || pcCU->getQtRootCbf(0)==0) 5883 5883 #else 5884 5884 if ( zeroCost < nonZeroCost || !pcCU->getQtRootCbf(0) ) -
branches/HTM-14.1-update-dev3-MediaTek-Qualcomm/source/Lib/TLibEncoder/TEncSearch.h
r1255 r1259 413 413 , Int* vspFlag 414 414 #endif 415 #if H_3D_SPIVMP415 #if NH_3D_SPIVMP 416 416 , Bool* pbSPIVMPFlag, TComMvField* pcMvFieldSP, UChar* puhInterDirSP 417 417 #endif -
branches/HTM-14.1-update-dev3-MediaTek-Qualcomm/source/Lib/TLibEncoder/TEncSlice.cpp
r1200 r1259 567 567 rpcSlice->setSliceSegmentMode ( m_pcCfg->getSliceSegmentMode() ); 568 568 rpcSlice->setSliceSegmentArgument ( m_pcCfg->getSliceSegmentArgument() ); 569 #if H_3D_IV_MERGE569 #if NH_3D_IV_MERGE 570 570 #else 571 571 rpcSlice->setMaxNumMergeCand ( m_pcCfg->getMaxNumMergeCand() );
Note: See TracChangeset for help on using the changeset viewer.