FFmpeg
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 
171 unsigned avutil_version(void);
172 
178 const char *av_version_info(void);
179 
183 const char *avutil_configuration(void);
184 
188 const char *avutil_license(void);
189 
201  AVMEDIA_TYPE_VIDEO,
202  AVMEDIA_TYPE_AUDIO,
204  AVMEDIA_TYPE_SUBTITLE,
206  AVMEDIA_TYPE_NB
207 };
208 
213 const char *av_get_media_type_string(enum AVMediaType media_type);
214 
225 #define FF_LAMBDA_SHIFT 7
226 #define FF_LAMBDA_SCALE (1<<FF_LAMBDA_SHIFT)
227 #define FF_QP2LAMBDA 118
228 #define FF_LAMBDA_MAX (256*128-1)
229 
230 #define FF_QUALITY_SCALE FF_LAMBDA_SCALE //FIXME maybe remove
231 
248 #define AV_NOPTS_VALUE ((int64_t)UINT64_C(0x8000000000000000))
249 
254 #define AV_TIME_BASE 1000000
255 
260 #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE}
261 
281 };
282 
290 char av_get_picture_type_char(enum AVPictureType pict_type);
291 
296 #include "common.h"
297 #include "error.h"
298 #include "rational.h"
299 #include "version.h"
300 #include "macros.h"
301 #include "mathematics.h"
302 #include "log.h"
303 #include "pixfmt.h"
304 
308 static inline void *av_x_if_null(const void *p, const void *x)
309 {
310  return (void *)(intptr_t)(p ? p : x);
311 }
312 
321 unsigned av_int_list_length_for_size(unsigned elsize,
322  const void *list, uint64_t term) av_pure;
323 
331 #define av_int_list_length(list, term) \
332  av_int_list_length_for_size(sizeof(*(list)), list, term)
333 
339 FILE *av_fopen_utf8(const char *path, const char *mode);
340 
345 
346 #define AV_FOURCC_MAX_STRING_SIZE 32
347 
348 #define av_fourcc2str(fourcc) av_fourcc_make_string((char[AV_FOURCC_MAX_STRING_SIZE]){0}, fourcc)
349 
358 char *av_fourcc_make_string(char *buf, uint32_t fourcc);
359 
365 #endif /* AVUTIL_AVUTIL_H */
BI type.
Definition: avutil.h:280
S(GMC)-VOP MPEG-4.
Definition: avutil.h:277
const char * avutil_configuration(void)
Return the libavutil build-time configuration.
Definition: utils.c:65
FILE * av_fopen_utf8(const char *path, const char *mode)
Open a file using a UTF-8 filename.
Definition: file_open.c:158
Undefined.
Definition: avutil.h:273
Switching Intra.
Definition: avutil.h:278
Opaque data information usually continuous.
Definition: avutil.h:203
char av_get_picture_type_char(enum AVPictureType pict_type)
Return a single letter to describe the given picture type pict_type.
Definition: utils.c:88
Utility Preprocessor macros.
unsigned avutil_version(void)
Return the LIBAVUTIL_VERSION_INT constant.
Definition: utils.c:38
error code definitions
unsigned av_int_list_length_for_size(unsigned elsize, const void *list, uint64_t term) av_pure
Compute the length of an integer list.
Definition: utils.c:102
Libavutil version macros.
Intra.
Definition: avutil.h:274
const char * av_version_info(void)
Return an informative version string.
Definition: utils.c:33
Usually treated as AVMEDIA_TYPE_DATA.
Definition: avutil.h:200
Opaque data information usually sparse.
Definition: avutil.h:205
AVFifoBuffer ** buf
single buffer for interleaved, per-channel buffers for planar
Definition: audio_fifo.c:35
char * av_fourcc_make_string(char *buf, uint32_t fourcc)
Fill the provided buffer with a string containing a FourCC (four-character code) representation.
Definition: utils.c:121
const char * avutil_license(void)
Return the libavutil license.
Definition: utils.c:70
Switching Predicted.
Definition: avutil.h:279
Rational number (pair of numerator and denominator).
Definition: rational.h:58
AVMediaType
Definition: avutil.h:199
AVPictureType
Definition: avutil.h:272
AVRational av_get_time_base_q(void)
Return the fractional representation of the internal time base.
Definition: utils.c:144
const char * av_get_media_type_string(enum AVMediaType media_type)
Return a string describing the media_type enum, NULL if media_type is unknown.
Definition: utils.c:76
common internal and external API header
Utilties for rational number calculation.
Bi-dir predicted.
Definition: avutil.h:276
pixel format definitions
mode
Use these values in ebur128_init (or&#39;ed).
Definition: ebur128.h:83
Predicted.
Definition: avutil.h:275