#ifndef AVUTIL_INTERNAL_H
#define AVUTIL_INTERNAL_H
#if !defined(DEBUG) && !defined(NDEBUG)
#define NDEBUG
#endif
#include <limits.h>
#include <stdint.h>
#include <stddef.h>
#include <assert.h>
#include <stdio.h>
#include "config.h"
#include "attributes.h"
#include "libm.h"
#include "macros.h"
#ifndef attribute_align_arg
#if ARCH_X86_32 && AV_GCC_VERSION_AT_LEAST(4,2)
#define attribute_align_arg …
#else
#define attribute_align_arg
#endif
#endif
#if defined(_WIN32) && CONFIG_SHARED && !defined(BUILDING_avutil)
#define av_export_avutil …
#else
#define av_export_avutil
#endif
#if HAVE_PRAGMA_DEPRECATED
# if defined(__ICL) || defined (__INTEL_COMPILER)
#define FF_DISABLE_DEPRECATION_WARNINGS …
#define FF_ENABLE_DEPRECATION_WARNINGS …
# elif defined(_MSC_VER)
#define FF_DISABLE_DEPRECATION_WARNINGS …
#define FF_ENABLE_DEPRECATION_WARNINGS …
# else
#define FF_DISABLE_DEPRECATION_WARNINGS …
#define FF_ENABLE_DEPRECATION_WARNINGS …
# endif
#else
#define FF_DISABLE_DEPRECATION_WARNINGS
#define FF_ENABLE_DEPRECATION_WARNINGS
#endif
#define FF_ALLOC_TYPED_ARRAY(p, nelem) …
#define FF_ALLOCZ_TYPED_ARRAY(p, nelem) …
#define FF_PTR_ADD(ptr, off) …
#define FF_FIELD_AT(type, off, obj) …
#if CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL …
#else
#define NULL_IF_CONFIG_SMALL(x) …
#endif
#if defined(CHROMIUM_NO_LOGGING)
#define avpriv_report_missing_feature …
#else
void avpriv_report_missing_feature(void *avc,
const char *msg, ...) av_printf_format(2, 3);
#endif
#if defined(CHROMIUM_NO_LOGGING)
#define avpriv_request_sample …
#else
void avpriv_request_sample(void *avc,
const char *msg, ...) av_printf_format(2, 3);
#endif
#if HAVE_LIBC_MSVCRT
#include <crtversion.h>
#if defined(_VC_CRT_MAJOR_VERSION) && _VC_CRT_MAJOR_VERSION < 14
#pragma comment(linker, "/include:" EXTERN_PREFIX "avpriv_strtod")
#pragma comment(linker, "/include:" EXTERN_PREFIX "avpriv_snprintf")
#endif
#define PTRDIFF_SPECIFIER …
#define SIZE_SPECIFIER …
#else
#define PTRDIFF_SPECIFIER …
#define SIZE_SPECIFIER …
#endif
#ifdef DEBUG
#define ff_dlog …
#elif defined(CHROMIUM_NO_LOGGING)
#define ff_dlog …
#else
#define ff_dlog(ctx, ...) …
#endif
#ifdef TRACE
#define ff_tlog …
#else
#define ff_tlog(ctx, ...) …
#endif
#ifdef CHECKED
#define SUINT …
#define SUINT32 …
#else
#define SUINT …
#define SUINT32 …
#endif
static av_always_inline av_const int avpriv_mirror(int x, int w)
{ … }
#endif