Mercurial > libavcodec.hg
comparison eval.h @ 11595:116f25bad5fb libavcodec
Move AVEvalExpr declaration at the beginning of the file, where it is
less distracting.
| author | stefano |
|---|---|
| date | Sun, 11 Apr 2010 11:47:24 +0000 |
| parents | 3207f2314192 |
| children | e22a96273dc4 |
comparison
equal
deleted
inserted
replaced
| 11594:7942a09aac64 | 11595:116f25bad5fb |
|---|---|
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #ifndef AVCODEC_EVAL_H | 28 #ifndef AVCODEC_EVAL_H |
| 29 #define AVCODEC_EVAL_H | 29 #define AVCODEC_EVAL_H |
| 30 | 30 |
| 31 typedef struct ff_expr_s AVEvalExpr; | |
| 32 | |
| 31 /** | 33 /** |
| 32 * Parses and evaluates an expression. | 34 * Parses and evaluates an expression. |
| 33 * Note, this is significantly slower than ff_parse_eval() | 35 * Note, this is significantly slower than ff_parse_eval() |
| 34 * @param s expression as a zero terminated string for example "1+2^3+5*5+sin(2/3)" | 36 * @param s expression as a zero terminated string for example "1+2^3+5*5+sin(2/3)" |
| 35 * @param func1 NULL terminated array of function pointers for functions which take 1 argument | 37 * @param func1 NULL terminated array of function pointers for functions which take 1 argument |
| 44 */ | 46 */ |
| 45 double ff_eval2(const char *s, const double *const_value, const char * const *const_name, | 47 double ff_eval2(const char *s, const double *const_value, const char * const *const_name, |
| 46 double (**func1)(void *, double), const char **func1_name, | 48 double (**func1)(void *, double), const char **func1_name, |
| 47 double (**func2)(void *, double, double), const char **func2_name, | 49 double (**func2)(void *, double, double), const char **func2_name, |
| 48 void *opaque, const char **error); | 50 void *opaque, const char **error); |
| 49 | |
| 50 typedef struct ff_expr_s AVEvalExpr; | |
| 51 | 51 |
| 52 /** | 52 /** |
| 53 * Parses a expression. | 53 * Parses a expression. |
| 54 * @param s expression as a zero terminated string for example "1+2^3+5*5+sin(2/3)" | 54 * @param s expression as a zero terminated string for example "1+2^3+5*5+sin(2/3)" |
| 55 * @param func1 NULL terminated array of function pointers for functions which take 1 argument | 55 * @param func1 NULL terminated array of function pointers for functions which take 1 argument |
