World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
parseutils.h
См. документацию.
1 /*
2  * This file is part of FFmpeg.
3  *
4  * FFmpeg is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * FFmpeg is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with FFmpeg; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17  */
18 
19 #ifndef AVUTIL_PARSEUTILS_H
20 #define AVUTIL_PARSEUTILS_H
21 
22 #include <time.h>
23 
24 #include "rational.h"
25 
49 int av_parse_ratio(AVRational *q, const char *str, int max,
50  int log_offset, void *log_ctx);
51 
52 #define av_parse_ratio_quiet(rate, str, max) \
53  av_parse_ratio(rate, str, max, AV_LOG_MAX_OFFSET, NULL)
54 
66 int av_parse_video_size(int *width_ptr, int *height_ptr, const char *str);
67 
77 int av_parse_video_rate(AVRational *rate, const char *str);
78 
98 int av_parse_color(uint8_t *rgba_color, const char *color_string, int slen,
99  void *log_ctx);
100 
112 const char *av_get_known_color_name(int color_idx, const uint8_t **rgb);
113 
146 int av_parse_time(int64_t *timeval, const char *timestr, int duration);
147 
154 int av_find_info_tag(char *arg, int arg_size, const char *tag1, const char *info);
155 
186 char *av_small_strptime(const char *p, const char *fmt, struct tm *dt);
187 
191 time_t av_timegm(struct tm *tm);
192 
193 #endif /* AVUTIL_PARSEUTILS_H */
av_get_known_color_name
const char * av_get_known_color_name(int color_idx, const uint8_t **rgb)
av_parse_video_size
int av_parse_video_size(int *width_ptr, int *height_ptr, const char *str)
rational.h
q
GLdouble GLdouble GLdouble GLdouble q
Definition: SDL_opengl.h:2087
av_parse_color
int av_parse_color(uint8_t *rgba_color, const char *color_string, int slen, void *log_ctx)
av_timegm
time_t av_timegm(struct tm *tm)
int64_t
__int64 int64_t
Definition: alext.h:31
av_parse_time
int av_parse_time(int64_t *timeval, const char *timestr, int duration)
p
GLfloat GLfloat p
Definition: SDL_opengl_glext.h:11093
av_find_info_tag
int av_find_info_tag(char *arg, int arg_size, const char *tag1, const char *info)
av_parse_ratio
int av_parse_ratio(AVRational *q, const char *str, int max, int log_offset, void *log_ctx)
uint8_t
unsigned __int8 uint8_t
Definition: SDL_config.h:35
AVRational
Definition: rational.h:58
av_small_strptime
char * av_small_strptime(const char *p, const char *fmt, struct tm *dt)
av_parse_video_rate
int av_parse_video_rate(AVRational *rate, const char *str)