21 #ifndef AVUTIL_AVUTIL_H
22 #define AVUTIL_AVUTIL_H
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)
230 #define FF_QUALITY_SCALE FF_LAMBDA_SCALE //FIXME maybe remove
248 #define AV_NOPTS_VALUE ((int64_t)UINT64_C(0x8000000000000000))
254 #define AV_TIME_BASE 1000000
260 #define AV_TIME_BASE_Q (AVRational){1, AV_TIME_BASE}
310 return (
void *)(intptr_t)(p ? p : x);
322 const void *list, uint64_t term)
av_pure;
331 #define av_int_list_length(list, term) \
332 av_int_list_length_for_size(sizeof(*(list)), list, term)
346 #define AV_FOURCC_MAX_STRING_SIZE 32
348 #define av_fourcc2str(fourcc) av_fourcc_make_string((char[AV_FOURCC_MAX_STRING_SIZE]){0}, fourcc)
const char * avutil_configuration(void)
Return the libavutil build-time configuration.
FILE * av_fopen_utf8(const char *path, const char *mode)
Open a file using a UTF-8 filename.
Opaque data information usually continuous.
char av_get_picture_type_char(enum AVPictureType pict_type)
Return a single letter to describe the given picture type pict_type.
static void * av_x_if_null(const void *p, const void *x)
Return x default pointer in case p is NULL.
Utility Preprocessor macros.
unsigned avutil_version(void)
Return the LIBAVUTIL_VERSION_INT constant.
unsigned av_int_list_length_for_size(unsigned elsize, const void *list, uint64_t term) av_pure
Compute the length of an integer list.
Libavutil version macros.
const char * av_version_info(void)
Return an informative version string.
Usually treated as AVMEDIA_TYPE_DATA.
Opaque data information usually sparse.
char * av_fourcc_make_string(char *buf, uint32_t fourcc)
Fill the provided buffer with a string containing a FourCC (four-character code) representation.
const char * avutil_license(void)
Return the libavutil license.
Rational number (pair of numerator and denominator).
AVRational av_get_time_base_q(void)
Return the fractional representation of the internal time base.
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.
common internal and external API header
Utilties for rational number calculation.
mode
Use these values in ebur128_init (or'ed).