History

SliceBufferReallocate:RBC#1797:New slice buffer reallocate design and update UT cases

Huade Shi (huashi) committed 9 years ago

Commit f77d1901 parent d1e25d74 files · +33 −35Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+0−16
@@ -3716,14 +3716,6 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3715 unmodified lines
37163716 pLayerBsInfo->eFrameType = eFrameType;
37173717 pLayerBsInfo->iSubSeqId = GetSubSequenceId (pCtx, eFrameType);
37183718
3719− int32_t iRet = InitAllSlicesInThread(pCtx);
3720− if (iRet) {
3721− WelsLog (pLogCtx, WELS_LOG_ERROR,
3722− "WelsEncoderEncodeExt(), multi-slice (mode %d) InitAllSlicesInThread() error!",
3723− pParam->sSliceArgument.uiSliceMode);
3724− return ENC_RETURN_UNEXPECTED;
3725− }
3726−
37273719 pCtx->pTaskManage->ExecuteTasks();
37283720 if (pCtx->iEncoderError) {
37293721 WelsLog (pLogCtx, WELS_LOG_ERROR,
@@ -3732,14 +3724,6 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 2 unmodified lines
37323724 return pCtx->iEncoderError;
37333725 }
37343726
3735− iRet = SliceLayerInfoUpdate (pCtx, pFbi, pLayerBsInfo, pParam->sSliceArgument.uiSliceMode);
3736− if (iRet) {
3737− WelsLog (pLogCtx, WELS_LOG_ERROR,
3738− "WelsEncoderEncodeExt(), multi-slice (mode %d) SliceLayerInfoUpdate() error!",
3739− pParam->sSliceArgument.uiSliceMode);
3740− return ENC_RETURN_UNEXPECTED;
3741− }
3742−
37433727 iLayerSize = AppendSliceToFrameBs (pCtx, pLayerBsInfo, iSliceCount);
37443728 }
37453729 // THREAD_FULLY_FIRE_MODE && SM_SIZELIMITED_SLICE

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