ref: 8bdf6abe59ebe2c150d034e9a3e379a7b607bdeb
parent: 09b95ad0bd69c540257d5d9ae87f0bd2e498b1eb
parent: 0a6819c0b7696affe45ec286b791189d51eed689
author: ruil2 <[email protected]>
date: Tue Jul 8 12:03:11 EDT 2014
Merge pull request #1103 from sijchen/log_clean [Encoder] extend log level and remove unnecessary info log
--- a/codec/api/svc/codec_app_def.h
+++ b/codec/api/svc/codec_app_def.h
@@ -242,9 +242,10 @@
WELS_LOG_ERROR = 1 << 0, // Error log iLevel
WELS_LOG_WARNING = 1 << 1, // Warning log iLevel
WELS_LOG_INFO = 1 << 2, // Information log iLevel
- WELS_LOG_DEBUG = 1 << 3, // Debug log iLevel
- WELS_LOG_RESV = 1 << 4, // Resversed log iLevel
- WELS_LOG_LEVEL_COUNT = 5,
+ WELS_LOG_DEBUG = 1 << 3, // Debug log, critical algo log
+ WELS_LOG_DETAIL = 1 << 4, // per packet/frame log
+ WELS_LOG_RESV = 1 << 5, // Resversed log iLevel
+ WELS_LOG_LEVEL_COUNT = 6,
WELS_LOG_DEFAULT = WELS_LOG_DEBUG // Default log iLevel in Wels codec
};
--- a/codec/encoder/core/inc/rc.h
+++ b/codec/encoder/core/inc/rc.h
@@ -50,7 +50,7 @@
namespace WelsSVCEnc {
//trace
-#define GOM_TRACE_FLAG 1
+#define GOM_TRACE_FLAG 0
#define GOM_H_SCC 8
#define WELS_RC_DISABLE 0
#define WELS_RC_GOM 1
--- a/codec/encoder/core/src/ref_list_mgr_svc.cpp
+++ b/codec/encoder/core/src/ref_list_mgr_svc.cpp
@@ -600,7 +600,7 @@
SPicture* pRef = pRefList->pShortRefList[i];
if (pRef != NULL && pRef->bUsedAsRef && pRef->iFramePoc >= 0 && pRef->uiTemporalId <= kuiTid) {
pCtx->pRefList0[pCtx->iNumRef0++] = pRef;
- WelsLog (& (pCtx->sLogCtx), WELS_LOG_INFO,
+ WelsLog (& (pCtx->sLogCtx), WELS_LOG_DETAIL,
"WelsBuildRefList pCtx->uiTemporalId = %d,pRef->iFrameNum = %d,pRef->uiTemporalId = %d\n",
pCtx->uiTemporalId, pRef->iFrameNum, pRef->uiTemporalId);
break;