History

put pSliceBsBuffer to thread buffer rather than per slice, so as to save memory usage

Sijia Chen committed 11 years ago

Commit 43ca6db1 parent bee0d7d4 files · +71 −33Browse files

Showing the changes to codec/encoder/core/src/encoder_ext.cpp (1 of 4 files). Show all

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+1−1
@@ -4061,9 +4061,9 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 4060 unmodified lines
40614061 // pick up succeeding slice for threading
40624062 // thread_id equal to iEventId per implementation here
40634063 pCtx->pSliceThreading->pThreadPEncCtx[iEventId].iSliceIndex = iIndexOfSliceToBeCoded;
4064+ SetOneSliceBsBufferUnderMultithread(pCtx, iEventId, iIndexOfSliceToBeCoded);
40644065 WelsEventSignal (&pCtx->pSliceThreading->pReadySliceCodingEvent[iEventId]);
40654066 WelsEventSignal (&pCtx->pSliceThreading->pThreadMasterEvent[iEventId]);
4066−
40674067 ++ iIndexOfSliceToBeCoded;
40684068 } else { // no other slices left for coding
40694069 -- iNumThreadsRunning;

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