History

remove unneeded codes and add some logs

Sijia Chen committed 11 years ago

Commit 3e0ee691 parent 3350cf77 files · +29 −112Browse files

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

Unified · Split

codec/encoder/core/src/slice_multi_threading.cpp+3−2
@@ -374,7 +374,8 @@ int32_t RequestMtResource (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPara · 373 unmodified lines
374374 pSmt->pSliceComplexRatio[iIdx] = NULL;
375375 }
376376
377− if ( pMso->uiSliceMode == SM_FIXEDSLCNUM_SLICE || pMso->uiSliceMode == SM_RASTER_SLICE || pMso->uiSliceMode == SM_ROWMB_SLICE) {
377+ if ( pMso->uiSliceMode == SM_FIXEDSLCNUM_SLICE || pMso->uiSliceMode == SM_RASTER_SLICE
378+ || pMso->uiSliceMode == SM_ROWMB_SLICE || pMso->uiSliceMode == SM_AUTO_SLICE) {
378379 bWillUseTaskManage = true;
379380 }
380381 ++ iIdx;
@@ -441,7 +442,6 @@ int32_t RequestMtResource (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pCodingPara · 60 unmodified lines
441442 MT_TRACE_LOG (*ppCtx, WELS_LOG_INFO, "[MT] Open pSliceCodedMasterEvent named(%s) ret%d err%d", name, err, errno);
442443 //previous conflict ends
443444
444−
445445 iReturn = SetMultiSliceBuffer (ppCtx, pMa, pSmt, iMaxSliceNum,
446446 iMaxSliceBufferSize,
447447 iCountBsLen,
@@ -884,6 +884,7 @@ WELS_THREAD_ROUTINE_TYPE CodingSliceThreadProc (void* arg) { · 436 unmodified lines
884884 }
885885 }
886886
887+
887888 WelsLoadNalForSlice (pSliceBs, eNalType, eNalRefIdc);
888889
889890 iReturn = WelsCodeOneSlice (pEncPEncCtx, iSliceIdx, eNalType);

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