debian/tmp/usr/include/libavutil/avutil.h
Go to the documentation of this file.
00001 /*
00002  * copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at>
00003  *
00004  * This file is part of FFmpeg.
00005  *
00006  * FFmpeg 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  * FFmpeg 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 FFmpeg; 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 
00120 #define AV_STRINGIFY(s)         AV_TOSTRING(s)
00121 #define AV_TOSTRING(s) #s
00122 
00123 #define AV_GLUE(a, b) a ## b
00124 #define AV_JOIN(a, b) AV_GLUE(a, b)
00125 
00126 #define AV_PRAGMA(s) _Pragma(#s)
00127 
00141 #define AV_VERSION_INT(a, b, c) (a<<16 | b<<8 | c)
00142 #define AV_VERSION_DOT(a, b, c) a ##.## b ##.## c
00143 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
00144 
00156 #define LIBAVUTIL_VERSION_MAJOR 51
00157 #define LIBAVUTIL_VERSION_MINOR 35
00158 #define LIBAVUTIL_VERSION_MICRO 100
00159 
00160 #define LIBAVUTIL_VERSION_INT   AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \
00161                                                LIBAVUTIL_VERSION_MINOR, \
00162                                                LIBAVUTIL_VERSION_MICRO)
00163 #define LIBAVUTIL_VERSION       AV_VERSION(LIBAVUTIL_VERSION_MAJOR,     \
00164                                            LIBAVUTIL_VERSION_MINOR,     \
00165                                            LIBAVUTIL_VERSION_MICRO)
00166 #define LIBAVUTIL_BUILD         LIBAVUTIL_VERSION_INT
00167 
00168 #define LIBAVUTIL_IDENT         "Lavu" AV_STRINGIFY(LIBAVUTIL_VERSION)
00169 
00182 #ifndef FF_API_OLD_EVAL_NAMES
00183 #define FF_API_OLD_EVAL_NAMES (LIBAVUTIL_VERSION_MAJOR < 52)
00184 #endif
00185 #ifndef FF_API_GET_BITS_PER_SAMPLE_FMT
00186 #define FF_API_GET_BITS_PER_SAMPLE_FMT (LIBAVUTIL_VERSION_MAJOR < 52)
00187 #endif
00188 #ifndef FF_API_FIND_OPT
00189 #define FF_API_FIND_OPT                 (LIBAVUTIL_VERSION_MAJOR < 52)
00190 #endif
00191 #ifndef FF_API_AV_FIFO_PEEK
00192 #define FF_API_AV_FIFO_PEEK             (LIBAVUTIL_VERSION_MAJOR < 52)
00193 #endif
00194 #ifndef FF_API_OLD_AVOPTIONS
00195 #define FF_API_OLD_AVOPTIONS            (LIBAVUTIL_VERSION_MAJOR < 52)
00196 #endif
00197 
00210 unsigned avutil_version(void);
00211 
00215 const char *avutil_configuration(void);
00216 
00220 const char *avutil_license(void);
00221 
00231 enum AVMediaType {
00232     AVMEDIA_TYPE_UNKNOWN = -1,  
00233     AVMEDIA_TYPE_VIDEO,
00234     AVMEDIA_TYPE_AUDIO,
00235     AVMEDIA_TYPE_DATA,          
00236     AVMEDIA_TYPE_SUBTITLE,
00237     AVMEDIA_TYPE_ATTACHMENT,    
00238     AVMEDIA_TYPE_NB
00239 };
00240 
00245 const char *av_get_media_type_string(enum AVMediaType media_type);
00246 
00257 #define FF_LAMBDA_SHIFT 7
00258 #define FF_LAMBDA_SCALE (1<<FF_LAMBDA_SHIFT)
00259 #define FF_QP2LAMBDA 118 ///< factor to convert from H.263 QP to lambda
00260 #define FF_LAMBDA_MAX (256*128-1)
00261 
00262 #define FF_QUALITY_SCALE FF_LAMBDA_SCALE //FIXME maybe remove
00263 
00280 #define AV_NOPTS_VALUE          INT64_C(0x8000000000000000)
00281 
00286 #define AV_TIME_BASE            1000000
00287 
00292 #define AV_TIME_BASE_Q          (AVRational){1, AV_TIME_BASE}
00293 
00304 enum AVPictureType {
00305     AV_PICTURE_TYPE_NONE = 0, 
00306     AV_PICTURE_TYPE_I,     
00307     AV_PICTURE_TYPE_P,     
00308     AV_PICTURE_TYPE_B,     
00309     AV_PICTURE_TYPE_S,     
00310     AV_PICTURE_TYPE_SI,    
00311     AV_PICTURE_TYPE_SP,    
00312     AV_PICTURE_TYPE_BI,    
00313 };
00314 
00322 char av_get_picture_type_char(enum AVPictureType pict_type);
00323 
00328 #include "common.h"
00329 #include "error.h"
00330 #include "mathematics.h"
00331 #include "rational.h"
00332 #include "intfloat_readwrite.h"
00333 #include "log.h"
00334 #include "pixfmt.h"
00335 
00339 static inline void *av_x_if_null(const void *p, const void *x)
00340 {
00341     return (void *)(intptr_t)(p ? p : x);
00342 }
00343 
00349 #endif /* AVUTIL_AVUTIL_H */