History

re-allocate resource when threadIDC changes

ruil2 committed 12 years ago

Commit af417b51 parent 0b858551 file · +6 −3Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+6−3
@@ -147,7 +147,8 @@ int32_t ParamValidation (SLogContext* pLogCtx, SWelsSvcCodingParam* pCfg) { · 146 unmodified lines
147147 }
148148
149149
150− if ((pCfg->iRCMode != RC_OFF_MODE) && (pCfg->iRCMode != RC_QUALITY_MODE) && (pCfg->iRCMode!= RC_BUFFERBASED_MODE)&&(pCfg->iRCMode != RC_BITRATE_MODE)
150+ if ((pCfg->iRCMode != RC_OFF_MODE) && (pCfg->iRCMode != RC_QUALITY_MODE) && (pCfg->iRCMode != RC_BUFFERBASED_MODE)
151+ && (pCfg->iRCMode != RC_BITRATE_MODE)
151152 && (pCfg->iRCMode != RC_LOW_BW_MODE)) {
152153 WelsLog (pLogCtx, WELS_LOG_ERROR, "ParamValidation(),Invalid iRCMode = %d\n", pCfg->iRCMode);
153154 return ENC_RETURN_UNSUPPORTED_PARA;
@@ -3594,7 +3595,8 @@ int32_t WelsEncoderEncodeExt (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi, const SSour · 3440 unmodified lines
35943595 }
35953596
35963597 #ifdef ENABLE_FRAME_DUMP
3597− DumpRecFrame (fsnr, &pSvcParam->sDependencyLayers[pSvcParam->iSpatialLayerNum-1].sRecFileName[0], pCtx->bRecFlag); // pDecPic: final reconstruction output
3598+ DumpRecFrame (fsnr, &pSvcParam->sDependencyLayers[pSvcParam->iSpatialLayerNum - 1].sRecFileName[0],
3599+ pCtx->bRecFlag); // pDecPic: final reconstruction output
35983600 pCtx->bRecFlag = true;
35993601
36003602 #endif//ENABLE_FRAME_DUMP
@@ -3636,7 +3638,8 @@ int32_t WelsEncoderParamAdjust (sWelsEncCtx** ppCtx, SWelsSvcCodingParam* pNewPa · 35 unmodified lines
36363638 (pOldParam->SUsedPicRect.iWidth != pNewParam->SUsedPicRect.iWidth
36373639 || pOldParam->SUsedPicRect.iHeight != pNewParam->SUsedPicRect.iHeight) ||
36383640 (pOldParam->bEnableLongTermReference != pNewParam->bEnableLongTermReference) ||
3639− (pOldParam->iLTRRefNum != pNewParam->iLTRRefNum);
3641+ (pOldParam->iLTRRefNum != pNewParam->iLTRRefNum) ||
3642+ (pOldParam->iMultipleThreadIdc != pNewParam->iMultipleThreadIdc);
36403643 if (pNewParam->iMaxNumRefFrame > pOldParam->iMaxNumRefFrame) {
36413644 bNeedReset = true;
36423645 }

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