#include <stdint.h>
#include "config.h"
#include "bswap.h"
#include "common.h"
Go to the source code of this file.
Data Structures | |
union | av_alias |
union | av_alias |
union | av_alias |
Defines | |
#define | AV_RB16(x) |
#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_RN(s, p) AV_RL##s(p) |
#define | AV_WN(s, p, v) AV_WL##s(p, v) |
#define | AV_RN16(p) AV_RN(16, p) |
#define | AV_RN32(p) AV_RN(32, p) |
#define | AV_RN64(p) AV_RN(64, p) |
#define | AV_WN16(p, v) AV_WN(16, p, v) |
#define | AV_WN32(p, v) AV_WN(32, p, v) |
#define | AV_WN64(p, v) AV_WN(64, 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 | AV_RNA(s, p) (((const av_alias##s*)(p))->u##s) |
#define | AV_WNA(s, p, v) (((av_alias##s*)(p))->u##s = (v)) |
#define | AV_RN16A(p) AV_RNA(16, p) |
#define | AV_RN32A(p) AV_RNA(32, p) |
#define | AV_RN64A(p) AV_RNA(64, p) |
#define | AV_WN16A(p, v) AV_WNA(16, p, v) |
#define | AV_WN32A(p, v) AV_WNA(32, p, v) |
#define | AV_WN64A(p, v) AV_WNA(64, p, v) |
#define | AV_COPY(n, d, s) (((av_alias##n*)(d))->u##n = ((const av_alias##n*)(s))->u##n) |
#define | AV_COPY16(d, s) AV_COPY(16, d, s) |
#define | AV_COPY32(d, s) AV_COPY(32, d, s) |
#define | AV_COPY64(d, s) AV_COPY(64, d, s) |
#define | AV_COPY128(d, s) |
#define | AV_SWAP(n, a, b) FFSWAP(av_alias##n, *(av_alias##n*)(a), *(av_alias##n*)(b)) |
#define | AV_SWAP64(a, b) AV_SWAP(64, a, b) |
#define | AV_ZERO(n, d) (((av_alias##n*)(d))->u##n = 0) |
#define | AV_ZERO16(d) AV_ZERO(16, d) |
#define | AV_ZERO32(d) AV_ZERO(32, d) |
#define | AV_ZERO64(d) AV_ZERO(64, d) |
#define | AV_ZERO128(d) |
Definition at line 465 of file intreadwrite.h.
#define AV_COPY128 | ( | d, | |||
s | ) |
Value:
Definition at line 481 of file intreadwrite.h.
Referenced by backup_mb_border(), fill_decode_caches(), fill_filter_caches(), and write_back_motion().
#define AV_COPY16 | ( | d, | |||
s | ) | AV_COPY(16, d, s) |
Definition at line 469 of file intreadwrite.h.
Referenced by fill_decode_caches(), and write_back_motion().
#define AV_COPY32 | ( | d, | |||
s | ) | AV_COPY(32, d, s) |
Definition at line 473 of file intreadwrite.h.
Referenced by ff_h264_write_back_intra_pred_mode(), fill_decode_caches(), fill_filter_caches(), and write_back_non_zero_count().
#define AV_COPY64 | ( | d, | |||
s | ) | AV_COPY(64, d, s) |
Definition at line 477 of file intreadwrite.h.
Referenced by backup_mb_border(), fill_decode_caches(), fill_filter_caches(), write_back_motion(), and write_back_non_zero_count().
#define AV_RB | ( | s, | |||
p | ) | bswap_##s(AV_RN##s(p)) |
Definition at line 345 of file intreadwrite.h.
#define AV_RB16 | ( | x | ) |
Value:
((((const uint8_t*)(x))[0] << 8) | \ ((const uint8_t*)(x))[1])
Definition at line 202 of file intreadwrite.h.
#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 400 of file intreadwrite.h.
#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 226 of file intreadwrite.h.
#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 258 of file intreadwrite.h.
#define AV_RB8 | ( | x | ) | (((const uint8_t*)(x))[0]) |
#define AV_RL | ( | s, | |||
p | ) | AV_RN##s(p) |
Definition at line 347 of file intreadwrite.h.
#define AV_RL16 | ( | x | ) |
Value:
((((const uint8_t*)(x))[1] << 8) | \ ((const uint8_t*)(x))[0])
Definition at line 214 of file intreadwrite.h.
#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 414 of file intreadwrite.h.
#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 242 of file intreadwrite.h.
#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 282 of file intreadwrite.h.
#define AV_RL8 | ( | x | ) | AV_RB8(x) |
#define AV_RN | ( | s, | |||
p | ) | AV_RL##s(p) |
Definition at line 309 of file intreadwrite.h.
#define AV_RN16 | ( | p | ) | AV_RN(16, p) |
#define AV_RN16A | ( | p | ) | AV_RNA(16, p) |
Definition at line 436 of file intreadwrite.h.
#define AV_RN32 | ( | p | ) | AV_RN(32, p) |
Definition at line 320 of file intreadwrite.h.
Referenced by AV_RN64(), copy_block16(), copy_block17(), copy_block4(), copy_block8(), and copy_block9().
#define AV_RN32A | ( | p | ) | AV_RNA(32, p) |
Definition at line 440 of file intreadwrite.h.
Referenced by ff_h264_decode_nal(), pred_pskip_motion(), pred_spatial_direct_motion(), and qmf_32_subbands().
#define AV_RN64 | ( | p | ) | AV_RN(64, p) |
Definition at line 324 of file intreadwrite.h.
Referenced by ff_cavs_filter(), and intra_pred_vert().
#define AV_RN64A | ( | p | ) | AV_RNA(64, p) |
Definition at line 444 of file intreadwrite.h.
Referenced by ff_h264_decode_nal(), and get_dct8x8_allowed().
#define AV_RNA | ( | s, | |||
p | ) | (((const av_alias##s*)(p))->u##s) |
Definition at line 432 of file intreadwrite.h.
Definition at line 488 of file intreadwrite.h.
#define AV_SWAP64 | ( | a, | |||
b | ) | AV_SWAP(64, a, b) |
Definition at line 491 of file intreadwrite.h.
#define AV_WB | ( | s, | |||
p, | |||||
v | ) | AV_WN##s(p, bswap_##s(v)) |
Definition at line 346 of file intreadwrite.h.
#define AV_WB16 | ( | p, | |||
d | ) |
Value:
do { \ ((uint8_t*)(p))[1] = (d); \ ((uint8_t*)(p))[0] = (d)>>8; \ } while(0)
Definition at line 207 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(), tcp_write_packet(), text2movsub(), write_line(), and yuv2yuvX16inC_template().
#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 406 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 233 of file intreadwrite.h.
Referenced by adx_encode_header(), alac_encode_init(), alloc_and_copy(), av_sha_final(), dnxhd_encode_picture(), dnxhd_write_header(), dv_read_header(), encode_frame(), ffm_write_packet(), find_expected_header(), mov_read_extradata(), mp3_header_decompress(), 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 269 of file intreadwrite.h.
Referenced by ffm_write_packet(), and mxf_gen_umid().
#define AV_WB8 | ( | p, | |||
d | ) | do { ((uint8_t*)(p))[0] = (d); } while(0) |
#define AV_WL | ( | s, | |||
p, | |||||
v | ) | AV_WN##s(p, v) |
Definition at line 348 of file intreadwrite.h.
#define AV_WL16 | ( | p, | |||
d | ) |
Value:
do { \ ((uint8_t*)(p))[0] = (d); \ ((uint8_t*)(p))[1] = (d)>>8; \ } while(0)
Definition at line 219 of file intreadwrite.h.
Referenced by ape_read_header(), bmp_encode_frame(), decode_frame(), encode_init(), oma_read_header(), siff_read_packet(), targa_encode_frame(), write_line(), and yuv2yuvX16inC_template().
#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 420 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 249 of file intreadwrite.h.
Referenced by ape_read_packet(), av_lfg_init(), avi_read_tag(), encode_init(), fourxm_read_header(), mov_read_extradata(), ogg_build_speex_headers(), oma_read_header(), png_write_chunk(), put_bits(), rm_assemble_video_frame(), rtp_asf_fix_header(), 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 293 of file intreadwrite.h.
Referenced by ff_asfcrypt_dec().
#define AV_WL8 | ( | p, | |||
d | ) | AV_WB8(p, d) |
Definition at line 355 of file intreadwrite.h.
#define AV_WN | ( | s, | |||
p, | |||||
v | ) | AV_WL##s(p, v) |
Definition at line 310 of file intreadwrite.h.
#define AV_WN16 | ( | p, | |||
v | ) | AV_WN(16, p, v) |
#define AV_WN16A | ( | p, | |||
v | ) | AV_WNA(16, p, v) |
Definition at line 448 of file intreadwrite.h.
#define AV_WN32 | ( | p, | |||
v | ) | AV_WN(32, p, v) |
Definition at line 332 of file intreadwrite.h.
Referenced by AV_WN64(), copy_block16(), copy_block17(), copy_block4(), copy_block8(), and copy_block9().
#define AV_WN32A | ( | p, | |||
v | ) | AV_WNA(32, p, v) |
Definition at line 452 of file intreadwrite.h.
Referenced by fill_decode_caches(), fill_filter_caches(), pred_temp_direct_motion(), and qmf_32_subbands().
#define AV_WN64 | ( | p, | |||
v | ) | AV_WN(64, p, v) |
Definition at line 336 of file intreadwrite.h.
#define AV_WN64A | ( | p, | |||
v | ) | AV_WNA(64, p, v) |
Definition at line 456 of file intreadwrite.h.
Referenced by ff_h264_filter_mb(), ff_h264_filter_mb_fast(), and filter_mb_dir().
#define AV_WNA | ( | s, | |||
p, | |||||
v | ) | (((av_alias##s*)(p))->u##s = (v)) |
Definition at line 433 of file intreadwrite.h.
#define AV_ZERO | ( | n, | |||
d | ) | (((av_alias##n*)(d))->u##n = 0) |
Definition at line 494 of file intreadwrite.h.
#define AV_ZERO128 | ( | d | ) |
Value:
Definition at line 509 of file intreadwrite.h.
Referenced by fill_decode_caches(), fill_filter_caches(), and write_back_motion().
#define AV_ZERO16 | ( | d | ) | AV_ZERO(16, d) |
#define AV_ZERO32 | ( | d | ) | AV_ZERO(32, d) |
Definition at line 501 of file intreadwrite.h.
Referenced by fetch_diagonal_mv(), fill_decode_caches(), fill_filter_caches(), and pred_spatial_direct_motion().
#define AV_ZERO64 | ( | d | ) | AV_ZERO(64, d) |
Definition at line 505 of file intreadwrite.h.
Referenced by fill_decode_caches(), and filter_mb_dir().