#include <stdint.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_RB24(x) |
#define | AV_WB24(p, d) |
#define | AV_RL24(x) |
#define | AV_WL24(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) |
Definition at line 73 of file intreadwrite.h.
Referenced by adx_decode(), cinepak_decode(), cinepak_decode_strip(), dca_convert_bitstream(), decode_13(), decode_dvd_subtitles(), decode_format80(), decode_frame(), decode_to16(), 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_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(), pva_probe(), qtrle_decode_16bpp(), qtrle_decode_24bpp(), qtrle_decode_32bpp(), qtrle_decode_4bpp(), qtrle_decode_8bpp(), rpza_decode_stream(), rtp_parse_mp4_au(), rtp_parse_packet(), rtsp_skip_packet(), smc_decode_stream(), tcp_read_packet(), tget_short(), vmnc_get_pixel(), vp6_parse_header(), write_section_data(), and xan_wc3_decode_frame().
#define AV_RB24 | ( | x | ) |
Value:
Definition at line 85 of file intreadwrite.h.
Referenced by decode_frame(), ffm_read_packet(), gif_read_image(), lmlm4_probe(), seqvideo_decode(), set_palette(), 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 116 of file intreadwrite.h.
Referenced by adx_decode_header(), alac_set_info(), cinepak_decode_codebook(), cinepak_decode_vectors(), dca_convert_bitstream(), decode_13(), decode_dvd_subtitles(), decode_frame(), dnxhd_decode_header(), dvdsub_parse(), dxa_read_packet(), ff_find_start_code(), ff_isom_write_avcc(), film_probe(), film_read_header(), get_slice_offset(), h264_mp4toannexb_filter(), lmlm4_probe(), matroska_probe(), mkv_write_packet(), mlp_parse(), mov_probe(), mov_write_avid_tag(), mp3_header_compress(), mp3_header_decompress(), mp3_read_probe(), mp3len(), mpeg_decode_frame(), mpegaudio_parse(), parse_pcr(), qdm2_decode_init(), rpza_decode_stream(), rtcp_parse_packet(), rtp_parse_packet(), rv10_decode_init(), smc_decode_stream(), sunrast_decode_frame(), svq3_decode_frame(), swf_read_packet(), tget_long(), tm2_read_stream(), txd_decode_frame(), vc1_decode_frame(), vc1_decode_init(), 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 152 of file intreadwrite.h.
Referenced by ff_asfcrypt_dec(), and rtcp_parse_packet().
Definition at line 52 of file intreadwrite.h.
#define AV_RL16 | ( | x | ) |
Value:
Definition at line 78 of file intreadwrite.h.
Referenced by adpcm_decode_frame(), ape_decode_init(), avs_decode_frame(), cin_decode_lzss(), cinaudio_decode_frame(), cinvideo_decode_frame(), dca_convert_bitstream(), decode_format80(), decode_frame(), decode_init(), decode_p_frame(), decode_rle(), decode_to16(), dpcm_decode_frame(), dxt1_decode_pixels(), 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(), matroska_read_header(), mlp_checksum16(), mm_decode_frame(), mm_decode_inter(), mm_probe(), mm_read_packet(), msvideo1_decode_16bit(), ogm_dshow_header(), pcx_decode_frame(), process_ipmovie_chunk(), ptx_decode_frame(), roq_probe(), roq_read_header(), roq_read_packet(), str_read_header(), str_read_packet(), targa_decode_rle(), tget_short(), 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 | ) |
#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 126 of file intreadwrite.h.
Referenced by adpcm_decode_frame(), adpcm_decode_init(), cin_probe(), decode_frame(), decode_header_trees(), decode_i_frame(), decode_init(), decode_p_frame(), decode_rle(), dxa_read_packet(), dxt1_decode_pixels(), ea_probe(), ff_mjpeg_decode_init(), flac_decode_frame(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), flic_read_header(), flic_read_packet(), fourxm_probe(), fourxm_read_header(), fourxm_read_packet(), get_quant(), get_slice_offset(), idcin_probe(), lz_unpack(), matroska_read_header(), mjpega_dump_header(), mm_probe(), mov_probe(), mpc8_probe(), multiswap_init(), nuv_packet(), ogm_dshow_header(), process_ipmovie_chunk(), roq_probe(), roq_read_header(), roq_read_packet(), siff_probe(), smacker_read_packet(), smka_decode_frame(), str_probe(), str_read_header(), str_read_packet(), targa_decode_rle(), tget_long(), thp_probe(), tm2_read_header(), truespeech_read_frame(), 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_read_packet(), and wv_read_block_header().
#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 170 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 42 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:
Definition at line 74 of file intreadwrite.h.
Referenced by adx_encode(), concatenate_packet(), dnxhd_write_header(), encode_from16(), 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 88 of file intreadwrite.h.
Referenced by decode_frame(), and encode_frame().
#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 120 of file intreadwrite.h.
Referenced by adx_encode_header(), alloc_and_copy(), dnxhd_encode_picture(), dnxhd_write_header(), encode_frame(), mov_read_extradata(), mp3_header_decompress(), and mpegaudio_parse().
#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 160 of file intreadwrite.h.
#define AV_WB8 | ( | p, | |||
d | ) | do { ((uint8_t*)(p))[0] = (d); } while(0) |
Definition at line 53 of file intreadwrite.h.
#define AV_WL16 | ( | p, | |||
d | ) |
Value:
Definition at line 80 of file intreadwrite.h.
Referenced by ape_read_header(), decode_frame(), encode_from16(), encode_init(), 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 96 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 130 of file intreadwrite.h.
Referenced by ape_read_packet(), encode_init(), fourxm_read_header(), mov_read_extradata(), png_write_chunk(), and rm_assemble_video_frame().
#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 178 of file intreadwrite.h.
Referenced by ff_asfcrypt_dec().
#define AV_WL8 | ( | p, | |||
d | ) | AV_WB8(p, d) |
Definition at line 56 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 46 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 47 of file intreadwrite.h.