summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorrguyom <rguyom@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-04 05:47:27 +0000
committerrguyom <rguyom@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-04 05:47:27 +0000
commit3e97df76134d0defd684eaf26f09c92f38261999 (patch)
tree9daa1e77d5de97ead99a2cb628eb3a60067e99c4 /libmpcodecs
parentd1c0c935d6b709bb4172b6d6c99863f09e9fc086 (diff)
downloadmpv-3e97df76134d0defd684eaf26f09c92f38261999.tar.bz2
mpv-3e97df76134d0defd684eaf26f09c92f38261999.tar.xz
Shift vhq values and set vhq=1 to MODEDECISION.
Higher values seems to loose PSNR atm. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9820 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ve_xvid.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libmpcodecs/ve_xvid.c b/libmpcodecs/ve_xvid.c
index 06d1d378ae..08b39739fd 100644
--- a/libmpcodecs/ve_xvid.c
+++ b/libmpcodecs/ve_xvid.c
@@ -143,7 +143,7 @@ struct config xvidencopts_conf[] = {
{ "gmc", &xvidenc_gmc, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{ "chroma_me", &xvidenc_chroma_me, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{ "hq_ac", &xvidenc_hqac, CONF_TYPE_FLAG, 0, 0, 1, NULL},
- { "vhq", &xvidenc_vhq, CONF_TYPE_INT, CONF_RANGE, 0, 3, NULL},
+ { "vhq", &xvidenc_vhq, CONF_TYPE_INT, CONF_RANGE, 0, 4, NULL},
{ "chroma_opt", &xvidenc_chroma_opt, CONF_TYPE_FLAG, 0, 0, 1, NULL},
#endif
{ NULL, NULL, 0, 0, 0, 0, NULL}
@@ -279,12 +279,13 @@ config(struct vf_instance_s* vf,
fp->enc_frame.motion |= PMV_QUARTERPELREFINE16 | PMV_QUARTERPELREFINE8;
}
switch (xvidenc_vhq) {
- case 3: // wide search
+ case 4: // wide search
fp->enc_frame.motion |= EXTSEARCH_BITS | PMV_EXTSEARCH8;
- case 2: // medium search
+ case 3: // medium search
fp->enc_frame.motion |= HALFPELREFINE8_BITS | QUARTERPELREFINE8_BITS | CHECKPREDICTION_BITS;
- case 1: // limited search
+ case 2: // limited search
fp->enc_frame.motion |= HALFPELREFINE16_BITS | QUARTERPELREFINE16_BITS;
+ case 1: // mode decision
fp->enc_frame.general |= XVID_MODEDECISION_BITS;
break;
case 0: // off