30#include "libavutil/avconfig.h"
33#ifdef HAVE_AV_CONFIG_H
38# include "arm/bswap.h"
40# include "riscv/bswap.h"
42# include "x86/bswap.h"
47#define AV_BSWAP16C(x) (((x) << 8 & 0xff00) | ((x) >> 8 & 0x00ff))
48#define AV_BSWAP32C(x) (AV_BSWAP16C(x) << 16 | AV_BSWAP16C((x) >> 16))
49#define AV_BSWAP64C(x) (AV_BSWAP32C(x) << 32 | AV_BSWAP32C((x) >> 32))
51#define AV_BSWAPC(s, x) AV_BSWAP##s##C(x)
79#define av_be2ne16(x) (x)
80#define av_be2ne32(x) (x)
81#define av_be2ne64(x) (x)
82#define av_le2ne16(x) av_bswap16(x)
83#define av_le2ne32(x) av_bswap32(x)
84#define av_le2ne64(x) av_bswap64(x)
85#define AV_BE2NEC(s, x) (x)
86#define AV_LE2NEC(s, x) AV_BSWAPC(s, x)
88#define av_be2ne16(x) av_bswap16(x)
89#define av_be2ne32(x) av_bswap32(x)
90#define av_be2ne64(x) av_bswap64(x)
91#define av_le2ne16(x) (x)
92#define av_le2ne32(x) (x)
93#define av_le2ne64(x) (x)
94#define AV_BE2NEC(s, x) AV_BSWAPC(s, x)
95#define AV_LE2NEC(s, x) (x)
98#define AV_BE2NE16C(x) AV_BE2NEC(16, x)
99#define AV_BE2NE32C(x) AV_BE2NEC(32, x)
100#define AV_BE2NE64C(x) AV_BE2NEC(64, x)
101#define AV_LE2NE16C(x) AV_LE2NEC(16, x)
102#define AV_LE2NE32C(x) AV_LE2NEC(32, x)
103#define AV_LE2NE64C(x) AV_LE2NEC(64, x)
Macro definitions for various function/variable attributes.
static uint64_t av_const av_bswap64(uint64_t x)
static av_always_inline av_const uint16_t av_bswap16(uint16_t x)
static av_always_inline av_const uint32_t av_bswap32(uint32_t x)