comparison eval.h @ 11597:fce0ed54244c libavcodec

Rename ff_eval_free() to ff_free_expr().
author stefano
date Sun, 11 Apr 2010 11:47:33 +0000
parents e22a96273dc4
children 192399381906
comparison
equal deleted inserted replaced
11596:e22a96273dc4 11597:fce0ed54244c
56 * @param func2 NULL terminated array of function pointers for functions which take 2 arguments 56 * @param func2 NULL terminated array of function pointers for functions which take 2 arguments
57 * @param const_name NULL terminated array of zero terminated strings of constant identifers for example {"PI", "E", 0} 57 * @param const_name NULL terminated array of zero terminated strings of constant identifers for example {"PI", "E", 0}
58 * @param func1_name NULL terminated array of zero terminated strings of func1 identifers 58 * @param func1_name NULL terminated array of zero terminated strings of func1 identifers
59 * @param func2_name NULL terminated array of zero terminated strings of func2 identifers 59 * @param func2_name NULL terminated array of zero terminated strings of func2 identifers
60 * @param error pointer to a char* which is set to an error message if something goes wrong 60 * @param error pointer to a char* which is set to an error message if something goes wrong
61 * @return AVExpr which must be freed with ff_eval_free by the user when it is not needed anymore 61 * @return AVExpr which must be freed with ff_free_expr() by the user when it is not needed anymore
62 * NULL if anything went wrong 62 * NULL if anything went wrong
63 */ 63 */
64 AVExpr * ff_parse(const char *s, const char * const *const_name, 64 AVExpr * ff_parse(const char *s, const char * const *const_name,
65 double (**func1)(void *, double), const char **func1_name, 65 double (**func1)(void *, double), const char **func1_name,
66 double (**func2)(void *, double, double), const char **func2_name, 66 double (**func2)(void *, double, double), const char **func2_name,
70 * @param const_value a zero terminated array of values for the identifers from ff_parse const_name 70 * @param const_value a zero terminated array of values for the identifers from ff_parse const_name
71 * @param opaque a pointer which will be passed to all functions from func1 and func2 71 * @param opaque a pointer which will be passed to all functions from func1 and func2
72 * @return the value of the expression 72 * @return the value of the expression
73 */ 73 */
74 double ff_parse_eval(AVExpr * e, const double *const_value, void *opaque); 74 double ff_parse_eval(AVExpr * e, const double *const_value, void *opaque);
75 void ff_eval_free(AVExpr * e); 75
76 void ff_free_expr(AVExpr *e);
76 77
77 /** 78 /**
78 * Parses the string in numstr and returns its value as a double. If 79 * Parses the string in numstr and returns its value as a double. If
79 * the string is empty, contains only whitespaces, or does not contain 80 * the string is empty, contains only whitespaces, or does not contain
80 * an initial substring that has the expected syntax for a 81 * an initial substring that has the expected syntax for a