Showing the changes to codec/decoder/core/src/decoder_core.cpp (1 of 6 files). Show all
Unified · Split
| @@ -676,6 +676,15 @@ void DecodeNalHeaderExt (PNalUnit pNal, uint8_t* pSrc) { · 675 unmodified lines | |||
| 676 | } | 676 | } |
| 677 | 677 | ||
| 678 | 678 | ||
| 679 | void UpdateDecoderStatisticsForActiveParaset(SDecoderStatistics* pDecoderStatistics, | ||
| 680 | PSps pSps, PPps pPps, const int32_t iSpsId) { | ||
| 681 | pDecoderStatistics->iCurrentActiveSpsId = iSpsId; | ||
| 682 | |||
| 683 | pDecoderStatistics->iCurrentActivePpsId = pPps->iPpsId; | ||
| 684 | pDecoderStatistics->uiProfile = static_cast<unsigned int> (pSps->uiProfileIdc); | ||
| 685 | pDecoderStatistics->uiLevel = pSps->uiLevelIdc; | ||
| 686 | } | ||
| 687 | |||
| 679 | #define SLICE_HEADER_IDR_PIC_ID_MAX 65535 | 688 | #define SLICE_HEADER_IDR_PIC_ID_MAX 65535 |
| 680 | #define SLICE_HEADER_REDUNDANT_PIC_CNT_MAX 127 | 689 | #define SLICE_HEADER_REDUNDANT_PIC_CNT_MAX 127 |
| 681 | #define SLICE_HEADER_ALPHAC0_BETA_OFFSET_MIN -12 | 690 | #define SLICE_HEADER_ALPHAC0_BETA_OFFSET_MIN -12 |
| @@ -2108,6 +2117,10 @@ void WelsDqLayerDecodeStart (PWelsDecoderContext pCtx, PNalUnit pCurNal, PSps pS · 1426 unmodified lines | |||
| 2108 | pCtx->pSliceHeader = pSh; | 2117 | pCtx->pSliceHeader = pSh; |
| 2109 | 2118 | ||
| 2110 | pCtx->iFrameNum = pSh->iFrameNum; | 2119 | pCtx->iFrameNum = pSh->iFrameNum; |
| 2120 | |||
| 2121 | UpdateDecoderStatisticsForActiveParaset(&(pCtx->sDecoderStatistics), | ||
| 2122 | pSps, pPps, | ||
| 2123 | (pCurNal->sNalData.sVclNal.bSliceHeaderExtFlag) ? (pCurNal->sNalData.sVclNal.sSliceHeaderExt.pSubsetSps->sSps.iSpsId) : (pSps->iSpsId) ); | ||
| 2111 | } | 2124 | } |
| 2112 | 2125 | ||
| 2113 | int32_t InitRefPicList (PWelsDecoderContext pCtx, const uint8_t kuiNRi, int32_t iPoc) { | 2126 | int32_t InitRefPicList (PWelsDecoderContext pCtx, const uint8_t kuiNRi, int32_t iPoc) { |