50 const char *
const *const_names,
const double *const_values,
51 const char *
const *func1_names,
double (*
const *funcs1)(
void *,
double),
52 const char *
const *func2_names,
double (*
const *funcs2)(
void *,
double,
double),
53 void *opaque,
int log_offset,
void *log_ctx);
73 const char *
const *const_names,
74 const char *
const *func1_names,
double (*
const *funcs1)(
void *,
double),
75 const char *
const *func2_names,
double (*
const *funcs2)(
void *,
double,
double),
76 int log_offset,
void *log_ctx);
void av_expr_free(AVExpr *e)
Free a parsed expression previously created with av_expr_parse().
int av_expr_parse_and_eval(double *res, const char *s, 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)
Parse and evaluate an expression.
int av_expr_count_vars(AVExpr *e, unsigned *counter, int size)
Track the presence of variables and their number of occurrences in a parsed expression.
double av_expr_eval(AVExpr *e, const double *const_values, void *opaque)
Evaluate a previously parsed expression.
double av_strtod(const char *numstr, char **tail)
Parse the string in numstr and return its value as a double.
int av_expr_parse(AVExpr **expr, const char *s, 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)
Parse an expression.
int av_expr_count_func(AVExpr *e, unsigned *counter, int size, int arg)
Track the presence of user provided functions and their number of occurrences in a parsed expression.