Changeset 521 in 3DVCSoftware for branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon
- Timestamp:
- 4 Jul 2013, 21:00:23 (12 years ago)
- Location:
- branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TComRom.cpp
r446 r521 324 324 Bool g_bJustDoIt = false; 325 325 UInt64 g_nSymbolCounter = 0; 326 #if H_MV_ENC_DEC_TRAC 327 Bool g_traceCU = true; 328 Bool g_tracePU = true; 329 Bool g_traceTU = true; 330 Bool g_disableHLSTrace = false; 331 UInt64 g_stopAtCounter = 10803; 332 #endif 326 333 #endif 327 334 // ==================================================================================================================== … … 518 525 Int g_eTTable[4] = {0,3,1,2}; 519 526 527 #if H_MV_ENC_DEC_TRAC 528 #if ENC_DEC_TRACE 529 Void writeToTraceFile( Char* symbolName, Int val, Bool doIt ) 530 { 531 if ( ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) && doIt ) 532 { 533 if ( g_stopAtCounter == g_nSymbolCounter ) 534 { 535 std::cout << "Break point here." << std::endl; 536 } 537 fprintf( g_hTrace, "%8lld ", g_nSymbolCounter++ ); 538 fprintf( g_hTrace, "%-50s : %d\n", symbolName, val ); 539 fflush ( g_hTrace ); 540 g_nSymbolCounter++; 541 } 542 } 543 544 Void writeToTraceFile( Char* symbolName, Bool doIt ) 545 { 546 if ( ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) && doIt ) 547 { 548 fprintf( g_hTrace, "%s", symbolName ); 549 fflush ( g_hTrace ); 550 g_nSymbolCounter++; 551 } 552 } 553 554 #endif 555 #endif 520 556 //! \} -
branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TComRom.h
r324 r521 40 40 41 41 #include "CommonDef.h" 42 #include "TypeDef.h" 42 43 43 44 #include<stdio.h> … … 184 185 #define DTRACE_CABAC_N if ( ( g_nSymbolCounter >= COUNTER_START && g_nSymbolCounter <= COUNTER_END )|| g_bJustDoIt ) fprintf( g_hTrace, "\n" ); 185 186 187 #if H_MV_ENC_DEC_TRAC 188 extern Bool g_traceCU; 189 extern Bool g_tracePU; 190 extern Bool g_traceTU; 191 extern Bool g_disableHLSTrace; 192 extern UInt64 g_stopAtCounter; 193 194 #define DTRACE_CU(x,y) writeToTraceFile( x,y, g_traceCU ); 195 #define DTRACE_PU(x,y) writeToTraceFile( x,y, g_tracePU ); 196 #define DTRACE_TU(x,y) writeToTraceFile( x,y, g_traceTU ); 197 #define DTRACE_CU_S(x) writeToTraceFile( x, g_traceCU ); 198 #define DTRACE_PU_S(x) writeToTraceFile( x, g_tracePU ); 199 #define DTRACE_TU_S(x) writeToTraceFile( x, g_traceTU ); 200 201 202 Void writeToTraceFile( Char* symbolName, Int val, Bool doIt ); 203 Void writeToTraceFile( Char* symbolName, Bool doIt ); 204 #endif 186 205 #else 187 206 … … 194 213 #define DTRACE_CABAC_N 195 214 215 #if H_MV_ENC_DEC_TRAC 216 #define DTRACE_CU(x,y) 217 #define DTRACE_PU(x,y) 218 #define DTRACE_TU(x,y) 219 220 #define DTRACE_CU_S(x) 221 #define DTRACE_PU_S(x) 222 #define DTRACE_TU_S(x) 223 224 #endif 196 225 #endif 197 226 -
branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TComSlice.cpp
r504 r521 654 654 } 655 655 656 #if H_MV 656 #if H_MV && !H_MV_FIX1071 657 657 // Temporary fix for FIX1071 should be removed later 658 658 Int TComSlice::getNumRpsCurrTempList( TComReferencePictureSet* rps /* = 0 */) … … 661 661 #endif 662 662 { 663 664 663 Int numRpsCurrTempList = 0; 665 664 … … 668 667 return 0; 669 668 } 670 #if H_MV 669 #if H_MV && !H_MV_FIX1071 671 670 // Temporary fix for FIX1071 should be removed later 672 671 if (rps == NULL) … … 1302 1301 /** Function for constructing an explicit Reference Picture Set out of the available pictures in a referenced Reference Picture Set 1303 1302 */ 1303 #if FIX1071 && H_MV_FIX1071 1304 Void TComSlice::createExplicitReferencePictureSetFromReference( TComList<TComPic*>& rcListPic, TComReferencePictureSet *pReferencePictureSet, Bool isRAP) 1305 #else 1304 1306 Void TComSlice::createExplicitReferencePictureSetFromReference( TComList<TComPic*>& rcListPic, TComReferencePictureSet *pReferencePictureSet) 1307 #endif 1305 1308 { 1306 1309 TComPic* rpcPic; … … 1327 1330 // and should be added to the explicit Reference Picture Set 1328 1331 pcRPS->setDeltaPOC(k, pReferencePictureSet->getDeltaPOC(i)); 1332 #if FIX1071 && H_MV_FIX1071 1333 pcRPS->setUsed(k, pReferencePictureSet->getUsed(i) && (!isRAP)); 1334 #else 1329 1335 pcRPS->setUsed(k, pReferencePictureSet->getUsed(i)); 1336 #endif 1330 1337 if(pcRPS->getDeltaPOC(k) < 0) 1331 1338 { -
branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TComSlice.h
r510 r521 1619 1619 Bool getCheckLDC () { return m_bCheckLDC; } 1620 1620 Bool getMvdL1ZeroFlag () { return m_bLMvdL1Zero; } 1621 #if H_MV // This is a temporary fix of the temporary fix L01771621 #if H_MV && !H_MV_FIX1071 // This is a temporary fix of the temporary fix L0177 1622 1622 Int getNumRpsCurrTempList( TComReferencePictureSet* rps = NULL ); 1623 1623 #else … … 1736 1736 Bool isStepwiseTemporalLayerSwitchingPointCandidate( TComList<TComPic*>& rcListPic ); 1737 1737 Int checkThatAllRefPicsAreAvailable( TComList<TComPic*>& rcListPic, TComReferencePictureSet *pReferencePictureSet, Bool printErrors, Int pocRandomAccess = 0); 1738 #if FIX1071 && H_MV_FIX1071 1739 Void createExplicitReferencePictureSetFromReference( TComList<TComPic*>& rcListPic, TComReferencePictureSet *pReferencePictureSet, Bool isRAP); 1740 #else 1738 1741 Void createExplicitReferencePictureSetFromReference( TComList<TComPic*>& rcListPic, TComReferencePictureSet *pReferencePictureSet); 1742 #endif 1739 1743 1740 1744 Void setMaxNumMergeCand (UInt val ) { m_maxNumMergeCand = val; } -
branches/HTM-DEV-0.3-dev2/source/Lib/TLibCommon/TypeDef.h
r510 r521 69 69 /////////////////////////////////// MAJOR DEFINES /////////////////////////////////// 70 70 ///////////////////////////////////////////////////////////////////////////////////////// 71 #if H_MV 72 #define H_MV_FIX1071 1 //< Fix on Fix1071, same as in HTM 11 73 #define H_MV_ENC_DEC_TRAC 0 //< CU/PU level tracking 74 #endif 71 75 72 76 #if H_3D … … 129 133 // Sony_M23639 130 134 #define H_3D_GEN 1 // Some general changes can be removed after merge 131 #define H_3D_CLEANUPS 1 132 #define H_3D_FIX 1 // Temporary for minor fixes 135 #define H_3D_CLEANUPS 1 // Temporary for minor fixes can be removed after merge 136 #define H_3D_FIX 1 // Temporary for minor fixes can be removed after merge 137 #define H_3D_VSO_FIX_BORDRE_EXTENSION 1 // Temporary for minor fixes can be removed after merge 133 138 #endif 134 139
Note: See TracChangeset for help on using the changeset viewer.