00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00026 #ifndef AVUTIL_EVAL_H
00027 #define AVUTIL_EVAL_H
00028
00029 #include "avutil.h"
00030
00031 typedef struct AVExpr AVExpr;
00032
00051 int av_expr_parse_and_eval(double *res, const char *s,
00052 const char * const *const_names, const double *const_values,
00053 const char * const *func1_names, double (* const *funcs1)(void *, double),
00054 const char * const *func2_names, double (* const *funcs2)(void *, double, double),
00055 void *opaque, int log_offset, void *log_ctx);
00056
00074 int av_expr_parse(AVExpr **expr, const char *s,
00075 const char * const *const_names,
00076 const char * const *func1_names, double (* const *funcs1)(void *, double),
00077 const char * const *func2_names, double (* const *funcs2)(void *, double, double),
00078 int log_offset, void *log_ctx);
00079
00087 double av_expr_eval(AVExpr *e, const double *const_values, void *opaque);
00088
00092 void av_expr_free(AVExpr *e);
00093
00094 #if FF_API_OLD_EVAL_NAMES
00095
00098 attribute_deprecated
00099 int av_parse_and_eval_expr(double *res, const char *s,
00100 const char * const *const_names, const double *const_values,
00101 const char * const *func1_names, double (* const *funcs1)(void *, double),
00102 const char * const *func2_names, double (* const *funcs2)(void *, double, double),
00103 void *opaque, int log_offset, void *log_ctx);
00104
00108 attribute_deprecated
00109 int av_parse_expr(AVExpr **expr, const char *s,
00110 const char * const *const_names,
00111 const char * const *func1_names, double (* const *funcs1)(void *, double),
00112 const char * const *func2_names, double (* const *funcs2)(void *, double, double),
00113 int log_offset, void *log_ctx);
00117 attribute_deprecated
00118 double av_eval_expr(AVExpr *e, const double *const_values, void *opaque);
00119
00123 attribute_deprecated
00124 void av_free_expr(AVExpr *e);
00125 #endif
00126
00144 double av_strtod(const char *numstr, char **tail);
00145
00146 #endif