• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • Examples
  • File List
  • Globals

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 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 
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 22
00158 #define LIBAVUTIL_VERSION_MICRO  1
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_GET_BITS_PER_SAMPLE_FMT
00183 #define FF_API_GET_BITS_PER_SAMPLE_FMT (LIBAVUTIL_VERSION_MAJOR < 52)
00184 #endif
00185 #ifndef FF_API_FIND_OPT
00186 #define FF_API_FIND_OPT                 (LIBAVUTIL_VERSION_MAJOR < 52)
00187 #endif
00188 #ifndef FF_API_AV_FIFO_PEEK
00189 #define FF_API_AV_FIFO_PEEK             (LIBAVUTIL_VERSION_MAJOR < 52)
00190 #endif
00191 #ifndef FF_API_OLD_AVOPTIONS
00192 #define FF_API_OLD_AVOPTIONS            (LIBAVUTIL_VERSION_MAJOR < 52)
00193 #endif
00194 
00207 unsigned avutil_version(void);
00208 
00212 const char *avutil_configuration(void);
00213 
00217 const char *avutil_license(void);
00218 
00228 enum AVMediaType {
00229     AVMEDIA_TYPE_UNKNOWN = -1,  
00230     AVMEDIA_TYPE_VIDEO,
00231     AVMEDIA_TYPE_AUDIO,
00232     AVMEDIA_TYPE_DATA,          
00233     AVMEDIA_TYPE_SUBTITLE,
00234     AVMEDIA_TYPE_ATTACHMENT,    
00235     AVMEDIA_TYPE_NB
00236 };
00237 
00248 #define FF_LAMBDA_SHIFT 7
00249 #define FF_LAMBDA_SCALE (1<<FF_LAMBDA_SHIFT)
00250 #define FF_QP2LAMBDA 118 ///< factor to convert from H.263 QP to lambda
00251 #define FF_LAMBDA_MAX (256*128-1)
00252 
00253 #define FF_QUALITY_SCALE FF_LAMBDA_SCALE //FIXME maybe remove
00254 
00271 #define AV_NOPTS_VALUE          INT64_C(0x8000000000000000)
00272 
00277 #define AV_TIME_BASE            1000000
00278 
00283 #define AV_TIME_BASE_Q          (AVRational){1, AV_TIME_BASE}
00284 
00295 enum AVPictureType {
00296     AV_PICTURE_TYPE_I = 1, 
00297     AV_PICTURE_TYPE_P,     
00298     AV_PICTURE_TYPE_B,     
00299     AV_PICTURE_TYPE_S,     
00300     AV_PICTURE_TYPE_SI,    
00301     AV_PICTURE_TYPE_SP,    
00302     AV_PICTURE_TYPE_BI,    
00303 };
00304 
00312 char av_get_picture_type_char(enum AVPictureType pict_type);
00313 
00318 #include "common.h"
00319 #include "error.h"
00320 
00326 #endif /* AVUTIL_AVUTIL_H */
Generated on Thu Jan 24 2013 17:08:56 for Libav by doxygen 1.7.1