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/pic_queue.cpp (1 of 9 files). Show all

Unified · Split

codec/decoder/core/src/pic_queue.cpp+12−0
@@ -217,4 +217,16 @@ PPicture PrefetchPicForThread (PPicBuff pPicBuf) { · 216 unmodified lines
217217 return pPic;
218218 }
219219
220+PPicture PrefetchLastPicForThread (PPicBuff pPicBuf, const int32_t& iLastPicBuffIdx) {
221+ PPicture pPic = NULL;
222+
223+ if (pPicBuf->iCapacity == 0) {
224+ return NULL;
225+ }
226+ if (iLastPicBuffIdx >= 0 && iLastPicBuffIdx < pPicBuf->iCapacity) {
227+ pPic = pPicBuf->ppPic[iLastPicBuffIdx];
228+ }
229+ return pPic;
230+}
231+
220232 } // namespace WelsDec

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