History

Multi-thread-fixed:RBC#1713:pSlice instead of kiSliceIdx as input parameter in WelsCodeOneSlice

huade committed 9 years ago

Commit 40566f21 parent 6f347d16 files · +28 −19Browse files

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

Unified · Split

codec/encoder/core/src/svc_encode_slice.cpp+2−5
@@ -1279,6 +1279,7 @@ int32_t ReallocateSliceInThread (sWelsEncCtx* pCtx, · 1278 unmodified lines
12791279 }
12801280 */
12811281
1282+
12821283 int32_t ReallocSliceBuffer (sWelsEncCtx* pCtx) {
12831284
12841285 CMemoryAlign* pMA = pCtx->pMemAlign;
@@ -1461,16 +1462,12 @@ int32_t SliceLayerInfoUpdate (sWelsEncCtx* pCtx, const int32_t kiDlayerIndex) { · 176 unmodified lines
14611462 }
14621463 */
14631464
1464−int32_t WelsCodeOneSlice (sWelsEncCtx* pEncCtx, const int32_t kiSliceIdx, const int32_t kiNalType) {
1465+int32_t WelsCodeOneSlice (sWelsEncCtx* pEncCtx, SSlice* pCurSlice, const int32_t kiNalType) {
14651466 SDqLayer* pCurLayer = pEncCtx->pCurDqLayer;
14661467 SNalUnitHeaderExt* pNalHeadExt = &pCurLayer->sLayerInfo.sNalHeaderExt;
1467− SSlice* pCurSlice = pCurLayer->ppSliceInLayer[kiSliceIdx];
14681468 SBitStringAux* pBs = pCurSlice->pSliceBsa;
14691469 const int32_t kiDynamicSliceFlag = (pEncCtx->pSvcParam->sSpatialLayers[pEncCtx->uiDependencyId].sSliceArgument.uiSliceMode
14701470 == SM_SIZELIMITED_SLICE);
1471−
1472− assert (kiSliceIdx == (int) pCurSlice->uiSliceIdx);
1473−
14741471 if (I_SLICE == pEncCtx->eSliceType) {
14751472 pNalHeadExt->bIdrFlag = 1;
14761473 pCurSlice->sScaleShift = 0;

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