History

SSliceCtx struture refactoring----change input paramters for UpdateMbListNeighborParallel

huade committed 11 years ago

Commit 06eb0351 parent 148f86f3 files · +5 −4Browse files

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

Unified · Split

codec/encoder/core/src/slice_multi_threading.cpp+3−2
@@ -77,9 +77,10 @@ · 76 unmodified lines
7777 }
7878
7979 namespace WelsEnc {
80−void UpdateMbListNeighborParallel (SSliceCtx* pSliceCtx,
80+void UpdateMbListNeighborParallel (SDqLayer* pCurDq,
8181 SMB* pMbList,
8282 const int32_t uiSliceIdc) {
83+ SSliceCtx* pSliceCtx = pCurDq->pSliceEncCtx;
8384 const uint16_t* kpMbMap = pSliceCtx->pOverallMbMap;
8485 const int32_t kiMbWidth = pSliceCtx->iMbWidth;
8586 int32_t iIdx = pSliceCtx->pFirstMbInSlice[uiSliceIdc];
@@ -960,7 +961,7 @@ WELS_THREAD_ROUTINE_TYPE CodingSliceThreadProc (void* arg) { · 874 unmodified lines
960961 iSliceIdx =
961962 iEventIdx; // pPrivateData->iSliceIndex; old threads can not be terminated, pPrivateData is not correct for applicable
962963 pCurDq = pEncPEncCtx->pCurDqLayer;
963− UpdateMbListNeighborParallel (pCurDq->pSliceEncCtx, pCurDq->sMbDataP, iSliceIdx);
964+ UpdateMbListNeighborParallel (pCurDq, pCurDq->sMbDataP, iSliceIdx);
964965 WelsEventSignal (
965966 &pEncPEncCtx->pSliceThreading->pFinUpdateMbListEvent[iEventIdx]); // mean finished update pMb list for this pSlice
966967 } else { // WELS_THREAD_ERROR_WAIT_TIMEOUT, or WELS_THREAD_ERROR_WAIT_FAILED

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