libavutil/bswap.h File Reference

byte swapping routines More...

#include <stdint.h>
#include "config.h"
#include "attributes.h"

Go to the source code of this file.

Defines

#define AV_BSWAP16C(x)   (((x) << 8 & 0xff00) | ((x) >> 8 & 0x00ff))
#define AV_BSWAP32C(x)   (AV_BSWAP16C(x) << 16 | AV_BSWAP16C((x) >> 16))
#define AV_BSWAP64C(x)   (AV_BSWAP32C(x) << 32 | AV_BSWAP32C((x) >> 32))
#define AV_BSWAPC(s, x)   AV_BSWAP##s##C(x)
#define be2me_16(x)   bswap_16(x)
#define be2me_32(x)   bswap_32(x)
#define be2me_64(x)   bswap_64(x)
#define le2me_16(x)   (x)
#define le2me_32(x)   (x)
#define le2me_64(x)   (x)
#define AV_BE2MEC(s, x)   AV_BSWAPC(s, x)
#define AV_LE2MEC(s, x)   (x)
#define AV_BE2ME16C(x)   AV_BE2MEC(16, x)
#define AV_BE2ME32C(x)   AV_BE2MEC(32, x)
#define AV_BE2ME64C(x)   AV_BE2MEC(64, x)
#define AV_LE2ME16C(x)   AV_LE2MEC(16, x)
#define AV_LE2ME32C(x)   AV_LE2MEC(32, x)
#define AV_LE2ME64C(x)   AV_LE2MEC(64, x)

Functions

static av_always_inline
av_const uint16_t 
bswap_16 (uint16_t x)
static av_always_inline
av_const uint32_t 
bswap_32 (uint32_t x)
static uint64_t av_const bswap_64 (uint64_t x)


Detailed Description

byte swapping routines

Definition in file bswap.h.


Define Documentation

#define AV_BE2ME16C (  )     AV_BE2MEC(16, x)

Definition at line 111 of file bswap.h.

#define AV_BE2ME32C (  )     AV_BE2MEC(32, x)

Definition at line 112 of file bswap.h.

#define AV_BE2ME64C (  )     AV_BE2MEC(64, x)

Definition at line 113 of file bswap.h.

#define AV_BE2MEC ( s,
 )     AV_BSWAPC(s, x)

Definition at line 107 of file bswap.h.

#define AV_BSWAP16C (  )     (((x) << 8 & 0xff00) | ((x) >> 8 & 0x00ff))

Definition at line 45 of file bswap.h.

#define AV_BSWAP32C (  )     (AV_BSWAP16C(x) << 16 | AV_BSWAP16C((x) >> 16))

Definition at line 46 of file bswap.h.

#define AV_BSWAP64C (  )     (AV_BSWAP32C(x) << 32 | AV_BSWAP32C((x) >> 32))

Definition at line 47 of file bswap.h.

#define AV_BSWAPC ( s,
 )     AV_BSWAP##s##C(x)

Definition at line 49 of file bswap.h.

#define AV_LE2ME16C (  )     AV_LE2MEC(16, x)

Definition at line 114 of file bswap.h.

#define AV_LE2ME32C (  )     AV_LE2MEC(32, x)

Definition at line 115 of file bswap.h.

#define AV_LE2ME64C (  )     AV_LE2MEC(64, x)

Definition at line 116 of file bswap.h.

#define AV_LE2MEC ( s,
 )     (x)

Definition at line 108 of file bswap.h.

#define be2me_16 (  )     bswap_16(x)

Definition at line 101 of file bswap.h.

Referenced by decode_frame(), and pnm_decode_frame().

#define be2me_32 (  )     bswap_32(x)

Definition at line 102 of file bswap.h.

Referenced by decode_bytes(), decode_frame(), mjpeg_decode_app(), put_bits(), and sha1_transform().

#define be2me_64 (  )     bswap_64(x)

Definition at line 103 of file bswap.h.

Referenced by aac_sync(), ac3_sync(), av_des_crypt(), av_sha_final(), and get_packetheader().

#define le2me_16 (  )     (x)

Definition at line 104 of file bswap.h.

Referenced by bmp_decode_frame(), decode_p_block(), iv_Decode_Chunk(), sol_probe(), and update_md5_sum().

#define le2me_32 (  )     (x)

#define le2me_64 (  )     (x)

Definition at line 106 of file bswap.h.

Referenced by av_md5_final(), and ff_asfcrypt_dec().


Function Documentation

static av_always_inline av_const uint16_t bswap_16 ( uint16_t  x  )  [static]

Definition at line 52 of file bswap.h.

static av_always_inline av_const uint32_t bswap_32 ( uint32_t  x  )  [static]

Definition at line 60 of file bswap.h.

static uint64_t av_const bswap_64 ( uint64_t  x  )  [inline, static]

Definition at line 69 of file bswap.h.


Generated on Fri Oct 26 02:36:55 2012 for FFmpeg by  doxygen 1.5.8