From 715a1d542addcac462840e4d2262a19fe17a3e0c Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 2 Jan 2003 01:33:14 +0000 Subject: [PATCH] motion estimation pre pass git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8710 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/ve_lavc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c index a8ed69700b..aa8f508a95 100644 --- a/libmpcodecs/ve_lavc.c +++ b/libmpcodecs/ve_lavc.c @@ -114,6 +114,7 @@ static int lavc_param_dia_size= 0; static int lavc_param_qpel= 0; static int lavc_param_trell= 0; static int lavc_param_last_pred= 0; +static int lavc_param_pre_me= 1; #include "cfgparser.h" @@ -186,6 +187,7 @@ struct config lavcopts_conf[]={ {"trell", &lavc_param_trell, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_TRELLIS_QUANT, NULL}, #endif {"last_pred", &lavc_param_last_pred, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL}, + {"preme", &lavc_param_pre_me, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL}, {NULL, NULL, 0, 0, 0, 0, NULL} }; #endif @@ -262,6 +264,9 @@ static int config(struct vf_instance_s* vf, #if LIBAVCODEC_BUILD >= 4649 lavc_venc_context->last_predictor_count= lavc_param_last_pred; #endif +#if LIBAVCODEC_BUILD >= 4650 + lavc_venc_context->pre_me= lavc_param_pre_me; +#endif p= lavc_param_rc_override_string; for(i=0; p; i++){