diff options
author | Corey Hickey <bugfood-ml@fatooh.org> | 2006-06-03 06:26:04 +0000 |
---|---|---|
committer | Corey Hickey <bugfood-ml@fatooh.org> | 2006-06-03 06:26:04 +0000 |
commit | f9243d34f19da816e05ad9e314e52b609e928bb1 (patch) | |
tree | 2dfd9ef977aad109bb8a8b516d1bbe318490230b /libavcodec/utils.c | |
parent | 7e5370516b96b92f2c37b943695b8933e92f40c7 (diff) | |
download | ffmpeg-f9243d34f19da816e05ad9e314e52b609e928bb1.tar.gz |
Make B-frame reduction sensitivity by b_strategy/vb_strategy = 1
user-tunable.
Originally committed as revision 5450 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 84860e270b..ce66439117 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -741,6 +741,7 @@ static AVOption options[]={ {"sc_factor", NULL, OFFSET(scenechange_factor), FF_OPT_TYPE_INT, 6, 0, INT_MAX, V|E}, {"mv0_threshold", NULL, OFFSET(mv0_threshold), FF_OPT_TYPE_INT, 256, 0, INT_MAX, V|E}, {"ivlc", "intra vlc table", 0, FF_OPT_TYPE_CONST, CODEC_FLAG2_INTRA_VLC, INT_MIN, INT_MAX, V|E, "flags2"}, +{"b_sensitivity", NULL, OFFSET(b_sensitivity), FF_OPT_TYPE_INT, 40, 1, INT_MAX, V|E}, {NULL}, }; @@ -796,6 +797,7 @@ void avcodec_get_context_defaults(AVCodecContext *s){ s->nsse_weight= 8; s->sample_fmt= SAMPLE_FMT_S16; // FIXME: set to NONE s->mv0_threshold= 256; + s->b_sensitivity= 40; s->intra_quant_bias= FF_DEFAULT_QUANT_BIAS; s->inter_quant_bias= FF_DEFAULT_QUANT_BIAS; |