Mercurial > mplayer.hg
changeset 28380:f521e54d47ee
Add support for libavcodec GMC flag, patch by Dave Baker, dbkr mxtelecom com.
author | diego |
---|---|
date | Sun, 01 Feb 2009 02:10:31 +0000 |
parents | 296f37c6ff02 |
children | 5d5b22f80e55 |
files | DOCS/man/en/mplayer.1 libmpcodecs/ve_lavc.c |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/DOCS/man/en/mplayer.1 Sun Feb 01 02:01:31 2009 +0000 +++ b/DOCS/man/en/mplayer.1 Sun Feb 01 02:10:31 2009 +0000 @@ -9102,6 +9102,10 @@ (sc_threshold=1000000000). . .TP +.B "gmc\ \ \ \ " +Enable Global Motion Compensation. +. +.TP .B (no)lowdelay Sets the low delay flag for MPEG-1/2 (disables B-frames). .
--- a/libmpcodecs/ve_lavc.c Sun Feb 01 02:01:31 2009 +0000 +++ b/libmpcodecs/ve_lavc.c Sun Feb 01 02:10:31 2009 +0000 @@ -113,6 +113,7 @@ static int lavc_param_aic= 0; static int lavc_param_aiv= 0; static int lavc_param_umv= 0; +static int lavc_param_gmc= 0; static int lavc_param_obmc= 0; static int lavc_param_loop= 0; static int lavc_param_last_pred= 0; @@ -283,6 +284,9 @@ #ifdef CODEC_FLAG_CLOSED_GOP {"cgop", &lavc_param_closed_gop, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_CLOSED_GOP, NULL}, #endif +#ifdef CODEC_FLAG_GMC + {"gmc", &lavc_param_gmc, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_GMC, NULL}, +#endif {"dc", &lavc_param_dc_precision, CONF_TYPE_INT, CONF_RANGE, 8, 11, NULL}, {"border_mask", &lavc_param_border_masking, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 1.0, NULL}, {"inter_threshold", &lavc_param_inter_threshold, CONF_TYPE_INT, CONF_RANGE, -1000000, 1000000, NULL}, @@ -555,6 +559,7 @@ lavc_venc_context->flags|= lavc_param_ss; lavc_venc_context->flags|= lavc_param_alt; lavc_venc_context->flags|= lavc_param_ilme; + lavc_venc_context->flags|= lavc_param_gmc; #ifdef CODEC_FLAG_CLOSED_GOP lavc_venc_context->flags|= lavc_param_closed_gop; #endif