comparison mpegvideo.h @ 3775:8e1ed8300165 libavcodec

Make ratecontrol use ff_eval2().
author takis
date Wed, 27 Sep 2006 19:46:19 +0000
parents 6310389a9688
children 1843a85123b7
comparison
equal deleted inserted replaced
3774:699bceae338c 3775:8e1ed8300165
989 /* rate control */ 989 /* rate control */
990 int ff_rate_control_init(MpegEncContext *s); 990 int ff_rate_control_init(MpegEncContext *s);
991 float ff_rate_estimate_qscale(MpegEncContext *s, int dry_run); 991 float ff_rate_estimate_qscale(MpegEncContext *s, int dry_run);
992 void ff_write_pass1_stats(MpegEncContext *s); 992 void ff_write_pass1_stats(MpegEncContext *s);
993 void ff_rate_control_uninit(MpegEncContext *s); 993 void ff_rate_control_uninit(MpegEncContext *s);
994 #if LIBAVCODEC_VERSION_INT < ((52<<16)+(0<<8)+0)
994 double ff_eval(char *s, double *const_value, const char **const_name, 995 double ff_eval(char *s, double *const_value, const char **const_name,
995 double (**func1)(void *, double), const char **func1_name, 996 double (**func1)(void *, double), const char **func1_name,
996 double (**func2)(void *, double, double), char **func2_name, 997 double (**func2)(void *, double, double), char **func2_name,
997 void *opaque); 998 void *opaque);
999 #endif
1000 double ff_eval2(char *s, double *const_value, const char **const_name,
1001 double (**func1)(void *, double), const char **func1_name,
1002 double (**func2)(void *, double, double), char **func2_name,
1003 void *opaque, char **error);
998 int ff_vbv_update(MpegEncContext *s, int frame_size); 1004 int ff_vbv_update(MpegEncContext *s, int frame_size);
999 void ff_get_2pass_fcode(MpegEncContext *s); 1005 void ff_get_2pass_fcode(MpegEncContext *s);
1000 1006
1001 int ff_xvid_rate_control_init(MpegEncContext *s); 1007 int ff_xvid_rate_control_init(MpegEncContext *s);
1002 void ff_xvid_rate_control_uninit(MpegEncContext *s); 1008 void ff_xvid_rate_control_uninit(MpegEncContext *s);