ref: 0fa845ed2739d2e8f84eb607aa01fb3ae1c199c8
parent: ef0c3e2b910890aaa5a3749acd72f921569db138
parent: 10804f316e26aa3abd666820761322b6eacefdba
author: ruil2 <[email protected]>
date: Fri Jul 4 12:35:02 EDT 2014
Merge pull request #1081 from sijchen/scc_param_valid avoid using AQ which is untuned for screen route
--- a/codec/encoder/core/src/encoder_ext.cpp
+++ b/codec/encoder/core/src/encoder_ext.cpp
@@ -91,6 +91,11 @@
pCfg->iSpatialLayerNum);
return ENC_RETURN_UNSUPPORTED_PARA;
}
+ if (pCfg->bEnableAdaptiveQuant) {
+ WelsLog (pLogCtx, WELS_LOG_WARNING, "ParamValidation(), AdaptiveQuant(%d) is not supported yet for screen content, auto turned off\n",
+ pCfg->bEnableAdaptiveQuant);
+ pCfg->bEnableAdaptiveQuant = false;
+ }
}
if (pCfg->iSpatialLayerNum > 1) {
int32_t iFinalWidth = pCfg->sSpatialLayers[pCfg->iSpatialLayerNum - 1].iVideoWidth;