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
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)
334#if FF_API_AV_FOPEN_UTF8
352#define AV_FOURCC_MAX_STRING_SIZE 32
354#define av_fourcc2str(fourcc) av_fourcc_make_string((char[AV_FOURCC_MAX_STRING_SIZE]){0}, fourcc)
#define attribute_deprecated
common internal and external API header
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.
unsigned av_int_list_length_for_size(unsigned elsize, const void *list, uint64_t term) av_pure
Compute the length of an integer list.
char * av_fourcc_make_string(char *buf, uint32_t fourcc)
Fill the provided buffer with a string containing a FourCC (four-character code) representation.
static void * av_x_if_null(const void *p, const void *x)
Return x default pointer in case p is NULL.
AVRational av_get_time_base_q(void)
Return the fractional representation of the internal time base.
attribute_deprecated FILE * av_fopen_utf8(const char *path, const char *mode)
Open a file using a UTF-8 filename.
@ AVMEDIA_TYPE_ATTACHMENT
Opaque data information usually sparse.
@ AVMEDIA_TYPE_DATA
Opaque data information usually continuous.
@ AVMEDIA_TYPE_UNKNOWN
Usually treated as AVMEDIA_TYPE_DATA.
char av_get_picture_type_char(enum AVPictureType pict_type)
Return a single letter to describe the given picture type pict_type.
@ AV_PICTURE_TYPE_I
Intra.
@ AV_PICTURE_TYPE_NONE
Undefined.
@ AV_PICTURE_TYPE_BI
BI type.
@ AV_PICTURE_TYPE_SP
Switching Predicted.
@ AV_PICTURE_TYPE_P
Predicted.
@ AV_PICTURE_TYPE_SI
Switching Intra.
@ AV_PICTURE_TYPE_S
S(GMC)-VOP MPEG-4.
@ AV_PICTURE_TYPE_B
Bi-dir predicted.
const char * av_version_info(void)
Return an informative version string.
const char * avutil_license(void)
Return the libavutil license.
const char * avutil_configuration(void)
Return the libavutil build-time configuration.
unsigned avutil_version(void)
Return the LIBAVUTIL_VERSION_INT constant.
Utility Preprocessor macros.
Utilties for rational number calculation.
Rational number (pair of numerator and denominator).