shithub: openh264

Download patch

ref: 6a31bc3785d1b0b1f5fb97a4e63322dd3d275ceb
parent: 2a9035a571685ba2c71ae76756d76db3b6152973
author: Sijia Chen <[email protected]>
date: Wed Apr 8 11:35:24 EDT 2015

downgrade the log level of screen reference logs to save log volume

--- a/codec/encoder/core/src/ref_list_mgr_svc.cpp
+++ b/codec/encoder/core/src/ref_list_mgr_svc.cpp
@@ -778,13 +778,11 @@
           if (pRefPic->uiTemporalId <= pCtx->uiTemporalId && (!pCtx->bCurFrameMarkedAsSceneLtr || pRefPic->bIsSceneLTR)) {
             pCtx->pCurDqLayer->pRefOri[pCtx->iNumRef0] = pRefOri;
             pCtx->pRefList0[pCtx->iNumRef0++] = pRefPic;
-            WelsLog (& (pCtx->sLogCtx), WELS_LOG_INFO,
-                     "WelsBuildRefListScreen(), ref !current iFrameNum = %d, ref iFrameNum = %d,LTR number = %d,iNumRef = %d ref is Scene LTR = %d",
-                     pCtx->iFrameNum, pCtx->pRefList0[pCtx->iNumRef0 - 1]->iFrameNum, pRefList->uiLongRefCount, iNumRef,
-                     pRefPic->bIsSceneLTR);
-            WelsLog (& (pCtx->sLogCtx), WELS_LOG_INFO,
-                     "WelsBuildRefListScreen pCtx->uiTemporalId = %d,pRef->iFrameNum = %d,pRef->uiTemporalId = %d",
-                     pCtx->uiTemporalId, pRefPic->iFrameNum, pRefPic->uiTemporalId);
+            WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,
+                     "WelsBuildRefListScreen(), current iFrameNum = %d, current Tid = %d, ref iFrameNum = %d, ref uiTemporalId = %d, ref is Scene LTR = %d, LTR count = %d,iNumRef = %d",
+                     pCtx->iFrameNum, pCtx->uiTemporalId,
+                     pRefPic->iFrameNum, pRefPic->uiTemporalId, pRefPic->bIsSceneLTR,
+                     pRefList->uiLongRefCount, iNumRef);
           }
         }
       } else {
@@ -795,7 +793,7 @@
                      || pRefList->pLongRefList[i]->uiTemporalId < pCtx->uiTemporalId)	{
             pCtx->pCurDqLayer->pRefOri[pCtx->iNumRef0] = pRefOri;
             pCtx->pRefList0[pCtx->iNumRef0++] = pRefList->pLongRefList[i];
-            WelsLog (& (pCtx->sLogCtx), WELS_LOG_INFO,
+            WelsLog (& (pCtx->sLogCtx), WELS_LOG_DEBUG,
                      "WelsBuildRefListScreen(), ref !current iFrameNum = %d, ref iFrameNum = %d,LTR number = %d",
                      pCtx->iFrameNum, pCtx->pRefList0[pCtx->iNumRef0 - 1]->iFrameNum, pRefList->uiLongRefCount);
             break;