ffmpeg.libavutil.eval

@file simple arithmetic expression evaluator

Members

Functions

av_expr_eval
double av_expr_eval(AVExpr* e, const(double)* const_values, void* opaque)

Evaluate a previously parsed expression.

av_expr_free
void av_expr_free(AVExpr* e)

Free a parsed expression previously created with av_expr_parse().

av_expr_parse
int av_expr_parse(AVExpr** expr, const(char)* s, const(char*)* const_names, const(char*)* func1_names, double function(void*, double)* funcs1, const(char*)* func2_names, double function(void*, double, double)* funcs2, int log_offset, void* log_ctx)

Parse an expression.

av_expr_parse_and_eval
int av_expr_parse_and_eval(double* res, const(char)* s, const(char*)* const_names, const(double)* const_values, const(char*)* func1_names, double function(void*, double)* funcs1, const(char*)* func2_names, double function(void*, double, double)* funcs2, void* opaque, int log_offset, void* log_ctx)

Parse and evaluate an expression. Note, this is significantly slower than av_expr_eval().

av_strtod
double av_strtod(const(char)* numstr, char** tail)

Parse the string in numstr and return its value as a double. If the string is empty, contains only whitespaces, or does not contain an initial substring that has the expected syntax for a floating-point number, no conversion is performed. In this case, returns a value of zero and the value returned in tail is the value of numstr.

Structs

AVExpr
struct AVExpr
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta