ref: 0a6819c0b7696affe45ec286b791189d51eed689
parent: c1a24d52f5e4ca96a0775dfe0f83cc22e43f3c8c
author: Sijia Chen <sijchen@cisco.com>
date: Tue Jul 8 11:43:15 EDT 2014
remove unnecessary log output
--- 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;