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
1712 pCtx->pMvdCostTableInter = NULL;1712 pCtx->pMvdCostTableInter = NULL;
1713 }1713 }
1714 1714
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
1723 FreeCodingParam (&pCtx->pSvcParam, pMa);1715 FreeCodingParam (&pCtx->pSvcParam, pMa);
1724 if (NULL != pCtx->pFuncList) {1716 if (NULL != pCtx->pFuncList) {
1725 pMa->WelsFree (pCtx->pFuncList, "SWelsFuncPtrList");1717 pMa->WelsFree (pCtx->pFuncList, "SWelsFuncPtrList");
@@ -1976,19 +1968,6 @@ int32_t WelsInitEncoderExt (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPar · 250 unmodified lines
1976 pCtx->pMemAlign = new CMemoryAlign (iCacheLineSize);1968 pCtx->pMemAlign = new CMemoryAlign (iCacheLineSize);
1977 WELS_VERIFY_RETURN_PROC_IF (1, (NULL == pCtx->pMemAlign), FreeMemorySvc (&pCtx))1969 WELS_VERIFY_RETURN_PROC_IF (1, (NULL == pCtx->pMemAlign), FreeMemorySvc (&pCtx))
1978 1970
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
1992 pCodingParam->DetermineTemporalSettings();1971 pCodingParam->DetermineTemporalSettings();
1993 iRet = AllocCodingParam (&pCtx->pSvcParam, pCtx->pMemAlign);1972 iRet = AllocCodingParam (&pCtx->pSvcParam, pCtx->pMemAlign);
1994 if (iRet != 0) {1973 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