Mercurial > libavcodec.hg
comparison eval.h @ 8320:0de488aa4fb0 libavcodec
Add a few const qualifiers in appropriate places.
patch by Anders Gr?nberg, galileo.m2 gmail com
| author | diego |
|---|---|
| date | Sun, 14 Dec 2008 12:24:50 +0000 |
| parents | 20a0f6aba1cb |
| children | e9d9d946f213 |
comparison
equal
deleted
inserted
replaced
| 8319:3e7dd8cfa97f | 8320:0de488aa4fb0 |
|---|---|
| 40 * @param error pointer to a char* which is set to an error message if something goes wrong | 40 * @param error pointer to a char* which is set to an error message if something goes wrong |
| 41 * @param const_value a zero terminated array of values for the identifers from const_name | 41 * @param const_value a zero terminated array of values for the identifers from const_name |
| 42 * @param opaque a pointer which will be passed to all functions from func1 and func2 | 42 * @param opaque a pointer which will be passed to all functions from func1 and func2 |
| 43 * @return the value of the expression | 43 * @return the value of the expression |
| 44 */ | 44 */ |
| 45 double ff_eval2(const char *s, double *const_value, const char **const_name, | 45 double ff_eval2(const char *s, const double *const_value, const char * const *const_name, |
| 46 double (**func1)(void *, double), const char **func1_name, | 46 double (**func1)(void *, double), const char **func1_name, |
| 47 double (**func2)(void *, double, double), char **func2_name, | 47 double (**func2)(void *, double, double), const char **func2_name, |
| 48 void *opaque, const char **error); | 48 void *opaque, const char **error); |
| 49 | 49 |
| 50 typedef struct ff_expr_s AVEvalExpr; | 50 typedef struct ff_expr_s AVEvalExpr; |
| 51 | 51 |
| 52 /** | 52 /** |
| 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 AVEvalExpr which must be freed with ff_eval_free by the user when it is not needed anymore | 61 * @return AVEvalExpr which must be freed with ff_eval_free by the user when it is not needed anymore |
| 62 * NULL if anything went wrong | 62 * NULL if anything went wrong |
| 63 */ | 63 */ |
| 64 AVEvalExpr * ff_parse(const char *s, const char **const_name, | 64 AVEvalExpr * 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), char **func2_name, | 66 double (**func2)(void *, double, double), const char **func2_name, |
| 67 const char **error); | 67 const char **error); |
| 68 /** | 68 /** |
| 69 * Evaluates a previously parsed expression. | 69 * Evaluates a previously parsed expression. |
| 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(AVEvalExpr * e, double *const_value, void *opaque); | 74 double ff_parse_eval(AVEvalExpr * e, const double *const_value, void *opaque); |
| 75 void ff_eval_free(AVEvalExpr * e); | 75 void ff_eval_free(AVEvalExpr * e); |
| 76 | 76 |
| 77 #endif /* AVCODEC_EVAL_H */ | 77 #endif /* AVCODEC_EVAL_H */ |
