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
148 148
149 149
150 if ((pCfg->iRCMode != RC_OFF_MODE) && (pCfg->iRCMode != RC_QUALITY_MODE) && (pCfg->iRCMode != RC_BUFFERBASED_MODE)150 if ((pCfg->iRCMode != RC_OFF_MODE) && (pCfg->iRCMode != RC_QUALITY_MODE) && (pCfg->iRCMode != RC_BUFFERBASED_MODE)
151 && (pCfg->iRCMode != RC_BITRATE_MODE)151 && (pCfg->iRCMode != RC_BITRATE_MODE)) {
152 && (pCfg->iRCMode != RC_LOW_BW_MODE)) {
153 WelsLog (pLogCtx, WELS_LOG_ERROR, "ParamValidation(),Invalid iRCMode = %d", pCfg->iRCMode);152 WelsLog (pLogCtx, WELS_LOG_ERROR, "ParamValidation(),Invalid iRCMode = %d", pCfg->iRCMode);
154 return ENC_RETURN_UNSUPPORTED_PARA;153 return ENC_RETURN_UNSUPPORTED_PARA;
155 }154 }
@@ -2955,8 +2954,7 @@ bool CheckFrameSkipBasedMaxbr (sWelsEncCtx* pCtx, int32_t iSpatialNum) { · 2799 unmodified lines
2955 SSpatialPicIndex* pSpatialIndexMap = &pCtx->sSpatialIndexMap[0];2954 SSpatialPicIndex* pSpatialIndexMap = &pCtx->sSpatialIndexMap[0];
2956 bool bSkipMustFlag = false;2955 bool bSkipMustFlag = false;
2957 if (pCtx->pSvcParam->bEnableFrameSkip) {2956 if (pCtx->pSvcParam->bEnableFrameSkip) {
2958 if ((RC_QUALITY_MODE == pCtx->pSvcParam->iRCMode) || (RC_BITRATE_MODE == pCtx->pSvcParam->iRCMode)2957 if ((RC_QUALITY_MODE == pCtx->pSvcParam->iRCMode) || (RC_BITRATE_MODE == pCtx->pSvcParam->iRCMode)) {
2959 || (RC_LOW_BW_MODE == pCtx->pSvcParam->iRCMode)) {
2960 for (int32_t i = 0; i < iSpatialNum; i++) {2958 for (int32_t i = 0; i < iSpatialNum; i++) {
2961 if (0 == pCtx->pSvcParam->sSpatialLayers[i].iMaxSpatialBitrate) {2959 if (0 == pCtx->pSvcParam->sSpatialLayers[i].iMaxSpatialBitrate) {
2962 break;2960 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