History

turn off aq and don't use default max/min qp in RC_QUALITY_MODE

Karina committed 10 years ago

Commit 69a6c271 parent 5b5134e3 files · +23 −22Browse files

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

Unified · Split

codec/encoder/core/src/encoder_ext.cpp+5−4
@@ -285,6 +285,10 @@ int32_t ParamValidation (SLogContext* pLogCtx, SWelsSvcCodingParam* pCfg) { · 284 unmodified lines
285285 }
286286
287287 }
288+
289+ //turn off adaptive quant now, algorithms needs to be refactored
290+ pCfg->bEnableAdaptiveQuant = false;
291+
288292 if (pCfg->iSpatialLayerNum > 1) {
289293 for (i = pCfg->iSpatialLayerNum - 1; i > 0; i--) {
290294 SSpatialLayerConfig* fDlpUp = &pCfg->sSpatialLayers[i];
@@ -358,10 +362,7 @@ int32_t ParamValidation (SLogContext* pLogCtx, SWelsSvcCodingParam* pCfg) { · 67 unmodified lines
358362 "bEnableFrameSkip = %d,bitrate can't be controlled for RC_QUALITY_MODE,RC_BITRATE_MODE and RC_TIMESTAMP_MODE without enabling skip frame.",
359363 pCfg->bEnableFrameSkip);
360364
361− if (pCfg->iRCMode == RC_QUALITY_MODE) {
362− pCfg->iMinQp = GOM_MIN_QP_MODE;
363− pCfg->iMaxQp = GOM_MAX_QP_MODE;
364− } else if (pCfg->iUsageType == SCREEN_CONTENT_REAL_TIME) {
365+ if (pCfg->iUsageType == SCREEN_CONTENT_REAL_TIME) {
365366 pCfg->iMinQp = MIN_SCREEN_QP;
366367 pCfg->iMaxQp = MAX_SCREEN_QP;
367368 } else {

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