#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 AV_RB16 | ( | x | ) | ((((const uint8_t*)(x))[0] << 8) | ((const uint8_t*)(x))[1]) |
Definition at line 108 of file intreadwrite.h.
Referenced by adx_decode(), cinepak_decode(), dca_convert_bitstream(), decode_13(), decode_dvd_subtitles(), decode_format80(), decode_frame(), dnxhd_decode_header(), dvbsub_decode(), dvbsub_parse(), dvbsub_parse_object_segment(), dvbsub_parse_page_segment(), dvbsub_parse_region_segment(), dvdsub_parse(), ff_parse_pes_pts(), ff_rdt_parse_header(), ff_split_xiph_headers(), film_read_header(), get16(), get_pts(), h264_handle_packet(), h264_mp4toannexb_filter(), handle_packet(), lmlm4_probe(), matroska_parse_block(), mjpega_dump_header(), mov2textsub(), mpegts_get_pcr(), mpegts_push_data(), mpegts_read_header(), mxf_read_local_tags(), oma_read_header(), pva_probe(), qcelp_decode_frame(), qtrle_decode_16bpp(), qtrle_decode_frame(), read_access_unit(), read_line(), rpza_decode_stream(), rtp_parse_mp4_au(), rtp_parse_packet(), rtsp_skip_packet(), smc_decode_stream(), tcp_read_packet(), tget_short(), tgq_decode_frame(), unpack(), vmnc_get_pixel(), vp6_parse_header(), write_section_data(), and xan_wc3_decode_frame().
#define AV_RB24 | ( | x | ) |
Value:
((((const uint8_t*)(x))[0] << 16) | \ (((const uint8_t*)(x))[1] << 8) | \ ((const uint8_t*)(x))[2])
Definition at line 176 of file intreadwrite.h.
Referenced by cinepak_decode(), cinepak_decode_strip(), cmv_process_header(), decode_frame(), ff_isom_write_avcc(), ffm_read_packet(), gif_read_image(), lmlm4_probe(), mkv_write_block(), mm_decode_pal(), oma_read_header(), rl2_decode_init(), seqvideo_decode(), set_palette(), tgv_decode_frame(), unpack(), and xan_wc3_decode_frame().
#define AV_RB32 | ( | x | ) |
Value:
((((const uint8_t*)(x))[0] << 24) | \ (((const uint8_t*)(x))[1] << 16) | \ (((const uint8_t*)(x))[2] << 8) | \ ((const uint8_t*)(x))[3])
Definition at line 119 of file intreadwrite.h.
Referenced by adx_decode_header(), alac_set_info(), cinepak_decode_codebook(), cinepak_decode_vectors(), cmv_decode_frame(), dca_convert_bitstream(), decode_13(), decode_dvd_subtitles(), decode_frame(), dirac_combine_frame(), dnxhd_decode_header(), dv_probe(), dvdsub_parse(), dxa_read_packet(), ff_find_start_code(), ff_isom_write_avcc(), ffm_read_packet(), film_probe(), film_read_header(), get_slice_offset(), h264_mp4toannexb_filter(), libopenjpeg_decode_frame(), lmlm4_probe(), matroska_probe(), mkv_write_block(), mlp_parse(), mov_probe(), mov_read_stsd(), mov_write_avid_tag(), mp3_header_compress(), mp3_header_decompress(), mp3_read_probe(), mp3len(), mpeg_decode_frame(), mpegaudio_parse(), mpegts_write_packet(), mxf_read_packet(), mxf_write_header(), nc_probe(), parse_pcr(), qdm2_decode_init(), rl2_probe(), rpza_decode_stream(), rtcp_parse_packet(), rtp_parse_packet(), rv10_decode_init(), shorten_decode_frame(), smc_decode_stream(), sunrast_decode_frame(), svq3_decode_init(), swf_read_packet(), tget_long(), tm2_read_stream(), txd_decode_frame(), unpack_parse_unit(), vc1_decode_frame(), vc1_decode_init(), vmdaudio_decode_frame(), vmnc_get_pixel(), vqa_decode_chunk(), wc3_read_header(), wc3_read_packet(), wsvqa_probe(), wsvqa_read_header(), and wsvqa_read_packet().
#define AV_RB64 | ( | x | ) |
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 | ( | x | ) | (((const uint8_t*)(x))[0]) |
#define AV_RL16 | ( | x | ) |
Value:
((((const uint8_t*)(x))[1] << 8) | \ ((const uint8_t*)(x))[0])
Definition at line 113 of file intreadwrite.h.
Referenced by adpcm_decode_frame(), ape_decode_init(), avs_decode_frame(), cin_decode_lzss(), cinaudio_decode_frame(), cinvideo_decode_frame(), cmv_process_header(), dca_convert_bitstream(), decode_format80(), decode_frame(), decode_init(), decode_p_frame(), dpcm_decode_frame(), dxt1_decode_pixels(), ff_mlp_checksum16(), ff_mlp_read_major_sync(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), flic_decode_init(), flic_probe(), flic_read_header(), flic_read_packet(), ipmovie_read_header(), mm_decode_frame(), mm_decode_inter(), mm_probe(), mm_read_packet(), msrle_decode_8_16_24_32(), msvideo1_decode_16bit(), mxf_write_d10_audio_packet(), nc_probe(), ogm_dshow_header(), pcx_decode_frame(), process_ipmovie_chunk(), ptx_decode_frame(), read_line(), rl2_decode_init(), roq_probe(), roq_read_header(), roq_read_packet(), str_read_packet(), targa_decode_rle(), tget_short(), tgq_decode_frame(), tgv_decode_frame(), tgv_decode_inter(), tqi_decode_frame(), truemotion1_decode_header(), txd_decode_frame(), vmd_decode(), vmd_probe(), vmd_read_header(), vmnc_get_pixel(), voc_probe(), vqa_decode_init(), wavpack_decode_frame(), wma_decode_init(), ws_snd_decode_frame(), wsaud_probe(), wsaud_read_header(), wsaud_read_packet(), wsvqa_read_header(), wsvqa_read_packet(), and xan_wc3_decode_frame().
#define AV_RL24 | ( | x | ) |
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 | ( | x | ) |
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 | ( | x | ) |
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 | ( | x | ) | AV_RB8(x) |
#define AV_RN16 | ( | a | ) | (*((const uint16_t*)(a))) |
#define AV_RN32 | ( | a | ) | (*((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 | ( | a | ) | (*((const uint64_t*)(a))) |
#define AV_WB16 | ( | p, | |||
d | ) |
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, | |||
d | ) |
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, | |||
d | ) |
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, | |||
d | ) |
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, | |||
d | ) | do { ((uint8_t*)(p))[0] = (d); } while(0) |
#define AV_WL16 | ( | p, | |||
d | ) |
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, | |||
d | ) |
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, | |||
d | ) |
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, | |||
d | ) |
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, | |||
d | ) | AV_WB8(p, d) |
Definition at line 67 of file intreadwrite.h.
#define AV_WN16 | ( | a, | |||
b | ) | *((uint16_t*)(a)) = (b) |
#define AV_WN32 | ( | a, | |||
b | ) | *((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, | |||
b | ) | *((uint64_t*)(a)) = (b) |
Definition at line 58 of file intreadwrite.h.