summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-10-02 00:28:29 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-10-02 00:28:29 +0000
commit9c26e62ff303ca04040e11571ea583374251b199 (patch)
tree7cefca1f508d81c0c7855c32c25b3bd0525d704a
parent944e84cee365973f959a08a289dd09b096c4c79a (diff)
downloadmpv-9c26e62ff303ca04040e11571ea583374251b199.tar.bz2
mpv-9c26e62ff303ca04040e11571ea583374251b199.tar.xz
mv0
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10975 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--DOCS/en/mplayer.14
-rw-r--r--libmpcodecs/ve_lavc.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/DOCS/en/mplayer.1 b/DOCS/en/mplayer.1
index a982af2404..a6840b2445 100644
--- a/DOCS/en/mplayer.1
+++ b/DOCS/en/mplayer.1
@@ -4107,6 +4107,10 @@ Rate distorted optimal coded block pattern
will select the coded block pattern which minimizes distortion + lambda*rate
this can only be used together with trellis quantization
.TP
+.B mv0\ \ \ \
+try to encode each MB with MV=<0,0> and choose the better one
+this has no effect if mbd=0
+.TP
.B last_pred=<0\-99>
Amount of motion predictors from the previous frame
.PD 0
diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c
index 1db7318f5b..43c24de67d 100644
--- a/libmpcodecs/ve_lavc.c
+++ b/libmpcodecs/ve_lavc.c
@@ -130,6 +130,7 @@ static int lavc_param_context= 0;
static char *lavc_param_intra_matrix = NULL;
static char *lavc_param_inter_matrix = NULL;
static int lavc_param_cbp= 0;
+static int lavc_param_mv0= 0;
#include "m_option.h"
@@ -228,6 +229,9 @@ m_option_t lavcopts_conf[]={
#if LIBAVCODEC_BUILD >= 4681
{"cbp", &lavc_param_cbp, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_CBP_RD, NULL},
#endif
+#if LIBAVCODEC_BUILD >= 4683
+ {"mv0", &lavc_param_mv0, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_MV0, NULL},
+#endif
{NULL, NULL, 0, 0, 0, 0, NULL}
};
#endif
@@ -471,6 +475,7 @@ static int config(struct vf_instance_s* vf,
lavc_venc_context->flags|= lavc_param_v4mv ? CODEC_FLAG_4MV : 0;
lavc_venc_context->flags|= lavc_param_data_partitioning;
lavc_venc_context->flags|= lavc_param_cbp;
+ lavc_venc_context->flags|= lavc_param_mv0;
if(lavc_param_gray) lavc_venc_context->flags|= CODEC_FLAG_GRAY;
if(lavc_param_normalize_aqp) lavc_venc_context->flags|= CODEC_FLAG_NORMALIZE_AQP;