History

Multi-thread-fixed:RBC#1715:refactoring for slice boundary info init/update module

huade committed 9 years ago

Commit e448da81 parent 74b9a3f8 files · +87 −71Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+7−0
@@ -3682,6 +3682,9 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3681 unmodified lines
3682 3682
3683 WelsLoadNal (pCtx->pOut, eNalType, eNalRefIdc);3683 WelsLoadNal (pCtx->pOut, eNalType, eNalRefIdc);
3684 assert (0 == (int) pCurSlice->uiSliceIdx);3684 assert (0 == (int) pCurSlice->uiSliceIdx);
3685 pCtx->iEncoderError = SetSliceBoundaryInfo(pCtx->pCurDqLayer, pCurSlice, 0);
3686 WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS)
3687
3685 pCtx->iEncoderError = WelsCodeOneSlice (pCtx, pCurSlice, eNalType);3688 pCtx->iEncoderError = WelsCodeOneSlice (pCtx, pCurSlice, eNalType);
3686 WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS)3689 WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS)
3687 3690
@@ -3823,6 +3826,10 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 135 unmodified lines
3823 WelsLoadNal (pCtx->pOut, eNalType, eNalRefIdc);3826 WelsLoadNal (pCtx->pOut, eNalType, eNalRefIdc);
3824 pCurSlice = pCtx->pCurDqLayer->ppSliceInLayer[iSliceIdx];3827 pCurSlice = pCtx->pCurDqLayer->ppSliceInLayer[iSliceIdx];
3825 assert (iSliceIdx == (int) pCurSlice->uiSliceIdx);3828 assert (iSliceIdx == (int) pCurSlice->uiSliceIdx);
3829
3830 pCtx->iEncoderError = SetSliceBoundaryInfo(pCtx->pCurDqLayer, pCurSlice, iSliceIdx);
3831 WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS)
3832
3826 pCtx->iEncoderError = WelsCodeOneSlice (pCtx, pCurSlice, eNalType);3833 pCtx->iEncoderError = WelsCodeOneSlice (pCtx, pCurSlice, eNalType);
3827 WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS)3834 WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS)
3828 3835

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