Add bidir_refine to lavc's set of options, and document it.

Patch by Corey Hickey < bugfood DASH ml AHHH fatooh POIS org >


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17257 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
gpoirier 2005-12-28 08:45:18 +00:00
parent 08acfb3538
commit b44bf0d4d9
2 changed files with 17 additions and 0 deletions

View File

@ -6811,6 +6811,20 @@ Speed should increase by a factor of 4 every time brd_scale is increased
by 1. by 1.
. .
.TP .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> .B vpass=<1\-3>
Activates internal two (or more) pass mode, only specify if you wish to Activates internal two (or more) pass mode, only specify if you wish to
use two (or more) pass encoding. use two (or more) pass encoding.

View File

@ -157,6 +157,7 @@ static int lavc_param_dc_precision = 8;
static int lavc_param_threads= 1; static int lavc_param_threads= 1;
static int lavc_param_turbo = 0; static int lavc_param_turbo = 0;
static int lavc_param_brd_scale = 0; static int lavc_param_brd_scale = 0;
static int lavc_param_bidir_refine = 0;
char *lavc_param_acodec = "mp2"; char *lavc_param_acodec = "mp2";
@ -312,6 +313,7 @@ m_option_t lavcopts_conf[]={
{"threads", &lavc_param_threads, CONF_TYPE_INT, CONF_RANGE, 1, 8, NULL}, {"threads", &lavc_param_threads, CONF_TYPE_INT, CONF_RANGE, 1, 8, NULL},
{"turbo", &lavc_param_turbo, CONF_TYPE_FLAG, 0, 0, 1, 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}, {"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} {NULL, NULL, 0, 0, 0, 0, NULL}
}; };
#endif #endif
@ -625,6 +627,7 @@ static int config(struct vf_instance_s* vf,
#endif #endif
lavc_venc_context->prediction_method= lavc_param_prediction_method; lavc_venc_context->prediction_method= lavc_param_prediction_method;
lavc_venc_context->brd_scale = lavc_param_brd_scale; lavc_venc_context->brd_scale = lavc_param_brd_scale;
lavc_venc_context->bidir_refine = lavc_param_bidir_refine;
switch(lavc_param_format) switch(lavc_param_format)
{ {
case IMGFMT_YV12: case IMGFMT_YV12: