diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-01 02:10:31 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-01 02:10:31 +0000 |
commit | 56d9a23ee9a4623e498f644eddd721a423264ce5 (patch) | |
tree | d3c55eaeb8e2c2bc6d486db7366226acdef1785b | |
parent | 5e63efb850dc6501aae53a1c7418bc1cf3962f41 (diff) |
Add support for libavcodec GMC flag, patch by Dave Baker, dbkr mxtelecom com.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28415 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | DOCS/man/en/mplayer.1 | 4 | ||||
-rw-r--r-- | libmpcodecs/ve_lavc.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/DOCS/man/en/mplayer.1 b/DOCS/man/en/mplayer.1 index deccef7e73..73ae4b1df4 100644 --- a/DOCS/man/en/mplayer.1 +++ b/DOCS/man/en/mplayer.1 @@ -9102,6 +9102,10 @@ Currently it only works if scene change detection is disabled (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). . diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c index 9c94c1d1f9..bbb5d69ed1 100644 --- a/libmpcodecs/ve_lavc.c +++ b/libmpcodecs/ve_lavc.c @@ -113,6 +113,7 @@ static int lavc_param_bit_exact = 0; 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 @@ m_option_t lavcopts_conf[]={ #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 @@ static int config(struct vf_instance_s* vf, 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 |