Mercurial > mplayer.hg
changeset 9508:40572852a933
motion estimation range limit
author | michael |
---|---|
date | Thu, 27 Feb 2003 23:10:06 +0000 |
parents | b6fe3b8b6b10 |
children | 03aa466ba33f |
files | libmpcodecs/ve_lavc.c |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c Thu Feb 27 14:02:38 2003 +0000 +++ b/libmpcodecs/ve_lavc.c Thu Feb 27 23:10:06 2003 +0000 @@ -40,7 +40,7 @@ #error we dont support libavcodec prior to build 4641, get the latest libavcodec CVS #endif -#if LIBAVCODEC_BUILD < 4645 +#if LIBAVCODEC_BUILD < 4659 #warning your version of libavcodec is old, u might want to get a newer one #endif @@ -117,6 +117,7 @@ static int lavc_param_last_pred= 0; static int lavc_param_pre_me= 1; static int lavc_param_me_subpel_quality= 8; +static int lavc_param_me_range= 0; #include "cfgparser.h" @@ -193,6 +194,7 @@ {"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}, {"subq", &lavc_param_me_subpel_quality, CONF_TYPE_INT, CONF_RANGE, 0, 8, NULL}, + {"me_range", &lavc_param_me_range, CONF_TYPE_INT, CONF_RANGE, 0, 16000, NULL}, {NULL, NULL, 0, 0, 0, 0, NULL} }; #endif @@ -279,7 +281,10 @@ #if LIBAVCODEC_BUILD >= 4652 lavc_venc_context->me_subpel_quality= lavc_param_me_subpel_quality; #endif - +#if LIBAVCODEC_BUILD >= 4659 + lavc_venc_context->me_range= lavc_param_me_range; +#endif + p= lavc_param_rc_override_string; for(i=0; p; i++){ int start, end, q;