History

unitfy slice bs writing for multi-thread(sliceindex==0 is the same with others )

huade committed 10 years ago

Commit dcfe76d1 parent 6dc3f723 files · +10 −26Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+1−2
@@ -1792,7 +1792,7 @@ int32_t RequestMemorySvc (sWelsEncCtx** ppCtx, SExistingParasetList* pExistingPa · 1791 unmodified lines
17921792 iCountBsLen = iNonVclLayersBsSizeCount + iVclLayersBsSizeCount;
17931793
17941794 iMaxSliceBufferSize = WELS_MIN (iMaxSliceBufferSize, iTargetSpatialBsSize);
1795− iTotalLength = (pParam->iMultipleThreadIdc == 1) ? iCountBsLen : (iCountBsLen + ((*ppCtx)->iMaxSliceCount - 1) *
1795+ iTotalLength = (pParam->iMultipleThreadIdc == 1) ? iCountBsLen : (iCountBsLen + (*ppCtx)->iMaxSliceCount *
17961796 iMaxSliceBufferSize);
17971797
17981798 pParam->iNumRefFrame = WELS_CLIP3 (pParam->iNumRefFrame, MIN_REF_PIC_COUNT,
@@ -3998,7 +3998,6 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 2199 unmodified lines
39983998 pLayerBsInfo->uiTemporalId = pCtx->uiTemporalId;
39993999 pLayerBsInfo->uiQualityId = 0;
40004000 pLayerBsInfo->iNalCount = 0;
4001− pCtx->pSliceBs[0].pBs = pLayerBsInfo->pBsBuf;
40024001
40034002 pCtx->pTaskManage->ExecuteTasks();
40044003 iLayerSize = AppendSliceToFrameBs (pCtx, pLayerBsInfo, iSliceCount);

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