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
36823682
36833683 WelsLoadNal (pCtx->pOut, eNalType, eNalRefIdc);
36843684 assert (0 == (int) pCurSlice->uiSliceIdx);
3685+ pCtx->iEncoderError = SetSliceBoundaryInfo(pCtx->pCurDqLayer, pCurSlice, 0);
3686+ WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS)
3687+
36853688 pCtx->iEncoderError = WelsCodeOneSlice (pCtx, pCurSlice, eNalType);
36863689 WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS)
36873690
@@ -3823,6 +3826,10 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 135 unmodified lines
38233826 WelsLoadNal (pCtx->pOut, eNalType, eNalRefIdc);
38243827 pCurSlice = pCtx->pCurDqLayer->ppSliceInLayer[iSliceIdx];
38253828 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+
38263833 pCtx->iEncoderError = WelsCodeOneSlice (pCtx, pCurSlice, eNalType);
38273834 WELS_VERIFY_RETURN_IFNEQ (pCtx->iEncoderError, ENC_RETURN_SUCCESS)
38283835

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