misc parsing utilities More...
#include <time.h>#include "avstring.h"#include "avutil.h"#include "common.h"#include "eval.h"#include "log.h"#include "random_seed.h"#include "time_internal.h"#include "parseutils.h"Go to the source code of this file.
misc parsing utilities
Definition in file parseutils.c.
Definition at line 352 of file parseutils.c.
Referenced by av_parse_color().
Parse str and store the parsed ratio in q.
Note that a ratio with infinite (1/0) or negative value is considered valid, so you should check on the returned value if you want to exclude those values.
The undefined value can be expressed using the "0:0" string.
Definition at line 45 of file parseutils.c.
Referenced by ff_parse_time_base(), get_aspect_ratio(), new_output_stream(), new_video_stream(), and vivo_read_header().
Parse str and put in width_ptr and height_ptr the detected values.
Definition at line 148 of file parseutils.c.
Referenced by add_input_streams(), av_opt_is_set_to_default(), create_stream(), dc1394_read_common(), init_dict(), main(), new_subtitle_stream(), new_video_stream(), set_string_image_size(), and vfw_read_header().
Parse str and store the detected values in *rate.
Definition at line 179 of file parseutils.c.
Referenced by add_input_streams(), av_opt_is_set_to_default(), cdxl_read_header(), create_stream(), dc1394_read_common(), dshow_read_header(), grab_read_header(), new_video_stream(), parse_manifest_representation(), set_string_video_rate(), test_av_parse_video_rate(), v4l2_set_parameters(), and vfw_read_header().
Definition at line 347 of file parseutils.c.
Referenced by av_parse_color().
Put the RGBA values that correspond to color_string in rgba_color.
Definition at line 354 of file parseutils.c.
Referenced by av_opt_is_set_to_default(), config_input(), config_output(), config_video_output(), draw_curves(), draw_text(), html_color_parse(), init(), plot_freqs(), set_param(), set_string_color(), and test_av_parse_color().
Get the name of a color from the internal table of hard-coded named colors.
This function is meant to enumerate the color names recognized by av_parse_color().
Definition at line 434 of file parseutils.c.
Referenced by show_colors(), and test_av_get_known_color_name().
Definition at line 450 of file parseutils.c.
Referenced by av_small_strptime().
Definition at line 474 of file parseutils.c.
Referenced by av_small_strptime().
Simplified version of strptime.
Parse the input string p according to the format string fmt and store its results in the structure dt. This implementation supports only a subset of the formats supported by the standard strptime().
The supported input field descriptors are listed below.
Definition at line 489 of file parseutils.c.
Referenced by av_parse_time(), av_small_strptime(), ftp_parse_date(), parse_set_cookie_expiry_time(), and test_av_small_strptime().
Convert the decomposed UTC time in tm to a time_t value.
Definition at line 568 of file parseutils.c.
Referenced by av_parse_time(), ftp_parse_date(), get_cookies(), get_utc_date_time_insec(), mxf_timestamp_to_int64(), and parse_cookie().
Parse timestr and return in *time a corresponding number of microseconds.
Definition at line 587 of file parseutils.c.
Referenced by av_opt_set(), concat_read_header(), ff_parse_creation_time_metadata(), func_pts(), get_metadata_duration(), parse_interval(), parse_read_interval(), parse_time_or_die(), parse_times(), rtsp_parse_range_npt(), seg_init(), and test_av_parse_time().
Attempt to find a specific tag in a URL.
syntax: '?tag1=val1&tag2=val2...'. Little URL decoding is done. Return 1 if found.
Definition at line 743 of file parseutils.c.
Referenced by ff_rtp_set_remote_url(), ff_tls_open_underlying(), ff_udp_set_remote_url(), libsrt_open(), libsrt_setup(), rtp_open(), sap_write_header(), sctp_open(), set_options(), tcp_open(), test_av_find_info_tag(), and udp_open().
Definition at line 76 of file parseutils.c.
Definition at line 132 of file parseutils.c.
Definition at line 143 of file parseutils.c.
Referenced by date_get_month().
Definition at line 204 of file parseutils.c.
Referenced by test_av_get_known_color_name().