FFmpeg  1.2.4
avutil.h
Go to the documentation of this file.
1 /*
2  * copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at>
3  *
4  * This file is part of FFmpeg.
5  *
6  * FFmpeg is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * FFmpeg is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with FFmpeg; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19  */
20 
21 #ifndef AVUTIL_AVUTIL_H
22 #define AVUTIL_AVUTIL_H
23 
120 unsigned avutil_version(void);
121 
125 const char *avutil_configuration(void);
126 
130 const char *avutil_license(void);
131 
149 };
150 
155 const char *av_get_media_type_string(enum AVMediaType media_type);
156 
167 #define FF_LAMBDA_SHIFT 7
168 #define FF_LAMBDA_SCALE (1<<FF_LAMBDA_SHIFT)
169 #define FF_QP2LAMBDA 118
170 #define FF_LAMBDA_MAX (256*128-1)
171 
172 #define FF_QUALITY_SCALE FF_LAMBDA_SCALE //FIXME maybe remove
173 
190 #define AV_NOPTS_VALUE ((int64_t)UINT64_C(0x8000000000000000))
191 
196 #define AV_TIME_BASE 1000000
197 
202 #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE}
203 
223 };
224 
232 char av_get_picture_type_char(enum AVPictureType pict_type);
233 
238 #include "common.h"
239 #include "error.h"
240 #include "version.h"
241 #include "mathematics.h"
242 #include "rational.h"
243 #include "intfloat_readwrite.h"
244 #include "log.h"
245 #include "pixfmt.h"
246 
250 static inline void *av_x_if_null(const void *p, const void *x)
251 {
252  return (void *)(intptr_t)(p ? p : x);
253 }
254 
260 #endif /* AVUTIL_AVUTIL_H */