History

completing and bug-fixing the screen content MD/ME process

Sijia Chen committed 12 years ago

Commit a964ae81 parent 2eb65d717 files · +404 −289Browse files

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

Unified · Split

codec/encoder/core/src/slice_multi_threading.cpp+3−3
@@ -211,7 +211,7 @@ void DynamicAdjustSlicing (sWelsEncCtx* pCtx, · 210 unmodified lines
211 iNumMbInEachGom = pWelsSvcRc->iNumberMbGom;211 iNumMbInEachGom = pWelsSvcRc->iNumberMbGom;
212 212
213 if (iNumMbInEachGom <= 0) {213 if (iNumMbInEachGom <= 0) {
214 WelsLog (&(pCtx->sLogCtx), WELS_LOG_ERROR,214 WelsLog (& (pCtx->sLogCtx), WELS_LOG_ERROR,
215 "[MT] DynamicAdjustSlicing(), invalid iNumMbInEachGom= %d from RC, iDid= %d, iCountNumMb= %d\n", iNumMbInEachGom,215 "[MT] DynamicAdjustSlicing(), invalid iNumMbInEachGom= %d from RC, iDid= %d, iCountNumMb= %d\n", iNumMbInEachGom,
216 iCurDid, kiCountNumMb);216 iCurDid, kiCountNumMb);
217 return;217 return;
@@ -940,7 +940,7 @@ WELS_THREAD_ROUTINE_TYPE CodingSliceThreadProc (void* arg) { · 722 unmodified lines
940 WelsEventSignal (940 WelsEventSignal (
941 &pEncPEncCtx->pSliceThreading->pFinUpdateMbListEvent[iEventIdx]); // mean finished update pMb list for this pSlice941 &pEncPEncCtx->pSliceThreading->pFinUpdateMbListEvent[iEventIdx]); // mean finished update pMb list for this pSlice
942 } else { // WELS_THREAD_ERROR_WAIT_TIMEOUT, or WELS_THREAD_ERROR_WAIT_FAILED942 } else { // WELS_THREAD_ERROR_WAIT_TIMEOUT, or WELS_THREAD_ERROR_WAIT_FAILED
943 WelsLog (&(pEncPEncCtx->sLogCtx), WELS_LOG_WARNING,943 WelsLog (& (pEncPEncCtx->sLogCtx), WELS_LOG_WARNING,
944 "[MT] CodingSliceThreadProc(), waiting pReadySliceCodingEvent[%d] failed(%d) and thread%d terminated!\n", iEventIdx,944 "[MT] CodingSliceThreadProc(), waiting pReadySliceCodingEvent[%d] failed(%d) and thread%d terminated!\n", iEventIdx,
945 iWaitRet, iThreadIdx);945 iWaitRet, iThreadIdx);
946 uiThrdRet = 1;946 uiThrdRet = 1;
@@ -978,7 +978,7 @@ int32_t FiredSliceThreads (sWelsEncCtx* pCtx, SSliceThreadPrivateData* pPriData, · 31 unmodified lines
978 const int32_t kiEventCnt = uiNumThreads;978 const int32_t kiEventCnt = uiNumThreads;
979 979
980 if (pPriData == NULL || pLbi == NULL || kiEventCnt <= 0 || pEventsList == NULL) {980 if (pPriData == NULL || pLbi == NULL || kiEventCnt <= 0 || pEventsList == NULL) {
981 WelsLog (&(pCtx->sLogCtx), WELS_LOG_ERROR,981 WelsLog (& (pCtx->sLogCtx), WELS_LOG_ERROR,
982 "FiredSliceThreads(), fail due pPriData == %p || pLbi == %p || iEventCnt(%d) <= 0 || pEventsList == %p!!\n",982 "FiredSliceThreads(), fail due pPriData == %p || pLbi == %p || iEventCnt(%d) <= 0 || pEventsList == %p!!\n",
983 (void*)pPriData, (void*)pLbi, uiNumThreads, (void*)pEventsList);983 (void*)pPriData, (void*)pLbi, uiNumThreads, (void*)pEventsList);
984 return 1;984 return 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