Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 6 files). Show all
Unified · Split
| @@ -312,6 +312,7 @@ void WelsDecoderDefaults (PWelsDecoderContext pCtx, SLogContext* pLogCtx) { · 311 unmodified lines | ||
| 312 | 312 | pCtx->bAvcBasedFlag = true; |
| 313 | 313 | pCtx->pPreviousDecodedPictureInDpb = NULL; |
| 314 | 314 | pCtx->sDecoderStatistics.iAvgLumaQp = -1; |
| 315 | + pCtx->sDecoderStatistics.iStatisticsLogInterval = 1000; | |
| 315 | 316 | pCtx->bUseScalingList = false; |
| 316 | 317 | pCtx->iSpsErrorIgnored = 0; |
| 317 | 318 | pCtx->iSubSpsErrorIgnored = 0; |
| @@ -1020,10 +1021,12 @@ void ResetDecStatNums (SDecoderStatistics* pDecStat) { · 702 unmodified lines | ||
| 1020 | 1021 | uint32_t uiWidth = pDecStat->uiWidth; |
| 1021 | 1022 | uint32_t uiHeight = pDecStat->uiHeight; |
| 1022 | 1023 | int32_t iAvgLumaQp = pDecStat->iAvgLumaQp; |
| 1024 | + uint32_t iLogInterval = pDecStat->iStatisticsLogInterval; | |
| 1023 | 1025 | memset (pDecStat, 0, sizeof (SDecoderStatistics)); |
| 1024 | 1026 | pDecStat->uiWidth = uiWidth; |
| 1025 | 1027 | pDecStat->uiHeight = uiHeight; |
| 1026 | 1028 | pDecStat->iAvgLumaQp = iAvgLumaQp; |
| 1029 | + pDecStat->iStatisticsLogInterval = iLogInterval; | |
| 1027 | 1030 | } |
| 1028 | 1031 | |
| 1029 | 1032 | //update information when freezing occurs, including IDR/non-IDR number |