Changeset 1280 in 3DVCSoftware for branches/HTM-14.1-update-dev2/source
- Timestamp:
- 17 Jul 2015, 16:59:43 (9 years ago)
- Location:
- branches/HTM-14.1-update-dev2/source/Lib
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev2/source/Lib/TLibCommon/Debug.cpp
r1200 r1280 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-dev2/source/Lib/TLibCommon/TComDataCU.cpp
r1275 r1280 3670 3670 continue; 3671 3671 } 3672 #if H_3D_FIX_PRUNING 3673 if ( ivCandDir[0] == m_mergCands[MRG_A1+i].m_uDir && 3674 ( ( ivCandDir[0] & 1 ) == 0 || tmpMV[0]==m_mergCands[MRG_A1+i].m_cMvField[0] ) && 3675 ( ( ivCandDir[0] & 2 ) == 0 || tmpMV[1]==m_mergCands[MRG_A1+i].m_cMvField[1] ) 3676 ) 3677 #else 3672 3678 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]) 3679 #endif 3673 3680 { 3674 3681 m_mergCands[MRG_A1+i].m_bAvailable = false; … … 3679 3686 if (bIsDepth) 3680 3687 { 3688 #if H_3D_FIX_PRUNING 3689 if ( m_mergCands[MRG_T].m_bAvailable && ivCandDir[0] == m_mergCands[MRG_T].m_uDir && 3690 ( ( ivCandDir[0] & 1 ) == 0 || tmpMV[0]==m_mergCands[MRG_T].m_cMvField[0] ) && 3691 ( ( ivCandDir[0] & 2 ) == 0 || tmpMV[1]==m_mergCands[MRG_T].m_cMvField[1] ) 3692 ) 3693 #else 3681 3694 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]) 3695 #endif 3682 3696 { 3683 3697 bRemoveSpa = true; … … 3775 3789 continue; 3776 3790 } 3791 #if H_3D_FIX_PRUNING 3792 if ( ivCandDir[1] == m_mergCands[MRG_A1+i].m_uDir && 3793 ( ( ivCandDir[1] & 1 ) == 0 || tmpMV[0]==m_mergCands[MRG_A1+i].m_cMvField[0] ) && 3794 ( ( ivCandDir[1] & 2 ) == 0 || tmpMV[1]==m_mergCands[MRG_A1+i].m_cMvField[1] ) 3795 ) 3796 #else 3777 3797 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]) 3798 #endif 3778 3799 { 3779 3800 bRemoveSpa = true; -
branches/HTM-14.1-update-dev2/source/Lib/TLibCommon/TComRom.cpp
r1277 r1280 555 555 const Bool g_bEncDecTraceEnable = true; 556 556 const Bool g_bEncDecTraceDisable = false; 557 Bool g_HLSTraceEnable = false;557 Bool g_HLSTraceEnable = true; 558 558 Bool g_bJustDoIt = false; 559 559 UInt64 g_nSymbolCounter = 0; 560 560 #if H_MV_ENC_DEC_TRAC 561 Bool g_traceCU = false;562 Bool g_tracePU = false;563 Bool g_traceTU = false;561 Bool g_traceCU = true; 562 Bool g_tracePU = true; 563 Bool g_traceTU = true; 564 564 Bool g_disableNumbering = false; 565 565 Bool g_disableHLSTrace = false; … … 569 569 Bool g_decTraceMvFromMerge = false; 570 570 Bool g_decTracePicOutput = false; 571 Bool g_stopAtPos = false;571 Bool g_stopAtPos = true; 572 572 Bool g_outputPos = false; 573 573 Bool g_traceCameraParameters = false; … … 704 704 } 705 705 Bool stopFlag = false; 706 if ( g_stopAtPos && poc == 16 && layerId == 1)706 if ( g_stopAtPos && poc == 6 && layerId == 2 ) 707 707 { 708 708 Bool stopAtCU = true; 709 709 if ( stopAtCU ) // Stop at CU with specific size 710 710 { 711 stopFlag = ( cuPelX == 0 ) && ( cuPelY ==0 ) && ( cuWidth == 32 ) && ( cuHeight == 32 );711 stopFlag = ( cuPelX == 128 ) && ( cuPelY == 160 ) && ( cuWidth == 32 ) && ( cuHeight == 32 ); 712 712 } 713 713 else -
branches/HTM-14.1-update-dev2/source/Lib/TLibCommon/TComRom.h
r1277 r1280 158 158 // Change later 159 159 #ifndef ENC_DEC_TRACE 160 #define ENC_DEC_TRACE 0160 #define ENC_DEC_TRACE 1 161 161 #endif 162 162 #endif … … 201 201 Void writeToTraceFile( const Char* symbolName, Int val, Bool doIt ); 202 202 Void writeToTraceFile( const Char* symbolName, Bool doIt ); 203 incSymbolCounterincSymbolCounter();203 UInt64 incSymbolCounter(); 204 204 Void stopAtPos ( Int poc, Int layerId, Int cuPelX, Int cuPelY, Int cuWidth, Int cuHeight ); 205 205 #endif -
branches/HTM-14.1-update-dev2/source/Lib/TLibEncoder/TEncCu.cpp
r1275 r1280 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 … … 1918 1918 for( Int nARPW=nARPWMax; nARPW >= 0 ; nARPW-- ) 1919 1919 { 1920 #if NH_3D 1921 #if DEBUG_STRING 1922 bestStr.clear(); 1923 #endif 1924 #endif 1920 1925 #if NH_3D_IV_MERGE 1921 1926 memset( mergeCandBuffer, 0, MRG_MAX_NUM_CANDS_MEM*sizeof(Int) ); … … 2588 2593 2589 2594 #if NH_3D_DBBP 2590 Void TEncCu::xCheckRDCostInterDBBP( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU , Bool bUseMRG )2595 Void TEncCu::xCheckRDCostInterDBBP( TComDataCU*& rpcBestCU, TComDataCU*& rpcTempCU DEBUG_STRING_FN_DECLARE(sDebug), Bool bUseMRG ) 2591 2596 { 2597 DEBUG_STRING_NEW(sTest) 2592 2598 AOF( !rpcTempCU->getSlice()->getIsDepth() ); 2593 2599 … … 2660 2666 rpcTempCU->getDBBPTmpData()->eVirtualPartSize = eVirtualPartSize; 2661 2667 rpcTempCU->getDBBPTmpData()->uiVirtualPartIndex = uiSegment; 2662 m_pcPredSearch->predInterSearch( rpcTempCU, m_ppcOrigYuvDBBP[uhDepth], apPredYuv[uiSegment], m_ppcResiYuvTemp[uhDepth], m_ppcResiYuvTemp[uhDepth] , false, bUseMRG );2668 m_pcPredSearch->predInterSearch( rpcTempCU, m_ppcOrigYuvDBBP[uhDepth], apPredYuv[uiSegment], m_ppcResiYuvTemp[uhDepth], m_ppcResiYuvTemp[uhDepth] DEBUG_STRING_PASS_INTO(sTest), false, bUseMRG ); 2663 2669 m_pcRdCost->setUseMask(false); 2664 2670 … … 2719 2725 Int bitDepthY = rpcTempCU->getSlice()->getSPS()->getBitDepth(CHANNEL_TYPE_LUMA); 2720 2726 m_pcPredSearch->combineSegmentsWithMask(apPredYuv, m_ppcPredYuvTemp[uhDepth], pMask, uiWidth, uiHeight, 0, eVirtualPartSize, bitDepthY); 2721 m_pcPredSearch->encodeResAndCalcRdInterCU( rpcTempCU, m_ppcOrigYuv[uhDepth], m_ppcPredYuvTemp[uhDepth], m_ppcResiYuvTemp[uhDepth], m_ppcResiYuvBest[uhDepth], m_ppcRecoYuvTemp[uhDepth], false );2727 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) ); 2722 2728 2723 2729 xCheckDQP( rpcTempCU ); 2724 xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth );2730 xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth DEBUG_STRING_PASS_INTO(sDebug) DEBUG_STRING_PASS_INTO(sTest) ); 2725 2731 } 2726 2732 #endif -
branches/HTM-14.1-update-dev2/source/Lib/TLibEncoder/TEncCu.h
r1274 r1280 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 H_3D
Note: See TracChangeset for help on using the changeset viewer.