Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 5 files). Show all
Unified · Split
| @@ -345,8 +345,6 @@ void_t WelsOpenDecoder (PWelsDecoderContext pCtx) { · 344 unmodified lines | ||
| 345 | 345 | if (ERR_NONE != WelsInitMemory (pCtx)) |
| 346 | 346 | return; |
| 347 | 347 | |
| 348 | − pCtx->iMaxWidthInSps = 0; | |
| 349 | − pCtx->iMaxHeightInSps = 0; | |
| 350 | 348 | #ifdef LONG_TERM_REF |
| 351 | 349 | pCtx->bParamSetsLostFlag = true; |
| 352 | 350 | #else |
| @@ -685,19 +683,6 @@ int32_t SyncPictureResolutionExt (PWelsDecoderContext pCtx, const int32_t kiMbWi · 332 unmodified lines | ||
| 685 | 683 | return iErr; |
| 686 | 684 | } |
| 687 | 685 | |
| 688 | −/*! | |
| 689 | − * \brief update maximal picture width and height if applicable when receiving a SPS NAL | |
| 690 | − */ | |
| 691 | −void_t UpdateMaxPictureResolution (PWelsDecoderContext pCtx, const int32_t kiCurWidth, const int32_t kiCurHeight) { | |
| 692 | − //any dimension larger than that of current dimension, should modify the max-dimension | |
| 693 | − if ((kiCurWidth * kiCurHeight) > (pCtx->iMaxWidthInSps * pCtx->iMaxHeightInSps)) { | |
| 694 | − pCtx->iMaxWidthInSps = kiCurWidth; | |
| 695 | − pCtx->iMaxHeightInSps = kiCurHeight; | |
| 696 | − } | |
| 697 | − | |
| 698 | − return; | |
| 699 | −} | |
| 700 | − | |
| 701 | 686 | void_t AssignFuncPointerForRec (PWelsDecoderContext pCtx) { |
| 702 | 687 | pCtx->pGetI16x16LumaPredFunc[I16_PRED_V ] = WelsI16x16LumaPredV_c; |
| 703 | 688 | pCtx->pGetI16x16LumaPredFunc[I16_PRED_H ] = WelsI16x16LumaPredH_c; |