History

Set and use a proper log context in the encoder

Martin Storsjö committed 12 years ago

Commit 9583ac41 parent 8bac9315 files · +97 −73Browse files

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

Unified · Split

codec/encoder/core/src/slice_multi_threading.cpp+3−3
@@ -968,15 +968,15 @@ int32_t CreateSliceThreads (sWelsEncCtx* pCtx) { · 967 unmodified lines
968 return 0;968 return 0;
969}969}
970 970
971int32_t FiredSliceThreads (SSliceThreadPrivateData* pPriData, WELS_EVENT* pEventsList, WELS_EVENT* pMasterEventsList,971int32_t FiredSliceThreads (sWelsEncCtx* pCtx, SSliceThreadPrivateData* pPriData, WELS_EVENT* pEventsList,
972 SLayerBSInfo* pLbi,972 WELS_EVENT* pMasterEventsList, SLayerBSInfo* pLbi,
973 const uint32_t uiNumThreads, SSliceCtx* pSliceCtx, const bool bIsDynamicSlicingMode) {973 const uint32_t uiNumThreads, SSliceCtx* pSliceCtx, const bool bIsDynamicSlicingMode) {
974 int32_t iEndMbIdx = 0;974 int32_t iEndMbIdx = 0;
975 int32_t iIdx = 0;975 int32_t iIdx = 0;
976 const int32_t kiEventCnt = uiNumThreads;976 const int32_t kiEventCnt = uiNumThreads;
977 977
978 if (pPriData == NULL || pLbi == NULL || kiEventCnt <= 0 || pEventsList == NULL) {978 if (pPriData == NULL || pLbi == NULL || kiEventCnt <= 0 || pEventsList == NULL) {
979 WelsLog (NULL, WELS_LOG_ERROR,979 WelsLog (pCtx, WELS_LOG_ERROR,
980 "FiredSliceThreads(), fail due pPriData == %p || pLbi == %p || iEventCnt(%d) <= 0 || pEventsList == %p!!\n",980 "FiredSliceThreads(), fail due pPriData == %p || pLbi == %p || iEventCnt(%d) <= 0 || pEventsList == %p!!\n",
981 (void*)pPriData, (void*)pLbi, uiNumThreads, (void*)pEventsList);981 (void*)pPriData, (void*)pLbi, uiNumThreads, (void*)pEventsList);
982 return 1;982 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