History

Mainly update DecodeCurrentAccessUnit and associated functions to do threaded parallel frame decodings.

Add additional function PrefetchLastPicForThread and variables for better control of threaded decoding in the case of multi-slice with one slice group contains one slice.

xiaotiansf committed 7 years ago

Commit b0f95c41 parent 8b881449 files · +279 −89Browse files

Showing the changes to codec/decoder/core/src/manage_dec_ref.cpp (1 of 9 files). Show all

Unified · Split

codec/decoder/core/src/manage_dec_ref.cpp+1−1
@@ -150,7 +150,7 @@ static int32_t WelsCheckAndRecoverForFutureDecoding (PWelsDecoderContext pCtx) { · 149 unmodified lines
150150 && pCtx->eSliceType != SI_SLICE)) {
151151 if (pCtx->pParam->eEcActiveIdc !=
152152 ERROR_CON_DISABLE) { //IDR lost!, recover it for future decoding with data all set to 0
153− PPicture pRef = pCtx->pThreadCtx != NULL ? PrefetchPicForThread (pCtx->pPicBuff) : PrefetchPic (pCtx->pPicBuff);
153+ PPicture pRef = PrefetchPic (pCtx->pPicBuff);
154154 if (pRef != NULL) {
155155 // IDR lost, set new
156156 pRef->bIsComplete = false; // Set complete flag to false for lost IDR ref picture

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t