ref: e4734613e3a93e93f3b908e76bf298237859ef83
parent: c2ed5806aa9376543cae6d211c0c46e5e5b241da
parent: 63939c61c08fbf6a7b256c58019cea7c9bc5f3d4
author: sijchen <sijchen@cisco.com>
date: Wed Apr 18 15:02:05 EDT 2018
Merge pull request #2956 from ruil2/clean_trace assign log output by using WelsLog instead of fprintf
--- a/codec/decoder/core/src/decoder_core.cpp
+++ b/codec/decoder/core/src/decoder_core.cpp
@@ -2456,7 +2456,7 @@
}
}
#if defined (_DEBUG) && !defined (CODEC_FOR_TESTBED)
- fprintf (stderr, "cur_frame : %d\tiCurrIdD : %d\n ",
+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG, "cur_frame : %d\tiCurrIdD : %d\n ",
dq_cur->sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.iFrameNum, iCurrIdD);
#endif//#if !CODEC_FOR_TESTBED
iLastIdD = iCurrIdD;
@@ -2485,7 +2485,7 @@
// A dq layer decoded here
#if defined (_DEBUG) && !defined (CODEC_FOR_TESTBED)
#undef fprintf
- fprintf (stderr, "POC: #%d, FRAME: #%d, D: %d, Q: %d, T: %d, P: %d, %d\n",
+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG, "POC: #%d, FRAME: #%d, D: %d, Q: %d, T: %d, P: %d, %d\n",
pSh->iPicOrderCntLsb, pSh->iFrameNum, iCurrIdD, iCurrIdQ, dq_cur->sLayerInfo.sNalHeaderExt.uiTemporalId,
dq_cur->sLayerInfo.sNalHeaderExt.uiPriorityId, dq_cur->sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.iSliceQp);
#endif//#if !CODEC_FOR_TESTBED