simple arithmetic expression evaluator More...
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 839 of file eval.c.
Referenced by activate(), av_parse_ratio(), calc_persp_luts(), config_input(), config_input(), config_input(), config_output(), config_output_props(), config_props(), config_props(), config_props(), drawbox_vaapi_config_output(), eval_expr(), ff_print_eval_expr(), ff_print_formatted_eval_expr(), ff_scale_eval_dimensions(), filter_frame(), filter_frame(), filter_frame(), generate_kernel(), get_aspect_ratio(), main(), pad_opencl_config_output(), pad_vaapi_config_output(), and set_string_number().
Parse an expression.
Definition at line 735 of file eval.c.
Referenced by addroi_init(), av_expr_parse_and_eval(), config_input(), config_input(), config_input(), config_input(), config_input(), config_input(), config_input(), config_input(), config_output(), config_output(), config_output(), config_params(), config_props(), config_props(), ff_rate_control_init(), generate_kernel(), geq_init(), init(), init(), init(), init(), init(), init(), init_axis_color(), init_cqt(), init_volume(), initialize(), libplacebo_init(), modplug_read_header(), noise_init(), nppscale_parse_expr(), process_command(), process_command(), process_command(), process_command(), process_forced_keyframes(), scale_parse_expr(), set_enable_expr(), set_expr(), set_expr(), set_expr(), set_expr(), set_expr(), set_expr(), setts_init(), and vgs_parse_numeric_argument().
Evaluate a previously parsed expression.
Definition at line 824 of file eval.c.
Referenced by activate(), activate(), addroi_config_input(), av_expr_parse_and_eval(), config_input(), config_input(), config_output(), config_output(), config_props(), do_eval(), draw_text(), eval_expr(), eval_expr(), eval_expr(), eval_expr(), eval_pts(), evaluate_timeline_at_frame(), filter_channel(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), 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(), update_crops(), and vgs_eval().
Track the presence of variables and their number of occurrences in a parsed expression.
Definition at line 814 of file eval.c.
Referenced by check_exprs(), 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 819 of file eval.c.
Referenced by geq_init().
Free a parsed expression previously created with av_expr_parse().
Definition at line 368 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_input(), config_input(), config_input(), config_output(), config_params(), config_props(), config_props(), eval_expr(), eval_expr(), 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(), process_command(), scale_parse_expr(), set_enable_expr(), set_expr(), set_expr(), set_expr(), set_expr(), set_expr(), set_expr(), setts_close(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), uninit(), and vgs_statement_free().
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 110 of file eval.c.
Referenced by ff_parse_sample_rate(), parse_number(), parse_points_str(), parse_primary(), parse_string(), parse_weights(), set_param(), var_read_float(), vgs_eval(), and vgs_parse_numeric_argument().