[Ffmpeg-cvslog] r6383 - in trunk/libavcodec: mpegvideo.h opt.c ratecontrol.c

takis subversion
Fri Sep 29 21:33:05 CEST 2006


Author: takis
Date: Fri Sep 29 21:33:04 2006
New Revision: 6383

Modified:
   trunk/libavcodec/mpegvideo.h
   trunk/libavcodec/opt.c
   trunk/libavcodec/ratecontrol.c

Log:
Pull out the ff_eval* from the mpegvideo header, as it doesn't belong there and
put it in a separate file.


Modified: trunk/libavcodec/mpegvideo.h
==============================================================================
--- trunk/libavcodec/mpegvideo.h	(original)
+++ trunk/libavcodec/mpegvideo.h	Fri Sep 29 21:33:04 2006
@@ -991,16 +991,6 @@
 float ff_rate_estimate_qscale(MpegEncContext *s, int dry_run);
 void ff_write_pass1_stats(MpegEncContext *s);
 void ff_rate_control_uninit(MpegEncContext *s);
-#if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
-double ff_eval(char *s, double *const_value, const char **const_name,
-               double (**func1)(void *, double), const char **func1_name,
-               double (**func2)(void *, double, double), char **func2_name,
-               void *opaque);
-#endif
-double ff_eval2(char *s, double *const_value, const char **const_name,
-               double (**func1)(void *, double), const char **func1_name,
-               double (**func2)(void *, double, double), char **func2_name,
-               void *opaque, char **error);
 int ff_vbv_update(MpegEncContext *s, int frame_size);
 void ff_get_2pass_fcode(MpegEncContext *s);
 

Modified: trunk/libavcodec/opt.c
==============================================================================
--- trunk/libavcodec/opt.c	(original)
+++ trunk/libavcodec/opt.c	Fri Sep 29 21:33:04 2006
@@ -26,7 +26,7 @@
 
 #include "avcodec.h"
 #include "opt.h"
-#include "mpegvideo.h"
+#include "eval.h"
 
 //FIXME order them and do a bin search
 static AVOption *find_opt(void *v, const char *name, const char *unit){

Modified: trunk/libavcodec/ratecontrol.c
==============================================================================
--- trunk/libavcodec/ratecontrol.c	(original)
+++ trunk/libavcodec/ratecontrol.c	Fri Sep 29 21:33:04 2006
@@ -26,6 +26,7 @@
 #include "avcodec.h"
 #include "dsputil.h"
 #include "mpegvideo.h"
+#include "eval.h"
 
 #undef NDEBUG // allways check asserts, the speed effect is far too small to disable them
 #include <assert.h>




More information about the ffmpeg-cvslog mailing list