26#ifndef AVUTIL_INTERNAL_H
27#define AVUTIL_INTERNAL_H
29#if !defined(DEBUG) && !defined(NDEBUG)
47#ifndef attribute_align_arg
48#if ARCH_X86_32 && defined(__GNUC__)
49# define attribute_align_arg __attribute__((force_align_arg_pointer))
51# define attribute_align_arg
55#if HAVE_MIPSFPU && HAVE_INLINE_ASM
59#if HAVE_PRAGMA_DEPRECATED
60# if defined(__ICL) || defined (__INTEL_COMPILER)
61# define FF_DISABLE_DEPRECATION_WARNINGS __pragma(warning(push)) __pragma(warning(disable:1478))
62# define FF_ENABLE_DEPRECATION_WARNINGS __pragma(warning(pop))
63# elif defined(_MSC_VER)
64# define FF_DISABLE_DEPRECATION_WARNINGS __pragma(warning(push)) __pragma(warning(disable:4996))
65# define FF_ENABLE_DEPRECATION_WARNINGS __pragma(warning(pop))
67# define FF_DISABLE_DEPRECATION_WARNINGS _Pragma("GCC diagnostic push") _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
68# define FF_ENABLE_DEPRECATION_WARNINGS _Pragma("GCC diagnostic pop")
71# define FF_DISABLE_DEPRECATION_WARNINGS
72# define FF_ENABLE_DEPRECATION_WARNINGS
80#define FF_ALLOC_TYPED_ARRAY(p, nelem) (p = av_malloc_array(nelem, sizeof(*p)))
81#define FF_ALLOCZ_TYPED_ARRAY(p, nelem) (p = av_calloc(nelem, sizeof(*p)))
83#define FF_PTR_ADD(ptr, off) ((off) ? (ptr) + (off) : (ptr))
88#define FF_FIELD_AT(type, off, obj) (*(type *)((char *)&(obj) + (off)))
95# define NULL_IF_CONFIG_SMALL(x) NULL
97# define NULL_IF_CONFIG_SMALL(x) x
122# define ff_dlog(ctx, ...) av_log(ctx, AV_LOG_DEBUG, __VA_ARGS__)
124# define ff_dlog(ctx, ...) do { if (0) av_log(ctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
128# define ff_tlog(ctx, ...) av_log(ctx, AV_LOG_TRACE, __VA_ARGS__)
130# define ff_tlog(ctx, ...) do { } while(0)
137#define SUINT32 int32_t
139#define SUINT unsigned
140#define SUINT32 uint32_t
148 while ((
unsigned)x > (
unsigned)
w) {
Macro definitions for various function/variable attributes.
#define av_printf_format(fmtpos, attrpos)
static av_always_inline av_const int avpriv_mirror(int x, int w)
void avpriv_report_missing_feature(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message about a missing feature.
MIPS optimization for some libm functions.
Utility Preprocessor macros.
#define avpriv_request_sample(...)