summaryrefslogtreecommitdiff
path: root/libavcodec/eval.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2010-06-01 08:07:12 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2010-06-01 08:07:12 +0000
commit9711439b44a672d2a2f35e78bdba16fdfb5c817d (patch)
tree784f062be6451777888358edac60d34b8176f330 /libavcodec/eval.h
parent9ace13b416c77f15464fd8e1a024db8b00ce76f9 (diff)
Cosmetics: rename ff_parse_expr() and ff_parse_and_eval_expr() parameters:
const_name -> const_names const_value -> const_values func[12]_name -> func[12]_names func[12] -> funcs[12] All these parameters contain a list of values, using plural names for them help understanding a little. Originally committed as revision 23403 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/eval.h')
-rw-r--r--libavcodec/eval.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/libavcodec/eval.h b/libavcodec/eval.h
index dae7b2c6f2..b5b3ee1056 100644
--- a/libavcodec/eval.h
+++ b/libavcodec/eval.h
@@ -35,21 +35,21 @@ typedef struct AVExpr AVExpr;
* @param res a pointer to a double where is put the result value of
* the expression, or NAN in case of error
* @param s expression as a zero terminated string for example "1+2^3+5*5+sin(2/3)"
- * @param const_name NULL terminated array of zero terminated strings of constant identifers for example {"PI", "E", 0}
- * @param const_value a zero terminated array of values for the identifers from const_name
- * @param func1_name NULL terminated array of zero terminated strings of func1 identifers
- * @param func1 NULL terminated array of function pointers for functions which take 1 argument
- * @param func2_name NULL terminated array of zero terminated strings of func2 identifers
- * @param func2 NULL terminated array of function pointers for functions which take 2 arguments
- * @param opaque a pointer which will be passed to all functions from func1 and func2
+ * @param const_names NULL terminated array of zero terminated strings of constant identifers for example {"PI", "E", 0}
+ * @param const_values a zero terminated array of values for the identifers from const_names
+ * @param func1_names NULL terminated array of zero terminated strings of funcs1 identifers
+ * @param funcs1 NULL terminated array of function pointers for functions which take 1 argument
+ * @param func2_names NULL terminated array of zero terminated strings of funcs2 identifers
+ * @param funcs2 NULL terminated array of function pointers for functions which take 2 arguments
+ * @param opaque a pointer which will be passed to all functions from funcs1 and funcs2
* @param log_ctx parent logging context
* @return 0 in case of success, a negative value corresponding to an
* AVERROR code otherwise
*/
int ff_parse_and_eval_expr(double *res, const char *s,
- const char * const *const_name, const double *const_value,
- const char * const *func1_name, double (* const *func1)(void *, double),
- const char * const *func2_name, double (* const *func2)(void *, double, double),
+ const char * const *const_names, const double *const_values,
+ const char * const *func1_names, double (* const *funcs1)(void *, double),
+ const char * const *func2_names, double (* const *funcs2)(void *, double, double),
void *opaque, int log_offset, void *log_ctx);
/**
@@ -60,29 +60,29 @@ int ff_parse_and_eval_expr(double *res, const char *s,
* The pointed to AVExpr must be freed with ff_free_expr() by the user
* when it is not needed anymore.
* @param s expression as a zero terminated string for example "1+2^3+5*5+sin(2/3)"
- * @param const_name NULL terminated array of zero terminated strings of constant identifers for example {"PI", "E", 0}
- * @param func1_name NULL terminated array of zero terminated strings of func1 identifers
- * @param func1 NULL terminated array of function pointers for functions which take 1 argument
- * @param func2_name NULL terminated array of zero terminated strings of func2 identifers
- * @param func2 NULL terminated array of function pointers for functions which take 2 arguments
+ * @param const_names NULL terminated array of zero terminated strings of constant identifers for example {"PI", "E", 0}
+ * @param func1_names NULL terminated array of zero terminated strings of funcs1 identifers
+ * @param funcs1 NULL terminated array of function pointers for functions which take 1 argument
+ * @param func2_names NULL terminated array of zero terminated strings of funcs2 identifers
+ * @param funcs2 NULL terminated array of function pointers for functions which take 2 arguments
* @param log_ctx parent logging context
* @return 0 in case of success, a negative value corresponding to an
* AVERROR code otherwise
*/
int ff_parse_expr(AVExpr **expr, const char *s,
- const char * const *const_name,
- const char * const *func1_name, double (* const *func1)(void *, double),
- const char * const *func2_name, double (* const *func2)(void *, double, double),
+ const char * const *const_names,
+ const char * const *func1_names, double (* const *funcs1)(void *, double),
+ const char * const *func2_names, double (* const *funcs2)(void *, double, double),
int log_offset, void *log_ctx);
/**
* Evaluates a previously parsed expression.
*
- * @param const_value a zero terminated array of values for the identifers from ff_parse const_name
- * @param opaque a pointer which will be passed to all functions from func1 and func2
+ * @param const_values a zero terminated array of values for the identifers from ff_parse() const_names
+ * @param opaque a pointer which will be passed to all functions from funcs1 and funcs2
* @return the value of the expression
*/
-double ff_eval_expr(AVExpr * e, const double *const_value, void *opaque);
+double ff_eval_expr(AVExpr *e, const double *const_values, void *opaque);
/**
* Frees a parsed expression previously created with ff_parse_expr().