Go to the source code of this file.
simple arithmetic expression evaluator
Definition in file eval.h.
Parse and evaluate an expression.
Note, this is significantly slower than av_expr_eval().
Definition at line 804 of file eval.c.
Referenced by activate(), av_parse_ratio(), calc_persp_luts(), config_input(), config_output_props(), config_props(), ff_print_eval_expr(), ff_print_formatted_eval_expr(), ff_scale_eval_dimensions(), filter_frame(), generate_kernel(), get_aspect_ratio(), main(), pad_opencl_config_output(), and set_string_number().
Parse an expression.
Definition at line 711 of file eval.c.
Referenced by addroi_init(), av_expr_parse_and_eval(), config_input(), config_output(), config_params(), config_props(), ff_rate_control_init(), generate_kernel(), geq_init(), init(), init_axis_color(), init_cqt(), init_volume(), initialize(), libplacebo_init(), modplug_read_header(), noise_init(), nppscale_parse_expr(), process_command(), process_forced_keyframes(), scale_parse_expr(), set_enable_expr(), set_expr(), and setts_init().
Evaluate a previously parsed expression.
Definition at line 793 of file eval.c.
Referenced by activate(), addroi_config_input(), av_expr_parse_and_eval(), config_input(), config_output(), config_props(), do_eval(), draw_text(), eval_expr(), eval_pts(), ff_inlink_evaluate_timeline_at_frame(), filter_channel(), filter_frame(), forced_kf_apply(), generate_kernel(), get_max_local_gain(), get_qscale(), get_target_gain(), init(), init_axis_color(), init_cqt(), init_volume(), modplug_read_packet(), noise(), nppscale_eval_dimensions(), output_single_frame(), parse_expr(), request_frame(), scale_eval_dimensions(), select_frame(), set_brightness(), set_contrast(), set_gamma(), set_saturation(), set_volume(), setts_filter(), slice_geq_filter(), update_alpha(), update_context(), and update_crops().
Track the presence of variables and their number of occurrences in a parsed expression.
Definition at line 783 of file eval.c.
Referenced by check_exprs(), nppscale_scale(), and scale_frame().
Track the presence of user provided functions and their number of occurrences in a parsed expression.
Definition at line 788 of file eval.c.
Referenced by geq_init().
Free a parsed expression previously created with av_expr_parse().
Definition at line 359 of file eval.c.
Referenced by addroi_uninit(), av_expr_free(), av_expr_parse(), av_expr_parse_and_eval(), avfilter_free(), command(), config_input(), config_output(), config_props(), eval_expr(), ff_rate_control_uninit(), generate_kernel(), geq_uninit(), init(), init_axis_color(), init_cqt(), init_volume(), libplacebo_uninit(), noise_close(), nppscale_parse_expr(), nppscale_uninit(), ost_free(), overlay_cuda_uninit(), parse_channel_expressions(), parse_expr(), parse_factor(), parse_primary(), parse_subexpr(), parse_term(), process_command(), scale_parse_expr(), set_enable_expr(), set_expr(), setts_close(), and uninit().
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.
Definition at line 108 of file eval.c.
Referenced by ff_parse_sample_rate(), parse_number(), parse_points_str(), parse_primary(), parse_string(), parse_weights(), set_param(), and var_read_float().