# HG changeset patch # User gpoirier # Date 1135759518 0 # Node ID b89745a920d684ea5e95ed262fa9d4652368f690 # Parent 9e4602075cf0ceb052bd64521d2c1588d10df85a Add bidir_refine to lavc's set of options, and document it. Patch by Corey Hickey < bugfood DASH ml AHHH fatooh POIS org > diff -r 9e4602075cf0 -r b89745a920d6 DOCS/man/en/mplayer.1 --- a/DOCS/man/en/mplayer.1 Tue Dec 27 20:03:36 2005 +0000 +++ b/DOCS/man/en/mplayer.1 Wed Dec 28 08:45:18 2005 +0000 @@ -6811,6 +6811,20 @@ by 1. . .TP +.B bidir_refine=<0\-4> +Refine the two motion vectors used in bidirectional macroblocks, +rather than re-using vectors from the forward and backward searches. +This option has no effect without B-frames. +.PD 0 +.RSs +.IPs 0 +Disabled (default). +.IPs 1\-4 +Use a wider search (larger values are slower). +.RE +.PD 1 +. +.TP .B vpass=<1\-3> Activates internal two (or more) pass mode, only specify if you wish to use two (or more) pass encoding. diff -r 9e4602075cf0 -r b89745a920d6 libmpcodecs/ve_lavc.c --- a/libmpcodecs/ve_lavc.c Tue Dec 27 20:03:36 2005 +0000 +++ b/libmpcodecs/ve_lavc.c Wed Dec 28 08:45:18 2005 +0000 @@ -157,6 +157,7 @@ static int lavc_param_threads= 1; static int lavc_param_turbo = 0; static int lavc_param_brd_scale = 0; +static int lavc_param_bidir_refine = 0; char *lavc_param_acodec = "mp2"; @@ -312,6 +313,7 @@ {"threads", &lavc_param_threads, CONF_TYPE_INT, CONF_RANGE, 1, 8, NULL}, {"turbo", &lavc_param_turbo, CONF_TYPE_FLAG, 0, 0, 1, NULL}, {"brd_scale", &lavc_param_brd_scale, CONF_TYPE_INT, CONF_RANGE, 0, 10, NULL}, + {"bidir_refine", &lavc_param_bidir_refine, CONF_TYPE_INT, CONF_RANGE, 0, 4, NULL}, {NULL, NULL, 0, 0, 0, 0, NULL} }; #endif @@ -625,6 +627,7 @@ #endif lavc_venc_context->prediction_method= lavc_param_prediction_method; lavc_venc_context->brd_scale = lavc_param_brd_scale; + lavc_venc_context->bidir_refine = lavc_param_bidir_refine; switch(lavc_param_format) { case IMGFMT_YV12: