19 #ifndef AVUTIL_PARSEUTILS_H 
   20 #define AVUTIL_PARSEUTILS_H 
   50                    int log_offset, 
void *log_ctx);
 
   52 #define av_parse_ratio_quiet(rate, str, max) \ 
   53     av_parse_ratio(rate, str, max, AV_LOG_MAX_OFFSET, NULL) 
int av_parse_ratio(AVRational *q, const char *str, int max, int log_offset, void *log_ctx)
Parse str and store the parsed ratio in q. 
int av_parse_video_rate(AVRational *rate, const char *str)
Parse str and store the detected values in *rate. 
char * av_small_strptime(const char *p, const char *fmt, struct tm *dt)
Simplified version of strptime. 
int av_parse_video_size(int *width_ptr, int *height_ptr, const char *str)
Parse str and put in width_ptr and height_ptr the detected values. 
int av_parse_color(uint8_t *rgba_color, const char *color_string, int slen, void *log_ctx)
Put the RGBA values that correspond to color_string in rgba_color. 
rational number numerator/denominator 
int av_find_info_tag(char *arg, int arg_size, const char *tag1, const char *info)
Attempt to find a specific tag in a URL. 
const char * av_get_known_color_name(int color_idx, const uint8_t **rgb)
Get the name of a color from the internal table of hard-coded named colors. 
int av_parse_time(int64_t *timeval, const char *timestr, int duration)
Parse timestr and return in *time a corresponding number of microseconds. 
time_t av_timegm(struct tm *tm)
Convert the decomposed UTC time in tm to a time_t value.