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
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
00155 #define LIBAVUTIL_VERSION_MAJOR 51
00156 #define LIBAVUTIL_VERSION_MINOR 32
00157 #define LIBAVUTIL_VERSION_MICRO 0
00158
00159 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
00160 LIBAVUTIL_VERSION_MINOR, \
00161 LIBAVUTIL_VERSION_MICRO)
00162 #define LIBAVUTIL_VERSION AV_VERSION(LIBAVUTIL_VERSION_MAJOR, \
00163 LIBAVUTIL_VERSION_MINOR, \
00164 LIBAVUTIL_VERSION_MICRO)
00165 #define LIBAVUTIL_BUILD LIBAVUTIL_VERSION_INT
00166
00167 #define LIBAVUTIL_IDENT "Lavu" AV_STRINGIFY(LIBAVUTIL_VERSION)
00168
00181 #ifndef FF_API_OLD_EVAL_NAMES
00182 #define FF_API_OLD_EVAL_NAMES (LIBAVUTIL_VERSION_MAJOR < 52)
00183 #endif
00184 #ifndef FF_API_GET_BITS_PER_SAMPLE_FMT
00185 #define FF_API_GET_BITS_PER_SAMPLE_FMT (LIBAVUTIL_VERSION_MAJOR < 52)
00186 #endif
00187 #ifndef FF_API_FIND_OPT
00188 #define FF_API_FIND_OPT (LIBAVUTIL_VERSION_MAJOR < 52)
00189 #endif
00190 #ifndef FF_API_AV_FIFO_PEEK
00191 #define FF_API_AV_FIFO_PEEK (LIBAVUTIL_VERSION_MAJOR < 52)
00192 #endif
00193 #ifndef FF_API_OLD_AVOPTIONS
00194 #define FF_API_OLD_AVOPTIONS (LIBAVUTIL_VERSION_MAJOR < 52)
00195 #endif
00196
00209 unsigned avutil_version(void);
00210
00214 const char *avutil_configuration(void);
00215
00219 const char *avutil_license(void);
00220
00230 enum AVMediaType {
00231 AVMEDIA_TYPE_UNKNOWN = -1,
00232 AVMEDIA_TYPE_VIDEO,
00233 AVMEDIA_TYPE_AUDIO,
00234 AVMEDIA_TYPE_DATA,
00235 AVMEDIA_TYPE_SUBTITLE,
00236 AVMEDIA_TYPE_ATTACHMENT,
00237 AVMEDIA_TYPE_NB
00238 };
00239
00244 const char *av_get_media_type_string(enum AVMediaType media_type);
00245
00256 #define FF_LAMBDA_SHIFT 7
00257 #define FF_LAMBDA_SCALE (1<<FF_LAMBDA_SHIFT)
00258 #define FF_QP2LAMBDA 118
00259 #define FF_LAMBDA_MAX (256*128-1)
00260
00261 #define FF_QUALITY_SCALE FF_LAMBDA_SCALE //FIXME maybe remove
00262
00279 #define AV_NOPTS_VALUE INT64_C(0x8000000000000000)
00280
00285 #define AV_TIME_BASE 1000000
00286
00291 #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE}
00292
00303 enum AVPictureType {
00304 AV_PICTURE_TYPE_NONE = 0,
00305 AV_PICTURE_TYPE_I,
00306 AV_PICTURE_TYPE_P,
00307 AV_PICTURE_TYPE_B,
00308 AV_PICTURE_TYPE_S,
00309 AV_PICTURE_TYPE_SI,
00310 AV_PICTURE_TYPE_SP,
00311 AV_PICTURE_TYPE_BI,
00312 };
00313
00321 char av_get_picture_type_char(enum AVPictureType pict_type);
00322
00327 #include "common.h"
00328 #include "error.h"
00329 #include "mathematics.h"
00330 #include "rational.h"
00331 #include "intfloat_readwrite.h"
00332 #include "log.h"
00333 #include "pixfmt.h"
00334
00338 static inline void *av_x_if_null(const void *p, const void *x)
00339 {
00340 return (void *)(intptr_t)(p ? p : x);
00341 }
00342
00348 #endif