Mercurial > libavcodec.hg
comparison eval.h @ 6324:e378dca8784f libavcodec
const
author | michael |
---|---|
date | Sun, 03 Feb 2008 23:25:35 +0000 |
parents | 1d83e9c34641 |
children | 0809b40d9b65 |
comparison
equal
deleted
inserted
replaced
6323:e6da66f378c7 | 6324:e378dca8784f |
---|---|
53 * @return the value of the expression | 53 * @return the value of the expression |
54 */ | 54 */ |
55 double ff_eval2(char *s, double *const_value, const char **const_name, | 55 double ff_eval2(char *s, double *const_value, const char **const_name, |
56 double (**func1)(void *, double), const char **func1_name, | 56 double (**func1)(void *, double), const char **func1_name, |
57 double (**func2)(void *, double, double), char **func2_name, | 57 double (**func2)(void *, double, double), char **func2_name, |
58 void *opaque, char **error); | 58 void *opaque, const char **error); |
59 | 59 |
60 typedef struct ff_expr_s AVEvalExpr; | 60 typedef struct ff_expr_s AVEvalExpr; |
61 | 61 |
62 /** | 62 /** |
63 * Parses a expression. | 63 * Parses a expression. |
72 * NULL if anything went wrong | 72 * NULL if anything went wrong |
73 */ | 73 */ |
74 AVEvalExpr * ff_parse(char *s, const char **const_name, | 74 AVEvalExpr * ff_parse(char *s, const char **const_name, |
75 double (**func1)(void *, double), const char **func1_name, | 75 double (**func1)(void *, double), const char **func1_name, |
76 double (**func2)(void *, double, double), char **func2_name, | 76 double (**func2)(void *, double, double), char **func2_name, |
77 char **error); | 77 const char **error); |
78 /** | 78 /** |
79 * Evaluates a previously parsed expression. | 79 * Evaluates a previously parsed expression. |
80 * @param const_value a zero terminated array of values for the identifers from ff_parse const_name | 80 * @param const_value a zero terminated array of values for the identifers from ff_parse const_name |
81 * @param opaque a pointer which will be passed to all functions from func1 and func2 | 81 * @param opaque a pointer which will be passed to all functions from func1 and func2 |
82 * @return the value of the expression | 82 * @return the value of the expression |