libavutil/intreadwrite.h File Reference

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

Go to the source code of this file.

Defines

#define AV_RN16(a)   (*((const uint16_t*)(a)))
#define AV_RN32(a)   (*((const uint32_t*)(a)))
#define AV_RN64(a)   (*((const uint64_t*)(a)))
#define AV_WN16(a, b)   *((uint16_t*)(a)) = (b)
#define AV_WN32(a, b)   *((uint32_t*)(a)) = (b)
#define AV_WN64(a, b)   *((uint64_t*)(a)) = (b)
#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_RB16(x)   ((((const uint8_t*)(x))[0] << 8) | ((const uint8_t*)(x))[1])
#define AV_WB16(p, d)
#define AV_RL16(x)
#define AV_WL16(p, d)
#define AV_RB32(x)
#define AV_WB32(p, d)
#define AV_RL32(x)
#define AV_WL32(p, d)
#define AV_RB64(x)
#define AV_WB64(p, d)
#define AV_RL64(x)
#define AV_WL64(p, d)
#define AV_RB24(x)
#define AV_WB24(p, d)
#define AV_RL24(x)
#define AV_WL24(p, d)


Define Documentation

#define AV_RB16 (  )     ((((const uint8_t*)(x))[0] << 8) | ((const uint8_t*)(x))[1])

#define AV_RB24 (  ) 

#define AV_RB32 (  ) 

#define AV_RB64 (  ) 

Value:

(((uint64_t)((const uint8_t*)(x))[0] << 56) | \
                     ((uint64_t)((const uint8_t*)(x))[1] << 48) | \
                     ((uint64_t)((const uint8_t*)(x))[2] << 40) | \
                     ((uint64_t)((const uint8_t*)(x))[3] << 32) | \
                     ((uint64_t)((const uint8_t*)(x))[4] << 24) | \
                     ((uint64_t)((const uint8_t*)(x))[5] << 16) | \
                     ((uint64_t)((const uint8_t*)(x))[6] <<  8) | \
                      (uint64_t)((const uint8_t*)(x))[7])

Definition at line 139 of file intreadwrite.h.

Referenced by av_des_init(), ffm_read_packet(), and rtcp_parse_packet().

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

Definition at line 63 of file intreadwrite.h.

Referenced by mov_read_stsd().

#define AV_RL16 (  ) 

#define AV_RL24 (  ) 

Value:

((((const uint8_t*)(x))[2] << 16) | \
                     (((const uint8_t*)(x))[1] <<  8) | \
                      ((const uint8_t*)(x))[0])

Definition at line 184 of file intreadwrite.h.

Referenced by cinvideo_decode_frame(), and mxf_write_d10_audio_packet().

#define AV_RL32 (  ) 

Value:

((((const uint8_t*)(x))[3] << 24) | \
                    (((const uint8_t*)(x))[2] << 16) | \
                    (((const uint8_t*)(x))[1] <<  8) | \
                     ((const uint8_t*)(x))[0])

Definition at line 129 of file intreadwrite.h.

Referenced by aasc_decode_frame(), adpcm_decode_frame(), adpcm_decode_init(), av_lfg_init(), avi_read_header(), bfi_probe(), cin_probe(), cmv_decode_frame(), decode_frame(), decode_header_trees(), decode_i_frame(), decode_init(), decode_p_frame(), decode_vol_header(), dxa_read_packet(), dxt1_decode_pixels(), ea_probe(), ff_flac_is_extradata_valid(), ff_h263_decode_frame(), ff_mjpeg_decode_init(), ff_mpeg4_decode_picture_header(), ff_xvid_encode_init(), flac_decode_frame(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), flic_probe(), flic_read_header(), flic_read_packet(), fourxm_probe(), fourxm_read_header(), fourxm_read_packet(), get_quant(), get_slice_offset(), h263_decode_picture_header(), idcin_probe(), iff_probe(), lz_unpack(), matroska_read_header(), mjpeg_decode_app(), mjpega_dump_header(), mm_probe(), mov_probe(), mpc8_probe(), mpeg_decode_frame(), msrle_decode_8_16_24_32(), multiswap_init(), nuv_packet(), ogm_dshow_header(), parse_ffconfig(), process_ipmovie_chunk(), r3d_probe(), rl2_decode_init(), roq_probe(), roq_read_header(), roq_read_packet(), siff_probe(), smacker_read_packet(), smka_decode_frame(), speex_header(), str_probe(), str_read_header(), str_read_packet(), svq3_decode_slice_header(), targa_decode_rle(), tget_long(), tgq_decode_frame(), tgv_decode_frame(), thp_probe(), tm2_read_header(), truespeech_read_frame(), tta_decode_init(), tta_read_header(), txd_decode_frame(), txd_probe(), vc1t_probe(), vid_probe(), vmd_read_header(), vmdvideo_decode_init(), vmnc_get_pixel(), wavpack_decode_frame(), wc3_probe(), wc3_read_header(), wc3_read_packet(), wma_decode_init(), wsaud_probe(), wsaud_read_packet(), wv_read_block_header(), and xa_probe().

#define AV_RL64 (  ) 

Value:

(((uint64_t)((const uint8_t*)(x))[7] << 56) | \
                     ((uint64_t)((const uint8_t*)(x))[6] << 48) | \
                     ((uint64_t)((const uint8_t*)(x))[5] << 40) | \
                     ((uint64_t)((const uint8_t*)(x))[4] << 32) | \
                     ((uint64_t)((const uint8_t*)(x))[3] << 24) | \
                     ((uint64_t)((const uint8_t*)(x))[2] << 16) | \
                     ((uint64_t)((const uint8_t*)(x))[1] <<  8) | \
                      (uint64_t)((const uint8_t*)(x))[0])

Definition at line 157 of file intreadwrite.h.

Referenced by ff_asfcrypt_dec(), ff_decode_dxt3(), and ogm_dshow_header().

#define AV_RL8 (  )     AV_RB8(x)

Definition at line 66 of file intreadwrite.h.

Referenced by txd_decode_frame().

#define AV_RN16 (  )     (*((const uint16_t*)(a)))

Definition at line 52 of file intreadwrite.h.

Referenced by copy_block2().

#define AV_RN32 (  )     (*((const uint32_t*)(a)))

Definition at line 53 of file intreadwrite.h.

Referenced by copy_block16(), copy_block17(), copy_block4(), copy_block8(), and copy_block9().

#define AV_RN64 (  )     (*((const uint64_t*)(a)))

Definition at line 54 of file intreadwrite.h.

Referenced by intra_pred_vert().

#define AV_WB16 ( p,
 ) 

Value:

do { \
                    ((uint8_t*)(p))[1] = (d); \
                    ((uint8_t*)(p))[0] = (d)>>8; } while(0)

Definition at line 109 of file intreadwrite.h.

Referenced by adx_encode(), concatenate_packet(), dnxhd_write_header(), jpeg_put_comments(), jpeg_table_header(), output_frame_end(), sp5x_decode_frame(), and text2movsub().

#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 179 of file intreadwrite.h.

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

#define AV_WB32 ( p,
 ) 

Value:

do { \
                    ((uint8_t*)(p))[3] = (d); \
                    ((uint8_t*)(p))[2] = (d)>>8; \
                    ((uint8_t*)(p))[1] = (d)>>16; \
                    ((uint8_t*)(p))[0] = (d)>>24; } while(0)

Definition at line 123 of file intreadwrite.h.

Referenced by adx_encode_header(), alac_encode_init(), alloc_and_copy(), dnxhd_encode_picture(), dnxhd_write_header(), dv_read_header(), encode_frame(), ffm_write_packet(), find_expected_header(), mov_read_extradata(), mp3_header_decompress(), mpegaudio_parse(), mpegts_write_packet(), and put_bits().

#define AV_WB64 ( p,
 ) 

Value:

do { \
                    ((uint8_t*)(p))[7] = (d);     \
                    ((uint8_t*)(p))[6] = (d)>>8;  \
                    ((uint8_t*)(p))[5] = (d)>>16; \
                    ((uint8_t*)(p))[4] = (d)>>24; \
                    ((uint8_t*)(p))[3] = (d)>>32; \
                    ((uint8_t*)(p))[2] = (d)>>40; \
                    ((uint8_t*)(p))[1] = (d)>>48; \
                    ((uint8_t*)(p))[0] = (d)>>56; } while(0)

Definition at line 147 of file intreadwrite.h.

Referenced by ffm_write_packet().

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

Definition at line 64 of file intreadwrite.h.

Referenced by alac_encode_init().

#define AV_WL16 ( p,
 ) 

Value:

do { \
                    ((uint8_t*)(p))[0] = (d); \
                    ((uint8_t*)(p))[1] = (d)>>8; } while(0)

Definition at line 115 of file intreadwrite.h.

Referenced by ape_read_header(), decode_frame(), encode_init(), oma_read_header(), siff_read_packet(), and targa_encode_frame().

#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 187 of file intreadwrite.h.

#define AV_WL32 ( p,
 ) 

Value:

do { \
                    ((uint8_t*)(p))[0] = (d); \
                    ((uint8_t*)(p))[1] = (d)>>8; \
                    ((uint8_t*)(p))[2] = (d)>>16; \
                    ((uint8_t*)(p))[3] = (d)>>24; } while(0)

Definition at line 133 of file intreadwrite.h.

Referenced by ape_read_packet(), av_lfg_init(), encode_init(), fourxm_read_header(), mov_read_extradata(), oma_read_header(), png_write_chunk(), put_bits(), rm_assemble_video_frame(), and svq3_decode_slice_header().

#define AV_WL64 ( p,
 ) 

Value:

do { \
                    ((uint8_t*)(p))[0] = (d);     \
                    ((uint8_t*)(p))[1] = (d)>>8;  \
                    ((uint8_t*)(p))[2] = (d)>>16; \
                    ((uint8_t*)(p))[3] = (d)>>24; \
                    ((uint8_t*)(p))[4] = (d)>>32; \
                    ((uint8_t*)(p))[5] = (d)>>40; \
                    ((uint8_t*)(p))[6] = (d)>>48; \
                    ((uint8_t*)(p))[7] = (d)>>56; } while(0)

Definition at line 165 of file intreadwrite.h.

Referenced by ff_asfcrypt_dec().

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

Definition at line 67 of file intreadwrite.h.

#define AV_WN16 ( a,
 )     *((uint16_t*)(a)) = (b)

Definition at line 56 of file intreadwrite.h.

Referenced by copy_block2(), and ptx_decode_frame().

#define AV_WN32 ( a,
 )     *((uint32_t*)(a)) = (b)

Definition at line 57 of file intreadwrite.h.

Referenced by copy_block16(), copy_block17(), copy_block4(), copy_block8(), and copy_block9().

#define AV_WN64 ( a,
 )     *((uint64_t*)(a)) = (b)

Definition at line 58 of file intreadwrite.h.


Generated on Fri Oct 26 02:35:46 2012 for FFmpeg by  doxygen 1.5.8