Mercurial > libavcodec.hg
comparison eval.h @ 11604:6bab1bfac3bb libavcodec
Rename ff_parse_eval() to ff_eval_expr().
The new name expresses better what the function does.
| author | stefano |
|---|---|
| date | Sun, 11 Apr 2010 22:32:01 +0000 |
| parents | 5cbea9fe32df |
| children | 414a7cdaa54d |
comparison
equal
deleted
inserted
replaced
| 11603:5cbea9fe32df | 11604:6bab1bfac3bb |
|---|---|
| 28 | 28 |
| 29 typedef struct AVExpr AVExpr; | 29 typedef struct AVExpr AVExpr; |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * Parses and evaluates an expression. | 32 * Parses and evaluates an expression. |
| 33 * Note, this is significantly slower than ff_parse_eval() | 33 * Note, this is significantly slower than ff_eval_expr(). |
| 34 * | 34 * |
| 35 * @param s expression as a zero terminated string for example "1+2^3+5*5+sin(2/3)" | 35 * @param s expression as a zero terminated string for example "1+2^3+5*5+sin(2/3)" |
| 36 * @param func1 NULL terminated array of function pointers for functions which take 1 argument | 36 * @param func1 NULL terminated array of function pointers for functions which take 1 argument |
| 37 * @param func2 NULL terminated array of function pointers for functions which take 2 arguments | 37 * @param func2 NULL terminated array of function pointers for functions which take 2 arguments |
| 38 * @param const_name NULL terminated array of zero terminated strings of constant identifers for example {"PI", "E", 0} | 38 * @param const_name NULL terminated array of zero terminated strings of constant identifers for example {"PI", "E", 0} |
| 71 * | 71 * |
| 72 * @param const_value a zero terminated array of values for the identifers from ff_parse const_name | 72 * @param const_value a zero terminated array of values for the identifers from ff_parse const_name |
| 73 * @param opaque a pointer which will be passed to all functions from func1 and func2 | 73 * @param opaque a pointer which will be passed to all functions from func1 and func2 |
| 74 * @return the value of the expression | 74 * @return the value of the expression |
| 75 */ | 75 */ |
| 76 double ff_parse_eval(AVExpr * e, const double *const_value, void *opaque); | 76 double ff_eval_expr(AVExpr * e, const double *const_value, void *opaque); |
| 77 | 77 |
| 78 /** | 78 /** |
| 79 * Frees a parsed expression previously created with ff_parse(). | 79 * Frees a parsed expression previously created with ff_parse(). |
| 80 */ | 80 */ |
| 81 void ff_free_expr(AVExpr *e); | 81 void ff_free_expr(AVExpr *e); |
