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
4061 // pick up succeeding slice for threading4061 // pick up succeeding slice for threading
4062 // thread_id equal to iEventId per implementation here4062 // thread_id equal to iEventId per implementation here
4063 pCtx->pSliceThreading->pThreadPEncCtx[iEventId].iSliceIndex = iIndexOfSliceToBeCoded;4063 pCtx->pSliceThreading->pThreadPEncCtx[iEventId].iSliceIndex = iIndexOfSliceToBeCoded;
4064 SetOneSliceBsBufferUnderMultithread(pCtx, iEventId, iIndexOfSliceToBeCoded);
4064 WelsEventSignal (&pCtx->pSliceThreading->pReadySliceCodingEvent[iEventId]);4065 WelsEventSignal (&pCtx->pSliceThreading->pReadySliceCodingEvent[iEventId]);
4065 WelsEventSignal (&pCtx->pSliceThreading->pThreadMasterEvent[iEventId]);4066 WelsEventSignal (&pCtx->pSliceThreading->pThreadMasterEvent[iEventId]);
4066
4067 ++ iIndexOfSliceToBeCoded;4067 ++ iIndexOfSliceToBeCoded;
4068 } else { // no other slices left for coding4068 } else { // no other slices left for coding
4069 -- iNumThreadsRunning;4069 -- 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