MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / av_expr_parse_and_eval

Function av_expr_parse_and_eval

libavutil/eval.c:839–855  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837}
838
839int av_expr_parse_and_eval(double *d, const char *s,
840 const char * const *const_names, const double *const_values,
841 const char * const *func1_names, double (* const *funcs1)(void *, double),
842 const char * const *func2_names, double (* const *funcs2)(void *, double, double),
843 void *opaque, int log_offset, void *log_ctx)
844{
845 AVExpr *e = NULL;
846 int ret = av_expr_parse(&e, s, const_names, func1_names, funcs1, func2_names, funcs2, log_offset, log_ctx);
847
848 if (ret < 0) {
849 *d = NAN;
850 return ret;
851 }
852 *d = av_expr_eval(e, const_values, opaque);
853 av_expr_free(e);
854 return isnan(*d) ? AVERROR(EINVAL) : 0;
855}

Callers 15

mainFunction · 0.85
set_string_numberFunction · 0.85
av_parse_ratioFunction · 0.85
mainFunction · 0.85
ff_print_eval_exprFunction · 0.85
pad_vaapi_config_outputFunction · 0.85
ff_scale_eval_dimensionsFunction · 0.85
pad_opencl_config_outputFunction · 0.85
filter_frameFunction · 0.85
config_inputFunction · 0.85
config_inputFunction · 0.85

Calls 3

av_expr_parseFunction · 0.85
av_expr_evalFunction · 0.85
av_expr_freeFunction · 0.85

Tested by 3

mainFunction · 0.68
get_aspect_ratioFunction · 0.68
calc_persp_lutsFunction · 0.68