World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
avutil.h
См. документацию.
1 /*
2  * copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at>
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef AVUTIL_AVUTIL_H
22 #define AVUTIL_AVUTIL_H
23 
171 unsigned avutil_version(void);
172 
178 const char *av_version_info(void);
179 
183 const char *avutil_configuration(void);
184 
188 const char *avutil_license(void);
189 
207 };
208 
213 const char *av_get_media_type_string(enum AVMediaType media_type);
214 
225 #define FF_LAMBDA_SHIFT 7
226 #define FF_LAMBDA_SCALE (1<<FF_LAMBDA_SHIFT)
227 #define FF_QP2LAMBDA 118
228 #define FF_LAMBDA_MAX (256*128-1)
229 
230 #define FF_QUALITY_SCALE FF_LAMBDA_SCALE //FIXME maybe remove
231 
248 #define AV_NOPTS_VALUE ((int64_t)UINT64_C(0x8000000000000000))
249 
254 #define AV_TIME_BASE 1000000
255 
260 #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE}
261 
281 };
282 
290 char av_get_picture_type_char(enum AVPictureType pict_type);
291 
296 #include "common.h"
297 #include "error.h"
298 #include "rational.h"
299 #include "version.h"
300 #include "macros.h"
301 #include "mathematics.h"
302 #include "log.h"
303 #include "pixfmt.h"
304 
308 static inline void *av_x_if_null(const void *p, const void *x)
309 {
310  return (void *)(intptr_t)(p ? p : x);
311 }
312 
321 unsigned av_int_list_length_for_size(unsigned elsize,
322  const void *list, uint64_t term) av_pure;
323 
331 #define av_int_list_length(list, term) \
332  av_int_list_length_for_size(sizeof(*(list)), list, term)
333 
339 FILE *av_fopen_utf8(const char *path, const char *mode);
340 
345 
346 #define AV_FOURCC_MAX_STRING_SIZE 32
347 
348 #define av_fourcc2str(fourcc) av_fourcc_make_string((char[AV_FOURCC_MAX_STRING_SIZE]){0}, fourcc)
349 
359 
365 #endif /* AVUTIL_AVUTIL_H */
AVMEDIA_TYPE_SUBTITLE
@ AVMEDIA_TYPE_SUBTITLE
Definition: avutil.h:204
AVPictureType
AVPictureType
Definition: avutil.h:272
rational.h
mode
EGLSyncKHR EGLenum mode
Definition: SDL_egl.h:1056
mathematics.h
av_version_info
const char * av_version_info(void)
macros.h
path
GLsizei const GLchar *const * path
Definition: SDL_opengl_glext.h:3733
uint64_t
unsigned __int64 uint64_t
Definition: alext.h:32
fourcc
EGLImageKHR int * fourcc
Definition: SDL_egl.h:1506
avutil_version
unsigned avutil_version(void)
av_fopen_utf8
FILE * av_fopen_utf8(const char *path, const char *mode)
AVMEDIA_TYPE_AUDIO
@ AVMEDIA_TYPE_AUDIO
Definition: avutil.h:202
AVMEDIA_TYPE_NB
@ AVMEDIA_TYPE_NB
Definition: avutil.h:206
buf
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: SDL_opengl_glext.h:2483
av_int_list_length_for_size
unsigned av_int_list_length_for_size(unsigned elsize, const void *list, uint64_t term) av_pure
AVMEDIA_TYPE_DATA
@ AVMEDIA_TYPE_DATA
Opaque data information usually continuous.
Definition: avutil.h:203
p
GLfloat GLfloat p
Definition: SDL_opengl_glext.h:11093
x
EGLSurface EGLint x
Definition: SDL_egl.h:1596
avutil_configuration
const char * avutil_configuration(void)
AV_PICTURE_TYPE_SI
@ AV_PICTURE_TYPE_SI
Switching Intra.
Definition: avutil.h:278
AV_PICTURE_TYPE_I
@ AV_PICTURE_TYPE_I
Intra.
Definition: avutil.h:274
AV_PICTURE_TYPE_SP
@ AV_PICTURE_TYPE_SP
Switching Predicted.
Definition: avutil.h:279
error.h
AVMediaType
AVMediaType
Definition: avutil.h:199
av_get_time_base_q
AVRational av_get_time_base_q(void)
av_fourcc_make_string
char * av_fourcc_make_string(char *buf, uint32_t fourcc)
AVMEDIA_TYPE_UNKNOWN
@ AVMEDIA_TYPE_UNKNOWN
Usually treated as AVMEDIA_TYPE_DATA.
Definition: avutil.h:200
AV_PICTURE_TYPE_NONE
@ AV_PICTURE_TYPE_NONE
Undefined.
Definition: avutil.h:273
avutil_license
const char * avutil_license(void)
av_get_picture_type_char
char av_get_picture_type_char(enum AVPictureType pict_type)
common.h
AVMEDIA_TYPE_ATTACHMENT
@ AVMEDIA_TYPE_ATTACHMENT
Opaque data information usually sparse.
Definition: avutil.h:205
pixfmt.h
av_get_media_type_string
const char * av_get_media_type_string(enum AVMediaType media_type)
AV_PICTURE_TYPE_B
@ AV_PICTURE_TYPE_B
Bi-dir predicted.
Definition: avutil.h:276
AV_PICTURE_TYPE_P
@ AV_PICTURE_TYPE_P
Predicted.
Definition: avutil.h:275
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201
AVRational
Definition: rational.h:58
AV_PICTURE_TYPE_BI
@ AV_PICTURE_TYPE_BI
BI type.
Definition: avutil.h:280
uint32_t
unsigned __int32 uint32_t
Definition: SDL_config.h:39
AV_PICTURE_TYPE_S
@ AV_PICTURE_TYPE_S
S(GMC)-VOP MPEG-4.
Definition: avutil.h:277
av_x_if_null
static void * av_x_if_null(const void *p, const void *x)
Definition: avutil.h:308