changeset 9819:9aa9715af708

Shift vhq values and set vhq=1 to MODEDECISION. Higher values seems to loose PSNR atm.
author rguyom
date Fri, 04 Apr 2003 05:47:27 +0000
parents 556e272022a4
children e35a8d2e8d89
files libmpcodecs/ve_xvid.c
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_xvid.c	Thu Apr 03 20:38:27 2003 +0000
+++ b/libmpcodecs/ve_xvid.c	Fri Apr 04 05:47:27 2003 +0000
@@ -143,7 +143,7 @@
     { "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 @@
 	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