changeset 17256:b89745a920d6

Add bidir_refine to lavc's set of options, and document it. Patch by Corey Hickey < bugfood DASH ml AHHH fatooh POIS org >
author gpoirier
date Wed, 28 Dec 2005 08:45:18 +0000
parents 9e4602075cf0
children 1188874fd68b
files DOCS/man/en/mplayer.1 libmpcodecs/ve_lavc.c
diffstat 2 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- 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: