Commit 9dffaeff authored by conrad's avatar conrad

schroenc: Use constant quality for constant quality, not noise threshold

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23026 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c4879d44
...@@ -164,17 +164,16 @@ static int libschroedinger_encode_init(AVCodecContext *avccontext) ...@@ -164,17 +164,16 @@ static int libschroedinger_encode_init(AVCodecContext *avccontext)
"rate_control", "rate_control",
SCHRO_ENCODER_RATE_CONTROL_LOSSLESS); SCHRO_ENCODER_RATE_CONTROL_LOSSLESS);
} else { } else {
int noise_threshold; int quality;
schro_encoder_setting_set_double(p_schro_params->encoder, schro_encoder_setting_set_double(p_schro_params->encoder,
"rate_control", "rate_control",
SCHRO_ENCODER_RATE_CONTROL_CONSTANT_NOISE_THRESHOLD); SCHRO_ENCODER_RATE_CONTROL_CONSTANT_QUALITY);
noise_threshold = avccontext->global_quality / FF_QP2LAMBDA; quality = avccontext->global_quality / FF_QP2LAMBDA;
if (noise_threshold > 100) if (quality > 10)
noise_threshold = 100; quality = 10;
schro_encoder_setting_set_double(p_schro_params->encoder, schro_encoder_setting_set_double(p_schro_params->encoder,
"noise_threshold", "quality", quality);
noise_threshold);
} }
} else { } else {
schro_encoder_setting_set_double(p_schro_params->encoder, schro_encoder_setting_set_double(p_schro_params->encoder,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment