libavutil/intreadwrite.h File Reference

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

Go to the source code of this file.

Defines

#define AV_RN(s, p)   AV_RL##s(p)
#define AV_WN(s, p, v)   AV_WL##s(p, v)
#define AV_RB(s, p)   bswap_##s(AV_RN(s, p))
#define AV_WB(s, p, v)   AV_WN(s, p, bswap_##s(v))
#define AV_RL(s, p)   AV_RN(s, p)
#define AV_WL(s, p, v)   AV_WN(s, p, v)
#define AV_RB8(x)   (((const uint8_t*)(x))[0])
#define AV_WB8(p, d)   do { ((uint8_t*)(p))[0] = (d); } while(0)
#define AV_RL8(x)   AV_RB8(x)
#define AV_WL8(p, d)   AV_WB8(p, d)
#define AV_RB24(x)
#define AV_WB24(p, d)
#define AV_RL24(x)
#define AV_WL24(p, d)

Define Documentation

#define AV_RB ( s,
 )     bswap_##s(AV_RN(s, p))

Definition at line 194 of file intreadwrite.h.

#define AV_RB24 (  ) 
#define AV_RB8 (  )     (((const uint8_t*)(x))[0])

Definition at line 200 of file intreadwrite.h.

Referenced by mov_read_stsd().

#define AV_RL ( s,
 )     AV_RN(s, p)

Definition at line 196 of file intreadwrite.h.

#define AV_RL24 (  ) 
Value:
((((const uint8_t*)(x))[2] << 16) | \
                     (((const uint8_t*)(x))[1] <<  8) | \
                      ((const uint8_t*)(x))[0])

Definition at line 256 of file intreadwrite.h.

Referenced by cinvideo_decode_frame(), and mxf_write_d10_audio_packet().

#define AV_RL8 (  )     AV_RB8(x)

Definition at line 203 of file intreadwrite.h.

Referenced by txd_decode_frame().

#define AV_RN ( s,
 )     AV_RL##s(p)

Definition at line 158 of file intreadwrite.h.

#define AV_WB ( s,
p,
 )     AV_WN(s, p, bswap_##s(v))

Definition at line 195 of file intreadwrite.h.

#define AV_WB24 ( p,
 ) 
Value:
do { \
                    ((uint8_t*)(p))[2] = (d); \
                    ((uint8_t*)(p))[1] = (d)>>8; \
                    ((uint8_t*)(p))[0] = (d)>>16; } while(0)

Definition at line 251 of file intreadwrite.h.

Referenced by decode_frame(), encode_frame(), ffm_write_packet(), and find_expected_header().

#define AV_WB8 ( p,
 )     do { ((uint8_t*)(p))[0] = (d); } while(0)

Definition at line 201 of file intreadwrite.h.

Referenced by alac_encode_init().

#define AV_WL ( s,
p,
 )     AV_WN(s, p, v)

Definition at line 197 of file intreadwrite.h.

#define AV_WL24 ( p,
 ) 
Value:
do { \
                    ((uint8_t*)(p))[0] = (d); \
                    ((uint8_t*)(p))[1] = (d)>>8; \
                    ((uint8_t*)(p))[2] = (d)>>16; } while(0)

Definition at line 259 of file intreadwrite.h.

#define AV_WL8 ( p,
 )     AV_WB8(p, d)

Definition at line 204 of file intreadwrite.h.

#define AV_WN ( s,
p,
 )     AV_WL##s(p, v)

Definition at line 159 of file intreadwrite.h.


Generated by  doxygen 1.6.2