diff mencoder.c @ 4207:1427d0f1f2d6

-lavcopts vme= option to set motion estimation method - patch by Rich Felker <dalias@aerifal.cx>
author arpi
date Thu, 17 Jan 2002 01:02:41 +0000
parents 116abdd0aed1
children b0c8eed7473c
line wrap: on
line diff
--- a/mencoder.c	Thu Jan 17 00:55:07 2002 +0000
+++ b/mencoder.c	Thu Jan 17 01:02:41 2002 +0000
@@ -67,6 +67,7 @@
 char *lavc_param_vcodec = NULL;
 int lavc_param_vbitrate = -1;
 int lavc_param_vhq = 0; /* default is realtime encoding */
+int lavc_param_vme = 3;
 int lavc_param_keyint = -1;
 #endif
 
@@ -905,6 +906,11 @@
     else
 	lavc_venc_context.flags = 0;
 
+    /* motion estimation (0 = none ... 3 = high quality but slow) */
+    /* this is just an extern from libavcodec but it should be in the
+       encoder context - FIXME */
+    motion_estimation_method = lavc_param_vme;
+
 #if 0
     /* fixed qscale :p */
     lavc_venc_context.flags |= CODEC_FLAG_QSCALE;