History

enlarge QP range when skipframeflag off on BitRate mode

lyao2 committed 12 years ago

Commit 522aa441 parent 679cc4a12 files · +8462 −8473Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+2−4
@@ -148,8 +148,7 @@ int32_t ParamValidation (SLogContext* pLogCtx, SWelsSvcCodingParam* pCfg) { · 147 unmodified lines
148148
149149
150150 if ((pCfg->iRCMode != RC_OFF_MODE) && (pCfg->iRCMode != RC_QUALITY_MODE) && (pCfg->iRCMode != RC_BUFFERBASED_MODE)
151− && (pCfg->iRCMode != RC_BITRATE_MODE)
152− && (pCfg->iRCMode != RC_LOW_BW_MODE)) {
151+ && (pCfg->iRCMode != RC_BITRATE_MODE)) {
153152 WelsLog (pLogCtx, WELS_LOG_ERROR, "ParamValidation(),Invalid iRCMode = %d", pCfg->iRCMode);
154153 return ENC_RETURN_UNSUPPORTED_PARA;
155154 }
@@ -2955,8 +2954,7 @@ bool CheckFrameSkipBasedMaxbr (sWelsEncCtx* pCtx, int32_t iSpatialNum) { · 2799 unmodified lines
29552954 SSpatialPicIndex* pSpatialIndexMap = &pCtx->sSpatialIndexMap[0];
29562955 bool bSkipMustFlag = false;
29572956 if (pCtx->pSvcParam->bEnableFrameSkip) {
2958− if ((RC_QUALITY_MODE == pCtx->pSvcParam->iRCMode) || (RC_BITRATE_MODE == pCtx->pSvcParam->iRCMode)
2959− || (RC_LOW_BW_MODE == pCtx->pSvcParam->iRCMode)) {
2957+ if ((RC_QUALITY_MODE == pCtx->pSvcParam->iRCMode) || (RC_BITRATE_MODE == pCtx->pSvcParam->iRCMode)) {
29602958 for (int32_t i = 0; i < iSpatialNum; i++) {
29612959 if (0 == pCtx->pSvcParam->sSpatialLayers[i].iMaxSpatialBitrate) {
29622960 break;

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