00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef AVUTIL_AVUTIL_H
00022 #define AVUTIL_AVUTIL_H
00023
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00119 #define AV_STRINGIFY(s) AV_TOSTRING(s)
00120 #define AV_TOSTRING(s) #s
00121
00122 #define AV_GLUE(a, b) a ## b
00123 #define AV_JOIN(a, b) AV_GLUE(a, b)
00124
00125 #define AV_PRAGMA(s) _Pragma(#s)
00126
00140 #define AV_VERSION_INT(a, b, c) (a<<16 | b<<8 | c)
00141 #define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c
00142 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
00143
00156 unsigned avutil_version(void);
00157
00161 const char *avutil_configuration(void);
00162
00166 const char *avutil_license(void);
00167
00177 enum AVMediaType {
00178 AVMEDIA_TYPE_UNKNOWN = -1,
00179 AVMEDIA_TYPE_VIDEO,
00180 AVMEDIA_TYPE_AUDIO,
00181 AVMEDIA_TYPE_DATA,
00182 AVMEDIA_TYPE_SUBTITLE,
00183 AVMEDIA_TYPE_ATTACHMENT,
00184 AVMEDIA_TYPE_NB
00185 };
00186
00191 const char *av_get_media_type_string(enum AVMediaType media_type);
00192
00203 #define FF_LAMBDA_SHIFT 7
00204 #define FF_LAMBDA_SCALE (1<<FF_LAMBDA_SHIFT)
00205 #define FF_QP2LAMBDA 118
00206 #define FF_LAMBDA_MAX (256*128-1)
00207
00208 #define FF_QUALITY_SCALE FF_LAMBDA_SCALE //FIXME maybe remove
00209
00226 #define AV_NOPTS_VALUE ((int64_t)UINT64_C(0x8000000000000000))
00227
00232 #define AV_TIME_BASE 1000000
00233
00238 #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE}
00239
00250 enum AVPictureType {
00251 AV_PICTURE_TYPE_NONE = 0,
00252 AV_PICTURE_TYPE_I,
00253 AV_PICTURE_TYPE_P,
00254 AV_PICTURE_TYPE_B,
00255 AV_PICTURE_TYPE_S,
00256 AV_PICTURE_TYPE_SI,
00257 AV_PICTURE_TYPE_SP,
00258 AV_PICTURE_TYPE_BI,
00259 };
00260
00268 char av_get_picture_type_char(enum AVPictureType pict_type);
00269
00274 #include "common.h"
00275 #include "error.h"
00276 #include "version.h"
00277 #include "mathematics.h"
00278 #include "rational.h"
00279 #include "intfloat_readwrite.h"
00280 #include "log.h"
00281 #include "pixfmt.h"
00282
00286 static inline void *av_x_if_null(const void *p, const void *x)
00287 {
00288 return (void *)(intptr_t)(p ? p : x);
00289 }
00290
00296 #endif