Ticket #1: FIX_TRACE.patch
File FIX_TRACE.patch, 5.6 KB (added by ksuehring, 9 years ago) |
---|
-
Lib/TLibCommon/TComRom.h
207 207 extern Char g_aucConvertToBit [ MAX_CU_SIZE+1 ]; // from width to log2(width)-2 208 208 209 209 #ifndef ENC_DEC_TRACE 210 # define ENC_DEC_TRACE 0210 # define ENC_DEC_TRACE 1 211 211 #endif 212 212 213 213 #if ENC_DEC_TRACE -
Lib/TLibCommon/TypeDef.h
41 41 //! \ingroup TLibCommon 42 42 //! \{ 43 43 44 #define FIX_TRACE 1 44 45 /////////////////////////////////////////////////////////// 45 46 // Contribution COM16C806 (QUALCOMM) defines section start 46 47 /////////////////////////////////////////////////////////// -
Lib/TLibDecoder/SEIread.cpp
122 122 } while (m_pcBitstream->getNumBitsLeft() > 8); 123 123 124 124 UInt rbspTrailingBits; 125 #if ENC_DEC_TRACE && FIX_TRACE 126 // omit trace text to match encoder side 127 xReadCode(8, rbspTrailingBits); 128 #else 125 129 READ_CODE(8, rbspTrailingBits, "rbsp_trailing_bits"); 130 #endif 126 131 assert(rbspTrailingBits == 0x80); 127 132 } 128 133 -
Lib/TLibDecoder/TDecBinCoderCABAC.cpp
101 101 Void TDecBinCABAC::decodeBin( UInt& ruiBin, ContextModel &rcCtxModel ) 102 102 { 103 103 UShort uiLPS = TComCABACTables::sm_aucLPSTable[rcCtxModel.getState()>>6][(m_uiRange>>2)-64]; 104 #if DEBUG 104 #if DEBUG && !FIX_TRACE 105 105 { 106 106 DTRACE_CABAC_VL( g_nSymbolCounter++ ) 107 107 DTRACE_CABAC_T( "\tstate=" ) -
Lib/TLibDecoder/TDecCAVLC.cpp
1317 1317 #if QC_SUB_PU_TMVP &&!MERGE_CAND_NUM_PATCH 1318 1318 READ_UVLC( uiCode, rpcSlice->getSPS()->getAtmvpEnableFlag() ? "six_minus_max_num_merge_cand": "five_minus_max_num_merge_cand"); 1319 1319 rpcSlice->setMaxNumMergeCand(MRG_MAX_NUM_CANDS - ( rpcSlice->getSPS()->getAtmvpEnableFlag() ? 0 : 1) - uiCode); 1320 1321 1320 #else 1321 #if MERGE_CAND_NUM_PATCH && FIX_TRACE 1322 READ_UVLC( uiCode, "MAX_minus_slice_max_num_merge_cand"); 1323 #else 1322 1324 READ_UVLC( uiCode, "five_minus_max_num_merge_cand"); 1325 #endif 1323 1326 rpcSlice->setMaxNumMergeCand(MRG_MAX_NUM_CANDS - uiCode); 1324 1327 #endif 1325 1328 -
Lib/TLibDecoder/TDecTop.cpp
381 381 m_apcSlicePilot->setReferenced(true); // Putting this as true ensures that picture is referenced the first time it is in an RPS 382 382 m_apcSlicePilot->setTLayerInfo(nalu.m_temporalId); 383 383 384 #if ENC_DEC_TRACE && FIX_TRACE 385 const UInt64 originalSymbolCount = g_nSymbolCounter; 386 #endif 387 384 388 m_cEntropyDecoder.decodeSliceHeader (m_apcSlicePilot, &m_parameterSetManagerDecoder); 385 389 386 390 #if QC_AC_ADAPT_WDOW … … 481 485 if (m_prevPOC >= m_pocRandomAccess) 482 486 { 483 487 m_prevPOC = m_apcSlicePilot->getPOC(); 488 #if ENC_DEC_TRACE && FIX_TRACE 489 //rewind the trace counter since we didn't actually decode the slice 490 g_nSymbolCounter = originalSymbolCount; 491 #endif 484 492 return true; 485 493 } 486 494 m_prevPOC = m_apcSlicePilot->getPOC(); -
Lib/TLibEncoder/TEncBinCoderCABAC.cpp
238 238 } 239 239 #endif 240 240 UShort uiLPS = TComCABACTables::sm_aucLPSTable[rcCtxModel.getState()>>6][(m_uiRange>>2)-64]; 241 #if DEBUG 241 #if DEBUG && !FIX_TRACE 242 242 { 243 243 DTRACE_CABAC_VL( g_nSymbolCounter++ ) 244 244 DTRACE_CABAC_T( "\tstate=" ) … … 285 285 #else 286 286 Void TEncBinCABAC::encodeBin( UInt binValue, ContextModel &rcCtxModel ) 287 287 { 288 #if !FIX_TRACE 288 289 { 289 290 DTRACE_CABAC_VL( g_nSymbolCounter++ ) 290 291 DTRACE_CABAC_T( "\tstate=" ) … … 293 294 DTRACE_CABAC_V( binValue ) 294 295 DTRACE_CABAC_T( "\n" ) 295 296 } 297 #endif 296 298 m_uiBinsCoded += m_binCountIncrement; 297 299 rcCtxModel.setBinsCoded( 1 ); 298 300 … … 332 334 */ 333 335 Void TEncBinCABAC::encodeBinEP( UInt binValue ) 334 336 { 335 #if !DEBUG 337 #if !DEBUG && !FIX_TRACE 336 338 { 337 339 DTRACE_CABAC_VL( g_nSymbolCounter++ ) 338 340 DTRACE_CABAC_T( "\tEPsymbol=" ) … … 360 362 Void TEncBinCABAC::encodeBinsEP( UInt binValues, Int numBins ) 361 363 { 362 364 m_uiBinsCoded += numBins & -m_binCountIncrement; 363 #if !DEBUG 365 #if !DEBUG && !FIX_TRACE 364 366 for ( Int i = 0; i < numBins; i++ ) 365 367 { 366 368 DTRACE_CABAC_VL( g_nSymbolCounter++ ) -
Lib/TLibEncoder/TEncCavlc.cpp
460 460 } 461 461 } 462 462 #if QC_IC 463 #if FIX_TRACE 464 WRITE_FLAG( pcSPS->getICFlag()? 1: 0, "illumination_comp_enabled_flag"); 465 #else 463 466 WRITE_FLAG( pcSPS->getICFlag()? 1: 0, "illumination_comp_flag"); 464 467 #endif 468 #endif 465 469 #if QC_SUB_PU_TMVP 466 470 WRITE_FLAG( pcSPS->getAtmvpEnableFlag() ? 1: 0, "atmvp_flag"); 467 471 WRITE_CODE( pcSPS->getSubPUTLog2Size(), 3, "log2_sub_pu_tmvp_size" );