History

Multi-thread-fixed:RBC#1723:change slice idx type from unint32_t to int32_t

huade committed 9 years ago

Commit 7e113c11 parent 71750df7 files · +37 −105Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+5−5
@@ -3682,7 +3682,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3681 unmodified lines
36823682 }
36833683
36843684 WelsLoadNal (pCtx->pOut, eNalType, eNalRefIdc);
3685− assert (0 == (int) pCurSlice->uiSliceIdx);
3685+ assert (0 == (int) pCurSlice->iSliceIdx);
36863686 pCtx->iEncoderError = SetSliceBoundaryInfo(pCtx->pCurDqLayer, pCurSlice, 0);
36873687 WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS)
36883688
@@ -3809,7 +3809,6 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 120 unmodified lines
38093809 iLayerSize = AppendSliceToFrameBs (pCtx, pLayerBsInfo, kiPartitionCnt);
38103810 } else { // for non-dynamic-slicing mode single threading branch..
38113811 const bool bNeedPrefix = pCtx->bNeedPrefixNalFlag;
3812−
38133812 int32_t iSliceIdx = 0;
38143813 uint32_t uiTheadIdx = 0;
38153814 SSlice* pCurSlice = NULL;
@@ -3830,7 +3829,7 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 14 unmodified lines
38303829 WelsLoadNal (pCtx->pOut, eNalType, eNalRefIdc);
38313830
38323831 pCurSlice = &pCtx->pCurDqLayer->sSliceThreadInfo.pSliceInThread[uiTheadIdx][iSliceIdx];
3833− assert (iSliceIdx == (int) pCurSlice->uiSliceIdx);
3832+ assert (iSliceIdx == pCurSlice->iSliceIdx);
38343833 pCtx->iEncoderError = SetSliceBoundaryInfo(pCtx->pCurDqLayer, pCurSlice, iSliceIdx);
38353834 WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS)
38363835
@@ -4574,7 +4573,7 @@ int32_t WelsCodeOnePicPartition (sWelsEncCtx* pCtx, · 737 unmodified lines
45744573 WelsLoadNal (pCtx->pOut, keNalType, keNalRefIdc);
45754574
45764575 pCurSlice = &pCtx->pCurDqLayer->sSliceThreadInfo.pSliceInThread[uiTheadIdx][iSliceIdx];
4577− assert (iSliceIdx == (int) pCurSlice->uiSliceIdx);
4576+ assert (iSliceIdx == pCurSlice->iSliceIdx);
45784577
45794578 iReturn = WelsCodeOneSlice (pCtx, pCurSlice, keNalType);
45804579 WELS_VERIFY_RETURN_IFNEQ (iReturn, ENC_RETURN_SUCCESS)
@@ -4601,7 +4600,8 @@ int32_t WelsCodeOnePicPartition (sWelsEncCtx* pCtx, · 20 unmodified lines
46014600 #endif//SLICE_INFO_OUTPUT
46024601
46034602 ++ iNalIdxInLayer;
4604− iSliceIdx += kiSliceStep; //if uiSliceIdx is not continuous
4603+
4604+ iSliceIdx += kiSliceStep; //if iSliceIdx is not continuous
46054605 iAnyMbLeftInPartition = iEndMbIdxInPartition - pCurLayer->pLastCodedMbIdxOfPartition[kiPartitionId];
46064606 }
46074607

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