[Mplayer-cvslog] CVS: main/libmpcodecs ve_lavc.c,1.54,1.55

Michael Niedermayer CVS michael at mplayerhq.hu
Fri Feb 28 00:10:25 CET 2003


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv22728

Modified Files:
	ve_lavc.c 
Log Message:
motion estimation range limit


Index: ve_lavc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_lavc.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- ve_lavc.c	19 Jan 2003 01:48:52 -0000	1.54
+++ ve_lavc.c	27 Feb 2003 23:10:06 -0000	1.55
@@ -40,7 +40,7 @@
 #error we dont support libavcodec prior to build 4641, get the latest libavcodec CVS
 #endif
 
-#if LIBAVCODEC_BUILD < 4645
+#if LIBAVCODEC_BUILD < 4659
 #warning your version of libavcodec is old, u might want to get a newer one
 #endif
 
@@ -117,6 +117,7 @@
 static int lavc_param_last_pred= 0;
 static int lavc_param_pre_me= 1;
 static int lavc_param_me_subpel_quality= 8;
+static int lavc_param_me_range= 0;
 
 #include "cfgparser.h"
 
@@ -193,6 +194,7 @@
 	{"last_pred", &lavc_param_last_pred, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL},
 	{"preme", &lavc_param_pre_me, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL},
 	{"subq", &lavc_param_me_subpel_quality, CONF_TYPE_INT, CONF_RANGE, 0, 8, NULL},
+	{"me_range", &lavc_param_me_range, CONF_TYPE_INT, CONF_RANGE, 0, 16000, NULL},
 	{NULL, NULL, 0, 0, 0, 0, NULL}
 };
 #endif
@@ -279,7 +281,10 @@
 #if LIBAVCODEC_BUILD >= 4652
     lavc_venc_context->me_subpel_quality= lavc_param_me_subpel_quality;
 #endif
-    
+#if LIBAVCODEC_BUILD >= 4659
+    lavc_venc_context->me_range= lavc_param_me_range;
+#endif
+
     p= lavc_param_rc_override_string;
     for(i=0; p; i++){
         int start, end, q;



More information about the MPlayer-cvslog mailing list