aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/libschroedingerenc.c
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2010-05-05 21:02:41 +0000
committerDavid Conrad <lessen42@gmail.com>2010-05-05 21:02:41 +0000
commite0a24555b43b7e69dcf6ec7c2b3540a0f85f0b12 (patch)
treec00a1deb629800359148957d29cbf249e0ff4d95 /libavcodec/libschroedingerenc.c
parent614748ceeb88004b1ea79cf47e4a447abca46e48 (diff)
downloadffmpeg-e0a24555b43b7e69dcf6ec7c2b3540a0f85f0b12.tar.gz
schroenc: Use constant quality for constant quality, not noise threshold
Originally committed as revision 23026 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/libschroedingerenc.c')
-rw-r--r--libavcodec/libschroedingerenc.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/libavcodec/libschroedingerenc.c b/libavcodec/libschroedingerenc.c
index 26318193da..2345e09667 100644
--- a/libavcodec/libschroedingerenc.c
+++ b/libavcodec/libschroedingerenc.c
@@ -164,17 +164,16 @@ static int libschroedinger_encode_init(AVCodecContext *avccontext)
"rate_control",
SCHRO_ENCODER_RATE_CONTROL_LOSSLESS);
} else {
- int noise_threshold;
+ int quality;
schro_encoder_setting_set_double(p_schro_params->encoder,
"rate_control",
- SCHRO_ENCODER_RATE_CONTROL_CONSTANT_NOISE_THRESHOLD);
+ SCHRO_ENCODER_RATE_CONTROL_CONSTANT_QUALITY);
- noise_threshold = avccontext->global_quality / FF_QP2LAMBDA;
- if (noise_threshold > 100)
- noise_threshold = 100;
+ quality = avccontext->global_quality / FF_QP2LAMBDA;
+ if (quality > 10)
+ quality = 10;
schro_encoder_setting_set_double(p_schro_params->encoder,
- "noise_threshold",
- noise_threshold);
+ "quality", quality);
}
} else {
schro_encoder_setting_set_double(p_schro_params->encoder,