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 | pCtx->bAvcBasedFlag = true; | 312 | pCtx->bAvcBasedFlag = true; |
| 313 | pCtx->pPreviousDecodedPictureInDpb = NULL; | 313 | pCtx->pPreviousDecodedPictureInDpb = NULL; |
| 314 | pCtx->sDecoderStatistics.iAvgLumaQp = -1; | 314 | pCtx->sDecoderStatistics.iAvgLumaQp = -1; |
| 315 | pCtx->sDecoderStatistics.iStatisticsLogInterval = 1000; | ||
| 315 | pCtx->bUseScalingList = false; | 316 | pCtx->bUseScalingList = false; |
| 316 | pCtx->iSpsErrorIgnored = 0; | 317 | pCtx->iSpsErrorIgnored = 0; |
| 317 | pCtx->iSubSpsErrorIgnored = 0; | 318 | pCtx->iSubSpsErrorIgnored = 0; |
| @@ -1020,10 +1021,12 @@ void ResetDecStatNums (SDecoderStatistics* pDecStat) { · 702 unmodified lines | |||
| 1020 | uint32_t uiWidth = pDecStat->uiWidth; | 1021 | uint32_t uiWidth = pDecStat->uiWidth; |
| 1021 | uint32_t uiHeight = pDecStat->uiHeight; | 1022 | uint32_t uiHeight = pDecStat->uiHeight; |
| 1022 | int32_t iAvgLumaQp = pDecStat->iAvgLumaQp; | 1023 | int32_t iAvgLumaQp = pDecStat->iAvgLumaQp; |
| 1024 | uint32_t iLogInterval = pDecStat->iStatisticsLogInterval; | ||
| 1023 | memset (pDecStat, 0, sizeof (SDecoderStatistics)); | 1025 | memset (pDecStat, 0, sizeof (SDecoderStatistics)); |
| 1024 | pDecStat->uiWidth = uiWidth; | 1026 | pDecStat->uiWidth = uiWidth; |
| 1025 | pDecStat->uiHeight = uiHeight; | 1027 | pDecStat->uiHeight = uiHeight; |
| 1026 | pDecStat->iAvgLumaQp = iAvgLumaQp; | 1028 | pDecStat->iAvgLumaQp = iAvgLumaQp; |
| 1029 | pDecStat->iStatisticsLogInterval = iLogInterval; | ||
| 1027 | } | 1030 | } |
| 1028 | 1031 | ||
| 1029 | //update information when freezing occurs, including IDR/non-IDR number | 1032 | //update information when freezing occurs, including IDR/non-IDR number |