Mercurial > libavcodec.hg
comparison eval.h @ 11820:f0aac2d7e335 libavcodec
Fix misc typos.
| author | stefano |
|---|---|
| date | Thu, 03 Jun 2010 18:53:35 +0000 |
| parents | 3dc6ee95d63a |
| children |
comparison
equal
deleted
inserted
replaced
| 11819:9bdc0fe882fa | 11820:f0aac2d7e335 |
|---|---|
| 32 * Parses and evaluates an expression. | 32 * Parses and evaluates an expression. |
| 33 * Note, this is significantly slower than ff_eval_expr(). | 33 * Note, this is significantly slower than ff_eval_expr(). |
| 34 * | 34 * |
| 35 * @param res a pointer to a double where is put the result value of | 35 * @param res a pointer to a double where is put the result value of |
| 36 * the expression, or NAN in case of error | 36 * the expression, or NAN in case of error |
| 37 * @param s expression as a zero terminated string for example "1+2^3+5*5+sin(2/3)" | 37 * @param s expression as a zero terminated string, for example "1+2^3+5*5+sin(2/3)" |
| 38 * @param const_names NULL terminated array of zero terminated strings of constant identifers for example {"PI", "E", 0} | 38 * @param const_names NULL terminated array of zero terminated strings of constant identifiers, for example {"PI", "E", 0} |
| 39 * @param const_values a zero terminated array of values for the identifers from const_names | 39 * @param const_values a zero terminated array of values for the identifiers from const_names |
| 40 * @param func1_names NULL terminated array of zero terminated strings of funcs1 identifers | 40 * @param func1_names NULL terminated array of zero terminated strings of funcs1 identifiers |
| 41 * @param funcs1 NULL terminated array of function pointers for functions which take 1 argument | 41 * @param funcs1 NULL terminated array of function pointers for functions which take 1 argument |
| 42 * @param func2_names NULL terminated array of zero terminated strings of funcs2 identifers | 42 * @param func2_names NULL terminated array of zero terminated strings of funcs2 identifiers |
| 43 * @param funcs2 NULL terminated array of function pointers for functions which take 2 arguments | 43 * @param funcs2 NULL terminated array of function pointers for functions which take 2 arguments |
| 44 * @param opaque a pointer which will be passed to all functions from funcs1 and funcs2 | 44 * @param opaque a pointer which will be passed to all functions from funcs1 and funcs2 |
| 45 * @param log_ctx parent logging context | 45 * @param log_ctx parent logging context |
| 46 * @return 0 in case of success, a negative value corresponding to an | 46 * @return 0 in case of success, a negative value corresponding to an |
| 47 * AVERROR code otherwise | 47 * AVERROR code otherwise |
| 57 * | 57 * |
| 58 * @param expr a pointer where is put an AVExpr containing the parsed | 58 * @param expr a pointer where is put an AVExpr containing the parsed |
| 59 * value in case of successfull parsing, or NULL otherwise. | 59 * value in case of successfull parsing, or NULL otherwise. |
| 60 * The pointed to AVExpr must be freed with ff_free_expr() by the user | 60 * The pointed to AVExpr must be freed with ff_free_expr() by the user |
| 61 * when it is not needed anymore. | 61 * when it is not needed anymore. |
| 62 * @param s expression as a zero terminated string for example "1+2^3+5*5+sin(2/3)" | 62 * @param s expression as a zero terminated string, for example "1+2^3+5*5+sin(2/3)" |
| 63 * @param const_names NULL terminated array of zero terminated strings of constant identifers for example {"PI", "E", 0} | 63 * @param const_names NULL terminated array of zero terminated strings of constant identifiers, for example {"PI", "E", 0} |
| 64 * @param func1_names NULL terminated array of zero terminated strings of funcs1 identifers | 64 * @param func1_names NULL terminated array of zero terminated strings of funcs1 identifiers |
| 65 * @param funcs1 NULL terminated array of function pointers for functions which take 1 argument | 65 * @param funcs1 NULL terminated array of function pointers for functions which take 1 argument |
| 66 * @param func2_names NULL terminated array of zero terminated strings of funcs2 identifers | 66 * @param func2_names NULL terminated array of zero terminated strings of funcs2 identifiers |
| 67 * @param funcs2 NULL terminated array of function pointers for functions which take 2 arguments | 67 * @param funcs2 NULL terminated array of function pointers for functions which take 2 arguments |
| 68 * @param log_ctx parent logging context | 68 * @param log_ctx parent logging context |
| 69 * @return 0 in case of success, a negative value corresponding to an | 69 * @return 0 in case of success, a negative value corresponding to an |
| 70 * AVERROR code otherwise | 70 * AVERROR code otherwise |
| 71 */ | 71 */ |
| 76 int log_offset, void *log_ctx); | 76 int log_offset, void *log_ctx); |
| 77 | 77 |
| 78 /** | 78 /** |
| 79 * Evaluates a previously parsed expression. | 79 * Evaluates a previously parsed expression. |
| 80 * | 80 * |
| 81 * @param const_values a zero terminated array of values for the identifers from ff_parse() const_names | 81 * @param const_values a zero terminated array of values for the identifiers from ff_parse() const_names |
| 82 * @param opaque a pointer which will be passed to all functions from funcs1 and funcs2 | 82 * @param opaque a pointer which will be passed to all functions from funcs1 and funcs2 |
| 83 * @return the value of the expression | 83 * @return the value of the expression |
| 84 */ | 84 */ |
| 85 double ff_eval_expr(AVExpr *e, const double *const_values, void *opaque); | 85 double ff_eval_expr(AVExpr *e, const double *const_values, void *opaque); |
| 86 | 86 |
