00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef AVUTIL_PARSEUTILS_H
00020 #define AVUTIL_PARSEUTILS_H
00021
00022 #include <time.h>
00023
00024 #include "rational.h"
00025
00049 int av_parse_ratio(AVRational *q, const char *str, int max,
00050 int log_offset, void *log_ctx);
00051
00052 #define av_parse_ratio_quiet(rate, str, max) \
00053 av_parse_ratio(rate, str, max, AV_LOG_MAX_OFFSET, NULL)
00054
00066 int av_parse_video_size(int *width_ptr, int *height_ptr, const char *str);
00067
00077 int av_parse_video_rate(AVRational *rate, const char *str);
00078
00098 int av_parse_color(uint8_t *rgba_color, const char *color_string, int slen,
00099 void *log_ctx);
00100
00133 int av_parse_time(int64_t *timeval, const char *timestr, int duration);
00134
00158 char *av_small_strptime(const char *p, const char *fmt, struct tm *dt);
00159
00166 int av_find_info_tag(char *arg, int arg_size, const char *tag1, const char *info);
00167
00171 time_t av_timegm(struct tm *tm);
00172
00173 #endif