History

cleanup trace module

ruil2 committed 12 years ago

Commit 4c12f891 parent eceb4e525 files · +240 −1021Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 25 files). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+0−21
@@ -1712,14 +1712,6 @@ void FreeMemorySvc (sWelsEncCtx** ppCtx) { · 1711 unmodified lines
17121712 pCtx->pMvdCostTableInter = NULL;
17131713 }
17141714
1715−#ifdef ENABLE_TRACE_FILE
1716− if (NULL != pCtx->pFileLog) {
1717− WelsFclose (pCtx->pFileLog);
1718− pCtx->pFileLog = NULL;
1719− }
1720− pCtx->uiSizeLog = 0;
1721−#endif//ENABLE_TRACE_FILE
1722−
17231715 FreeCodingParam (&pCtx->pSvcParam, pMa);
17241716 if (NULL != pCtx->pFuncList) {
17251717 pMa->WelsFree (pCtx->pFuncList, "SWelsFuncPtrList");
@@ -1976,19 +1968,6 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar · 250 unmodified lines
19761968 pCtx->pMemAlign = new CMemoryAlign (iCacheLineSize);
19771969 WELS_VERIFY_RETURN_PROC_IF (1, (NULL == pCtx->pMemAlign), FreeMemorySvc (&pCtx))
19781970
1979− // for logs
1980−#ifdef ENABLE_TRACE_FILE
1981− if (wlog == WelsLogDefault) {
1982− char fname[MAX_FNAME_LEN] = {0};
1983−
1984− WelsSnprintf (fname, MAX_FNAME_LEN, "wels_svc_encoder_trace.txt");
1985−
1986−
1987− pCtx->pFileLog = WelsFopen (fname, "wt+");
1988− pCtx->uiSizeLog = 0;
1989− }
1990−#endif//ENABLE_TRACE_FILE
1991−
19921971 pCodingParam->DetermineTemporalSettings();
19931972 iRet = AllocCodingParam (&pCtx->pSvcParam, pCtx->pMemAlign);
19941973 if (iRet != 0) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t