Changeset 1282 in 3DVCSoftware
- Timestamp:
- 18 Jul 2015, 09:07:20 (9 years ago)
- Location:
- branches/HTM-14.1-update-dev1/source/Lib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/Debug.cpp
r1200 r1282 154 154 155 155 #if DEBUG_STRING 156 EnvVar DebugOptionList::DebugString_Structure ("DEBUG_STRUCTURE", " 0", "Produce output on chosen structure bit0=intra, bit1=inter");157 EnvVar DebugOptionList::DebugString_Pred ("DEBUG_PRED", " 0", "Produce output on prediction data. bit0=intra, bit1=inter");158 EnvVar DebugOptionList::DebugString_Resi ("DEBUG_RESI", " 0", "Produce output on residual data. bit0=intra, bit1=inter");159 EnvVar DebugOptionList::DebugString_Reco ("DEBUG_RECO", " 0", "Produce output on reconstructed data. bit0=intra, bit1=inter");156 EnvVar DebugOptionList::DebugString_Structure ("DEBUG_STRUCTURE", "3", "Produce output on chosen structure bit0=intra, bit1=inter"); 157 EnvVar DebugOptionList::DebugString_Pred ("DEBUG_PRED", "3", "Produce output on prediction data. bit0=intra, bit1=inter"); 158 EnvVar DebugOptionList::DebugString_Resi ("DEBUG_RESI", "3", "Produce output on residual data. bit0=intra, bit1=inter"); 159 EnvVar DebugOptionList::DebugString_Reco ("DEBUG_RECO", "3", "Produce output on reconstructed data. bit0=intra, bit1=inter"); 160 160 EnvVar DebugOptionList::DebugString_InvTran ("DEBUG_INV_QT", "0", "Produce output on inverse-quantiser and transform stages. bit0=intra, bit1=inter"); 161 161 #endif -
branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComDataCU.cpp
r1279 r1282 3565 3565 continue; 3566 3566 } 3567 #if NH_3D_FIX_PRUNING 3568 if ( ivCandDir[0] == m_mergCands[MRG_A1+i].m_uDir && 3569 ( ( ivCandDir[0] & 1 ) == 0 || tmpMV[0]==m_mergCands[MRG_A1+i].m_cMvField[0] ) && 3570 ( ( ivCandDir[0] & 2 ) == 0 || tmpMV[1]==m_mergCands[MRG_A1+i].m_cMvField[1] ) 3571 ) 3572 #else 3567 3573 if (ivCandDir[0] == m_mergCands[MRG_A1+i].m_uDir && tmpMV[0]==m_mergCands[MRG_A1+i].m_cMvField[0] && tmpMV[1]==m_mergCands[MRG_A1+i].m_cMvField[1]) 3574 #endif 3568 3575 { 3569 3576 m_mergCands[MRG_A1+i].m_bAvailable = false; … … 3574 3581 if (bIsDepth) 3575 3582 { 3583 #if NH_3D_FIX_PRUNING 3584 if ( m_mergCands[MRG_T].m_bAvailable && ivCandDir[0] == m_mergCands[MRG_T].m_uDir && 3585 ( ( ivCandDir[0] & 1 ) == 0 || tmpMV[0]==m_mergCands[MRG_T].m_cMvField[0] ) && 3586 ( ( ivCandDir[0] & 2 ) == 0 || tmpMV[1]==m_mergCands[MRG_T].m_cMvField[1] ) 3587 ) 3588 #else 3576 3589 if (m_mergCands[MRG_T].m_bAvailable && ivCandDir[0] == m_mergCands[MRG_T].m_uDir && tmpMV[0]==m_mergCands[MRG_T].m_cMvField[0] && tmpMV[1]==m_mergCands[MRG_T].m_cMvField[1]) 3590 #endif 3577 3591 { 3578 3592 bRemoveSpa = true; … … 3670 3684 continue; 3671 3685 } 3686 #if NH_3D_FIX_PRUNING 3687 if ( ivCandDir[1] == m_mergCands[MRG_A1+i].m_uDir && 3688 ( ( ivCandDir[1] & 1 ) == 0 || tmpMV[0]==m_mergCands[MRG_A1+i].m_cMvField[0] ) && 3689 ( ( ivCandDir[1] & 2 ) == 0 || tmpMV[1]==m_mergCands[MRG_A1+i].m_cMvField[1] ) 3690 ) 3691 #else 3672 3692 if (ivCandDir[1] == m_mergCands[MRG_A1+i].m_uDir && tmpMV[0]==m_mergCands[MRG_A1+i].m_cMvField[0] && tmpMV[1]==m_mergCands[MRG_A1+i].m_cMvField[1]) 3693 #endif 3673 3694 { 3674 3695 bRemoveSpa = true; -
branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComRom.cpp
r1279 r1282 537 537 const Bool g_bEncDecTraceEnable = true; 538 538 const Bool g_bEncDecTraceDisable = false; 539 Bool g_HLSTraceEnable = true;539 Bool g_HLSTraceEnable = false; 540 540 Bool g_bJustDoIt = false; 541 541 UInt64 g_nSymbolCounter = 0; … … 686 686 } 687 687 Bool stopFlag = false; 688 if ( g_stopAtPos && poc == 16 && layerId == 1)688 if ( g_stopAtPos && poc == 6 && layerId == 2 ) 689 689 { 690 690 Bool stopAtCU = true; 691 691 if ( stopAtCU ) // Stop at CU with specific size 692 692 { 693 stopFlag = ( cuPelX == 0 ) && ( cuPelY ==0 ) && ( cuWidth == 32 ) && ( cuHeight == 32 );693 stopFlag = ( cuPelX == 128 ) && ( cuPelY == 160 ) && ( cuWidth == 32 ) && ( cuHeight == 32 ); 694 694 } 695 695 else -
branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComRom.h
r1279 r1282 196 196 Void writeToTraceFile( const Char* symbolName, Int val, Bool doIt ); 197 197 Void writeToTraceFile( const Char* symbolName, Bool doIt ); 198 incSymbolCounterincSymbolCounter();198 UInt64 incSymbolCounter(); 199 199 Void stopAtPos ( Int poc, Int layerId, Int cuPelX, Int cuPelY, Int cuWidth, Int cuHeight ); 200 200 #endif -
branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TypeDef.h
r1279 r1282 97 97 #define NH_3D_NBDV_REF 1 98 98 #define NH_3D_MLC 1 99 #define NH_3D_FIX_PRUNING 1 99 100 #define NH_3D_VSP 1 100 101 #define NH_3D_IV_MERGE 1 -
branches/HTM-14.1-update-dev1/source/Lib/TLibEncoder/TEncCu.cpp
r1279 r1282 716 716 if( rpcTempCU->getSlice()->getDepthBasedBlkPartFlag() && rpcTempCU->getSlice()->getDefaultRefViewIdxAvailableFlag() ) 717 717 { 718 xCheckRDCostInterDBBP( rpcBestCU, rpcTempCU , false );718 xCheckRDCostInterDBBP( rpcBestCU, rpcTempCU DEBUG_STRING_PASS_INTO(sDebug), false ); 719 719 rpcTempCU->initEstData( uiDepth, iQP, bIsLosslessMode ); 720 720 #if NH_3D_VSP || NH_3D_DBBP … … 1916 1916 for( Int nARPW=nARPWMax; nARPW >= 0 ; nARPW-- ) 1917 1917 { 1918 #if NH_3D 1919 #if DEBUG_STRING 1920 bestStr.clear(); 1921 #endif 1922 #endif 1918 1923 #if NH_3D_IV_MERGE 1919 1924 memset( mergeCandBuffer, 0, MRG_MAX_NUM_CANDS_MEM*sizeof(Int) ); … … 2510 2515 2511 2516 #if NH_3D_DBBP 2512 Void TEncCu::xCheckRDCostInterDBBP( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU , Bool bUseMRG )2517 Void TEncCu::xCheckRDCostInterDBBP( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU DEBUG_STRING_FN_DECLARE(sDebug), Bool bUseMRG ) 2513 2518 { 2519 DEBUG_STRING_NEW(sTest) 2514 2520 AOF( !rpcTempCU->getSlice()->getIsDepth() ); 2515 2521 … … 2582 2588 rpcTempCU->getDBBPTmpData()->eVirtualPartSize = eVirtualPartSize; 2583 2589 rpcTempCU->getDBBPTmpData()->uiVirtualPartIndex = uiSegment; 2584 m_pcPredSearch->predInterSearch( rpcTempCU, m_ppcOrigYuvDBBP[uhDepth], apPredYuv[uiSegment], m_ppcResiYuvTemp[uhDepth], m_ppcResiYuvTemp[uhDepth] , false, bUseMRG );2590 m_pcPredSearch->predInterSearch( rpcTempCU, m_ppcOrigYuvDBBP[uhDepth], apPredYuv[uiSegment], m_ppcResiYuvTemp[uhDepth], m_ppcResiYuvTemp[uhDepth] DEBUG_STRING_PASS_INTO(sTest), false, bUseMRG ); 2585 2591 m_pcRdCost->setUseMask(false); 2586 2592 … … 2641 2647 Int bitDepthY = rpcTempCU->getSlice()->getSPS()->getBitDepth(CHANNEL_TYPE_LUMA); 2642 2648 m_pcPredSearch->combineSegmentsWithMask(apPredYuv, m_ppcPredYuvTemp[uhDepth], pMask, uiWidth, uiHeight, 0, eVirtualPartSize, bitDepthY); 2643 m_pcPredSearch->encodeResAndCalcRdInterCU( rpcTempCU, m_ppcOrigYuv[uhDepth], m_ppcPredYuvTemp[uhDepth], m_ppcResiYuvTemp[uhDepth], m_ppcResiYuvBest[uhDepth], m_ppcRecoYuvTemp[uhDepth], false );2649 m_pcPredSearch->encodeResAndCalcRdInterCU( rpcTempCU, m_ppcOrigYuv[uhDepth], m_ppcPredYuvTemp[uhDepth], m_ppcResiYuvTemp[uhDepth], m_ppcResiYuvBest[uhDepth], m_ppcRecoYuvTemp[uhDepth], false DEBUG_STRING_PASS_INTO(sTest) ); 2644 2650 2645 2651 xCheckDQP( rpcTempCU ); 2646 xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth );2652 xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth DEBUG_STRING_PASS_INTO(sDebug) DEBUG_STRING_PASS_INTO(sTest) ); 2647 2653 } 2648 2654 #endif … … 2715 2721 2716 2722 xCheckDQP( rpcTempCU ); 2717 xCheckBestMode(rpcBestCU, rpcTempCU, uiDepth );2723 xCheckBestMode(rpcBestCU, rpcTempCU, uiDepth DEBUG_STRING_PASS_INTO(sDebug) DEBUG_STRING_PASS_INTO(sTest) ); 2718 2724 } 2719 2725 #endif -
branches/HTM-14.1-update-dev1/source/Lib/TLibEncoder/TEncCu.h
r1279 r1282 157 157 #if NH_3D_DBBP 158 158 Void xInvalidateOriginalSegments( TComYuv* pOrigYuv, TComYuv* pOrigYuvTemp, Bool* pMask, UInt uiValidSegment ); 159 Void xCheckRDCostInterDBBP( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU ,Bool bUseMRG = false );159 Void xCheckRDCostInterDBBP( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU DEBUG_STRING_FN_DECLARE(sDebug), Bool bUseMRG = false ); 160 160 #endif 161 161 #if NH_3D_DIS
Note: See TracChangeset for help on using the changeset viewer.