Libav 0.7.1
|
00001 /* 00002 * copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at> 00003 * 00004 * This file is part of Libav. 00005 * 00006 * Libav is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * Libav is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with Libav; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 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 51 00043 #define LIBAVUTIL_VERSION_MINOR 7 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_GET_BITS_PER_SAMPLE_FMT 00061 #define FF_API_GET_BITS_PER_SAMPLE_FMT (LIBAVUTIL_VERSION_MAJOR < 52) 00062 #endif 00063 #ifndef FF_API_FIND_OPT 00064 #define FF_API_FIND_OPT (LIBAVUTIL_VERSION_MAJOR < 52) 00065 #endif 00066 00070 unsigned avutil_version(void); 00071 00075 const char *avutil_configuration(void); 00076 00080 const char *avutil_license(void); 00081 00082 enum AVMediaType { 00083 AVMEDIA_TYPE_UNKNOWN = -1, 00084 AVMEDIA_TYPE_VIDEO, 00085 AVMEDIA_TYPE_AUDIO, 00086 AVMEDIA_TYPE_DATA, 00087 AVMEDIA_TYPE_SUBTITLE, 00088 AVMEDIA_TYPE_ATTACHMENT, 00089 AVMEDIA_TYPE_NB 00090 }; 00091 00092 #define FF_LAMBDA_SHIFT 7 00093 #define FF_LAMBDA_SCALE (1<<FF_LAMBDA_SHIFT) 00094 #define FF_QP2LAMBDA 118 ///< factor to convert from H.263 QP to lambda 00095 #define FF_LAMBDA_MAX (256*128-1) 00096 00097 #define FF_QUALITY_SCALE FF_LAMBDA_SCALE //FIXME maybe remove 00098 00099 #define AV_NOPTS_VALUE INT64_C(0x8000000000000000) 00100 #define AV_TIME_BASE 1000000 00101 #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE} 00102 00103 enum AVPictureType { 00104 AV_PICTURE_TYPE_I = 1, 00105 AV_PICTURE_TYPE_P, 00106 AV_PICTURE_TYPE_B, 00107 AV_PICTURE_TYPE_S, 00108 AV_PICTURE_TYPE_SI, 00109 AV_PICTURE_TYPE_SP, 00110 AV_PICTURE_TYPE_BI, 00111 }; 00112 00120 char av_get_picture_type_char(enum AVPictureType pict_type); 00121 00122 #include "common.h" 00123 #include "error.h" 00124 #include "mathematics.h" 00125 #include "rational.h" 00126 #include "intfloat_readwrite.h" 00127 #include "log.h" 00128 #include "pixfmt.h" 00129 00130 #endif /* AVUTIL_AVUTIL_H */