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
00030 #define AV_STRINGIFY(s) AV_TOSTRING(s)
00031 #define AV_TOSTRING(s) #s
00032
00033 #define AV_GLUE(a, b) a ## b
00034 #define AV_JOIN(a, b) AV_GLUE(a, b)
00035
00036 #define AV_PRAGMA(s) _Pragma(#s)
00037
00038 #define AV_VERSION_INT(a, b, c) (a<<16 | b<<8 | c)
00039 #define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c
00040 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
00041
00042 #define LIBAVUTIL_VERSION_MAJOR 50
00043 #define LIBAVUTIL_VERSION_MINOR 43
00044 #define LIBAVUTIL_VERSION_MICRO 0
00045
00046 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
00047 LIBAVUTIL_VERSION_MINOR, \
00048 LIBAVUTIL_VERSION_MICRO)
00049 #define LIBAVUTIL_VERSION AV_VERSION(LIBAVUTIL_VERSION_MAJOR, \
00050 LIBAVUTIL_VERSION_MINOR, \
00051 LIBAVUTIL_VERSION_MICRO)
00052 #define LIBAVUTIL_BUILD LIBAVUTIL_VERSION_INT
00053
00054 #define LIBAVUTIL_IDENT "Lavu" AV_STRINGIFY(LIBAVUTIL_VERSION)
00055
00060 #ifndef FF_API_OLD_EVAL_NAMES
00061 #define FF_API_OLD_EVAL_NAMES (LIBAVUTIL_VERSION_MAJOR < 52)
00062
00063 #endif
00064 #ifndef FF_API_GET_BITS_PER_SAMPLE_FMT
00065 #define FF_API_GET_BITS_PER_SAMPLE_FMT (LIBAVUTIL_VERSION_MAJOR < 52)
00066 #endif
00067 #ifndef FF_API_FIND_OPT
00068 #define FF_API_FIND_OPT (LIBAVUTIL_VERSION_MAJOR < 52)
00069 #endif
00070
00074 unsigned avutil_version(void);
00075
00079 const char *avutil_configuration(void);
00080
00084 const char *avutil_license(void);
00085
00086 enum AVMediaType {
00087 AVMEDIA_TYPE_UNKNOWN = -1,
00088 AVMEDIA_TYPE_VIDEO,
00089 AVMEDIA_TYPE_AUDIO,
00090 AVMEDIA_TYPE_DATA,
00091 AVMEDIA_TYPE_SUBTITLE,
00092 AVMEDIA_TYPE_ATTACHMENT,
00093 AVMEDIA_TYPE_NB
00094 };
00095
00096 #define FF_LAMBDA_SHIFT 7
00097 #define FF_LAMBDA_SCALE (1<<FF_LAMBDA_SHIFT)
00098 #define FF_QP2LAMBDA 118
00099 #define FF_LAMBDA_MAX (256*128-1)
00100
00101 #define FF_QUALITY_SCALE FF_LAMBDA_SCALE //FIXME maybe remove
00102
00103 #define AV_NOPTS_VALUE INT64_C(0x8000000000000000)
00104 #define AV_TIME_BASE 1000000
00105 #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE}
00106
00111 #ifndef FF_API_OLD_IMAGE_NAMES
00112 #define FF_API_OLD_IMAGE_NAMES (LIBAVUTIL_VERSION_MAJOR < 51)
00113 #endif
00114 enum AVPictureType {
00115 AV_PICTURE_TYPE_NONE = 0,
00116 AV_PICTURE_TYPE_I,
00117 AV_PICTURE_TYPE_P,
00118 AV_PICTURE_TYPE_B,
00119 AV_PICTURE_TYPE_S,
00120 AV_PICTURE_TYPE_SI,
00121 AV_PICTURE_TYPE_SP,
00122 AV_PICTURE_TYPE_BI,
00123 };
00124
00132 char av_get_picture_type_char(enum AVPictureType pict_type);
00133
00134 #include "common.h"
00135 #include "error.h"
00136 #include "mathematics.h"
00137 #include "rational.h"
00138 #include "intfloat_readwrite.h"
00139 #include "log.h"
00140 #include "pixfmt.h"
00141
00142 #endif