History

refactor multi-thread logic

sijchen committed 10 years ago

Commit 2df092b1 parent 01016b12 files · +26 −35Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+6−0
@@ -4037,6 +4037,12 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 4036 unmodified lines
4037 4037
4038 pCtx->pTaskManage->ExecuteTasks();4038 pCtx->pTaskManage->ExecuteTasks();
4039 iLayerSize = AppendSliceToFrameBs (pCtx, pLayerBsInfo, iSliceCount);4039 iLayerSize = AppendSliceToFrameBs (pCtx, pLayerBsInfo, iSliceCount);
4040 if (pCtx->iEncoderError) {
4041 WelsLog (pLogCtx, WELS_LOG_ERROR,
4042 "WelsEncoderEncodeExt(), multi-slice (mode %d) encoding error!",
4043 pParam->sSliceArgument.uiSliceMode);
4044 return pCtx->iEncoderError;
4045 }
4040 }4046 }
4041 // THREAD_FULLY_FIRE_MODE && SM_SIZELIMITED_SLICE4047 // THREAD_FULLY_FIRE_MODE && SM_SIZELIMITED_SLICE
4042 else if ((SM_SIZELIMITED_SLICE == pParam->sSliceArgument.uiSliceMode) && (pSvcParam->iMultipleThreadIdc > 1)) {4048 else if ((SM_SIZELIMITED_SLICE == pParam->sSliceArgument.uiSliceMode) && (pSvcParam->iMultipleThreadIdc > 1)) {

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