FFmpeg  2.1.1
Data Structures | Macros
intreadwrite.h File Reference
#include <stdint.h>
#include "libavutil/avconfig.h"
#include "attributes.h"
#include "bswap.h"

Go to the source code of this file.

Data Structures

union  av_alias
 
union  av_alias
 
union  av_alias
 

Macros

#define AV_RB16(x)
 
#define AV_WB16(p, darg)
 
#define AV_RL16(x)
 
#define AV_WL16(p, darg)
 
#define AV_RB32(x)
 
#define AV_WB32(p, darg)
 
#define AV_RL32(x)
 
#define AV_WL32(p, darg)
 
#define AV_RB64(x)
 
#define AV_WB64(p, darg)
 
#define AV_RL64(x)
 
#define AV_WL64(p, darg)
 
#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)   av_bswap##s(AV_RN##s(p))
 
#define AV_WB(s, p, v)   AV_WN##s(p, av_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_RB48(x)
 
#define AV_WB48(p, darg)
 
#define AV_RL48(x)
 
#define AV_WL48(p, darg)
 
#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_COPYU(n, d, s)   AV_WN##n(d, AV_RN##n(s));
 
#define AV_COPY16U(d, s)   AV_COPYU(16, d, s)
 
#define AV_COPY32U(d, s)   AV_COPYU(32, d, s)
 
#define AV_COPY64U(d, s)   AV_COPYU(64, d, s)
 
#define AV_COPY128U(d, s)
 
#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)
 

Macro Definition Documentation

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

Definition at line 232 of file intreadwrite.h.

Referenced by ac3_decode_frame(), adts_aac_probe(), adx_decode(), adx_decode_frame(), adx_read_packet(), aic_decode_header(), ast_probe(), av_read_image_line(), av_write_image_line(), avpriv_adx_decode_header(), avpriv_copy_bits(), avpriv_split_xiph_headers(), cdxl_decode_frame(), cdxl_read_packet(), cdxl_read_probe(), cinepak_decode(), cmap_read_palette(), cook_parse(), decode_13(), decode_dvd_subtitles(), decode_frame(), decode_frame_header(), decode_hybrid(), decode_init(), decode_picture_header(), decode_slice(), decode_slice_thread(), decrypt_init(), dnxhd_decode_header(), dnxhd_probe(), dvbsub_decode(), dvbsub_init_decoder(), dvbsub_parse(), dvbsub_parse_object_segment(), dvbsub_parse_page_segment(), dvbsub_parse_region_segment(), dvdsub_parse(), dxa_probe(), encode_gbrp10(), encode_gbrp12(), encode_rgb48_10bit(), enqueue_packet(), extract_header(), ff_amf_tag_size(), ff_avc_write_annexb_extradata(), ff_dca_convert_bitstream(), ff_h263_handle_packet(), ff_h264_decode_extradata(), ff_mov_write_packet(), ff_parse_pes_pts(), ff_rdt_parse_header(), ff_rtp_send_jpeg(), ff_rtsp_tcp_read_packet(), ff_srtp_decrypt(), ff_srtp_encrypt(), ff_tdecode_header(), film_read_header(), find_headers_search(), find_new_headers(), flv_write_packet(), get16(), get_video_private_data(), h264_extradata_to_annexb(), h264_handle_packet(), handle_packet(), handle_ping(), import_palette(), jpeg_parse_packet(), lag_rac_refill(), latm_write_packet(), lmlm4_probe(), matroska_parse_block(), mjpega_dump_header(), mov2textsub(), mov_read_targa_y216(), mov_text_decode_frame(), mpegts_get_pcr(), mpegts_push_data(), mpegts_read_header(), mpegts_write_packet_internal(), mss2_decode_frame(), mv_probe(), mxf_read_local_tags(), mxg_read_packet(), mxpeg_decode_app(), mxpeg_decode_com(), oma_read_header(), planarCopyWrapper(), probe(), pva_check(), qcelp_decode_frame(), qdm2_parse_config(), qdm2_parse_subpacket(), read16(), read_access_unit(), rgb48Toxyz12(), rpza_decode_stream(), rtcp_parse_packet(), rtp_parse_mp4_au(), rtp_parse_one_packet(), rtp_parse_packet_internal(), samplecpy(), sap_fetch_packet(), sap_read_header(), sctp_write(), spdif_header_dts(), unpack(), vp6_parse_header(), vp8_handle_packet(), write_hint_packets(), write_section_data(), xiph_handle_packet(), xyz12Torgb48(), and yop_probe().

#define AV_WB16 (   p,
  darg 
)
#define AV_RL16 (   x)
Value:
((((const uint8_t*)(x))[1] << 8) | \
((const uint8_t*)(x))[0])
uint8_t

Definition at line 245 of file intreadwrite.h.

Referenced by adpcm_decode_init(), ape_decode_init(), av_read_image_line(), av_write_image_line(), avs_decode_frame(), cin_decode_lzss(), cinaudio_decode_frame(), cinvideo_decode_frame(), cmv_process_header(), cpia_decode_frame(), decode_audio_s16(), decode_frame(), decode_frame_header(), decode_init(), decode_p_frame(), dfa_decode_frame(), dts_probe(), encode_gbrp10(), encode_gbrp12(), encode_rgb48_10bit(), ff_dca_convert_bitstream(), ff_mlp_checksum16(), ff_mlp_read_major_sync(), ff_mms_asf_header_parser(), ff_rtp_send_h263_rfc2190(), ff_wv_parse_header(), flic_decode_frame_15_16BPP(), flic_decode_init(), flic_probe(), flic_read_header(), flic_read_packet(), frm_read_probe(), get_chunk_header(), get_tcp_server_response(), gif_probe(), gif_read_ext(), ico_write_packet(), ipmovie_read_header(), libopus_decode_init(), lxf_read_header(), matroska_parse_wavpack(), mm_decode_frame(), msvideo1_decode_16bit(), mtv_probe(), mxf_write_d10_audio_packet(), mxpeg_decode_mxm(), nc_probe(), nsv_probe(), ogm_dshow_header(), opus_header(), paf_aud_decode(), parse_mpeg1waveformatex(), planarCopyWrapper(), probe(), process_ipmovie_chunk(), ptx_decode_frame(), read16(), read_gab2_sub(), read_packet(), rgb48Toxyz12(), rl2_decode_init(), roq_probe(), roq_read_header(), roq_read_packet(), rsd_read_header(), rtmp_packet_read_one_chunk(), skeleton_header(), spdif_header_dts(), str_probe(), str_read_packet(), tgv_decode_frame(), tgv_decode_inter(), tmv_probe(), tqi_decode_frame(), truemotion1_decode_header(), tta_probe(), vmd_decode(), vmd_probe(), vmd_read_header(), voc_probe(), vp8_handle_packet(), vp9_decode_packet(), vqa_decode_init(), wma_decode_init(), ws_snd_decode_frame(), wsaud_probe(), wsaud_read_header(), wsaud_read_packet(), wsvqa_read_header(), wsvqa_read_packet(), wtvfile_open2(), wv_probe(), xa_probe(), xan_decode_chroma(), xan_wc3_decode_frame(), xyz12Torgb48(), yop_probe(), and yop_read_header().

#define AV_WL16 (   p,
  darg 
)
#define AV_RB32 (   x)
Value:
(((uint32_t)((const uint8_t*)(x))[0] << 24) | \
(((const uint8_t*)(x))[1] << 16) | \
(((const uint8_t*)(x))[2] << 8) | \
((const uint8_t*)(x))[3])
uint8_t

Definition at line 258 of file intreadwrite.h.

Referenced by a64_write_header(), adts_aac_probe(), aic_decode_header(), aiff_read_header(), ast_probe(), av_base64_encode(), av_blowfish_crypt(), av_packet_split_side_data(), AV_RB64(), av_xtea_init(), avpriv_adx_decode_header(), avpriv_find_start_code(), avui_decode_frame(), cdxl_read_packet(), cdxl_read_probe(), cinepak_decode_codebook(), cinepak_decode_vectors(), cmv_decode_frame(), decode_13(), decode_dvd_subtitles(), decode_entropy_coded_image(), decode_frame(), decode_init(), decode_nal_units(), decode_picture_header(), decrypt_init(), dirac_combine_frame(), dirac_decode_frame(), dnxhd_decode_header(), dnxhd_probe(), dv_extract_timecode(), dv_probe(), dvd_nav_parse(), dvdsub_parse(), dxa_read_packet(), dxva2_vc1_decode_slice(), ea_probe(), ea_read_packet(), ff_amf_tag_size(), ff_avc_write_annexb_extradata(), ff_dca_convert_bitstream(), ff_isom_write_avcc(), ff_mss12_decode_init(), ff_rtmp_packet_dump(), ff_srtp_decrypt(), ff_srtp_encrypt(), ffm_read_packet(), film_probe(), film_read_header(), find_headers_search(), flac_decode_frame(), flv_probe(), gen_pong(), get_generic_seed(), get_slice_offset(), h263_handle_packet(), handle_chunk_size(), handle_client_bw(), handle_server_bw(), id3v2_check_write_tag(), libopenjpeg_decode_frame(), libschroedinger_encode_frame(), libshine_encode_frame(), lmlm4_probe(), matroska_probe(), mjpeg_decode_app(), mkv_write_block(), mlp_parse(), mov_finalize_stsd_codec(), mov_parse_stsd_data(), mov_parse_vc1_frame(), mov_probe(), mov_write_avid_tag(), mov_write_dvc1_structs(), mp3_header_compress(), mp3_header_decompress(), mp3_read_probe(), mp3_write_audio_packet(), mp3lame_encode_frame(), mpeg_decode_frame(), mpeg_parse_packet(), mpegps_read_pes_header(), mpegts_prefix_m2ts_header(), mpegts_write_packet_internal(), mv_probe(), mxf_read_packet_old(), mxf_write_header(), nc_probe(), nprobe(), old_dirac_header(), parse_pcr(), probe(), qdm2_decode_init(), qdm2_parse_config(), read32(), read_header(), read_probe(), redspark_probe(), rl2_probe(), rpza_decode_stream(), rtcp_parse_packet(), rtmp_packet_read_one_chunk(), rtmp_receive_hs_packet(), rtp_parse_one_packet(), rtp_parse_packet_internal(), rv10_decode_init(), rv34_parse(), s302m_parse_frame_header(), sha1_transform(), smush_read_packet(), sox_probe(), spdif_header_dts(), sunrast_decode_frame(), svq3_decode_init(), swf_read_packet(), tcp_write_packet(), thp_read_packet(), twinvq_decode_init(), unpack_parse_unit(), vaapi_vc1_decode_slice(), vc1_decode_frame(), vc1_decode_init(), vc1_extract_headers(), vmdaudio_decode_frame(), vp9_decode_frame(), vqf_read_header(), write_hint_packets(), wsvqa_probe(), wsvqa_read_header(), wsvqa_read_packet(), and xtea_crypt_ecb().

#define AV_WB32 (   p,
  darg 
)
#define AV_RL32 (   x)
Value:
(((uint32_t)((const uint8_t*)(x))[3] << 24) | \
(((const uint8_t*)(x))[2] << 16) | \
(((const uint8_t*)(x))[1] << 8) | \
((const uint8_t*)(x))[0])
uint8_t

Definition at line 275 of file intreadwrite.h.

Referenced by a64multi_init_encoder(), aac_decode_frame_int(), aasc_decode_frame(), aasc_decode_init(), add_input_streams(), adpcm_decode_init(), aea_read_probe(), ast_probe(), av_lfg_init(), AV_RL64(), avcodec_decode_audio4(), avi_read_header(), avi_read_idx1(), avpriv_dv_frame_profile2(), avpriv_flac_is_extradata_valid(), avr_probe(), bfi_probe(), celt_header(), check_checksum(), cin_probe(), cllc_decode_frame(), cmv_decode_frame(), decode_block(), decode_flush(), decode_frame(), decode_header_trees(), decode_i_frame(), decode_init(), decode_p_frame(), decode_plane(), decode_vol_header(), dfa_probe(), dfa_read_packet(), dirac_probe(), dxa_read_packet(), dxtory_decode_v2(), ea_probe(), ea_read_packet(), encode_init(), epaf_probe(), ff_h263_decode_frame(), ff_h263_decode_init(), ff_h263_decode_picture_header(), ff_mjpeg_decode_sos(), ff_mms_asf_header_parser(), ff_mov_read_stsd_entries(), ff_mpeg4_decode_picture_header(), ff_rm_read_mdpr_codecdata(), ff_rtp_send_h263_rfc2190(), ff_update_duplicate_context(), ff_wv_parse_header(), flic_decode_init(), flic_probe(), flic_read_header(), flic_read_packet(), fourxm_probe(), fourxm_read_header(), fourxm_read_packet(), get_chunk_header(), get_packet_header(), get_quant(), get_slice_offset(), get_tcp_server_response(), handle_packet_stream_changing_type(), ico_write_packet(), idcin_probe(), idct_mb(), iff_probe(), init_duplicate_context(), ivf_write_header(), lag_decode_arith_plane(), lag_decode_frame(), libcelt_dec_init(), lvf_probe(), lxf_read_header(), matroska_parse_wavpack(), matroska_read_header(), metasound_decode_init(), mjpeg_decode_app(), mjpega_dump_header(), mkv_write_block(), mov_parse_stsd_subtitle(), mov_probe(), mov_read_header(), mov_read_packet(), mov_skip_multiple_stsd(), mov_write_audio_tag(), mpc8_probe(), mpeg_decode_frame(), mpeg_decode_slice(), mpegts_set_stream_info(), msrle_decode_init(), multiswap_init(), new_output_stream(), nsv_probe(), nuv_packet(), nuv_read_dts(), ogm_dshow_header(), parse_media_type(), parse_mpeg1waveformatex(), parse_strk(), parse_vtrk(), parse_waveformatex(), pmp_probe(), pmt_cb(), probe(), process_ipmovie_chunk(), prores_encode_init(), qcp_probe(), r3d_probe(), raw_decode(), raw_encode(), raw_init_decoder(), read32(), read_packet(), ripemd128_transform(), ripemd160_transform(), rl2_decode_init(), rm_read_audio_stream_info(), roq_probe(), roq_read_packet(), rtmp_packet_read_one_chunk(), rtmpe9_sig(), rtp_asf_fix_header(), siff_probe(), skeleton_header(), smacker_read_packet(), smka_decode_frame(), smush_read_probe(), smvjpeg_decode_init(), sol_probe(), sox_probe(), speex_header(), srt_decode_frame(), srt_write_packet(), str_probe(), str_read_header(), str_read_packet(), svq3_decode_slice_header(), tb_unreliable(), tgq_decode_frame(), tgv_decode_frame(), thp_probe(), tm2_read_header(), tmv_probe(), transcode_init(), tta_check_crc(), tta_decode_init(), tta_probe(), tta_read_header(), txd_probe(), udp_read(), utvideo_decode_init(), v410_decode_frame(), vble_decode_frame(), vc1t_probe(), vcr2_init_sequence(), vid_probe(), vmd_read_header(), vmdvideo_decode_init(), vorbis_header(), vp9_decode_packet(), vqf_probe(), wavesynth_decode(), wavesynth_parse_extradata(), wavpack_decode_frame(), wc3_probe(), webp_decode_frame(), wmavoice_decode_init(), wsaud_probe(), wsaud_read_packet(), wtvfile_open2(), wv_probe(), xa_probe(), xmv_fetch_video_packet(), xmv_probe(), xmv_process_packet_header(), xvid_encode_init(), and zero12v_decode_frame().

#define AV_WL32 (   p,
  darg 
)
#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])
uint8_t

Definition at line 292 of file intreadwrite.h.

Referenced by amf_tag_contents(), av_des_crypt_mac(), av_des_init(), av_packet_split_side_data(), dtshd_probe(), ff_amf_get_field_value(), ffm_read_packet(), ffm_read_write_index(), handle_invoke_result(), matroska_read_header(), mkv_write_block(), mov_probe(), redspark_probe(), and rtcp_parse_packet().

#define AV_WB64 (   p,
  darg 
)
Value:
do { \
uint64_t d = (darg); \
((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)
uint8_t

Definition at line 303 of file intreadwrite.h.

Referenced by av_des_crypt_mac(), av_sha512_final(), create_iv(), encode_frame(), ffm_write_packet(), matroska_parse_frame(), mkv_write_header(), mxf_gen_umid(), and storeframe().

#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])
uint8_t

Definition at line 317 of file intreadwrite.h.

Referenced by decode_block(), ff_asfcrypt_dec(), ff_mms_asf_header_parser(), get_f64l(), get_k1(), get_k2(), mkv_write_attachments(), mxg_read_packet(), nist_probe(), ogm_dshow_header(), qcp_probe(), rtp_asf_fix_header(), skeleton_header(), wavesynth_decode(), wavesynth_parse_extradata(), and wtvfile_open2().

#define AV_WL64 (   p,
  darg 
)
Value:
do { \
uint64_t d = (darg); \
((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)
uint8_t

Definition at line 328 of file intreadwrite.h.

Referenced by av_murmur3_final(), ff_asfcrypt_dec(), sbg_read_packet(), and tta_decode_init().

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

Definition at line 345 of file intreadwrite.h.

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

Definition at line 346 of file intreadwrite.h.

Referenced by libschroedinger_decode_frame().

#define AV_RN16 (   p)    AV_RN(16, p)

Definition at line 352 of file intreadwrite.h.

Referenced by cdxl_read_probe(), fill16(), and wtvfile_open2().

#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)

Definition at line 364 of file intreadwrite.h.

Referenced by generate_missing_ref(), and rle_unpack().

#define AV_WN32 (   p,
  v 
)    AV_WN(32, p, v)
#define AV_WN64 (   p,
  v 
)    AV_WN(64, p, v)

Definition at line 372 of file intreadwrite.h.

Referenced by addkey_d(), and vp8_decode_mb_row_no_filter().

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

Definition at line 381 of file intreadwrite.h.

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

Definition at line 382 of file intreadwrite.h.

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

Definition at line 383 of file intreadwrite.h.

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

Definition at line 384 of file intreadwrite.h.

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

Definition at line 387 of file intreadwrite.h.

Referenced by jpeg_parse_packet(), and mov_finalize_stsd_codec().

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

Definition at line 388 of file intreadwrite.h.

Referenced by alac_encode_init().

#define AV_RL8 (   x)    AV_RB8(x)

Definition at line 390 of file intreadwrite.h.

Referenced by libopus_decode_init(), and opus_header().

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

Definition at line 391 of file intreadwrite.h.

#define AV_RB24 (   x)
#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)
uint8_t

Definition at line 442 of file intreadwrite.h.

Referenced by decode_region(), decode_region_intra(), decode_region_masked(), decode_rle(), encode_frame(), ffm_write_packet(), fill_picture_rgb(), filter_slice(), find_expected_header(), and lag_decode_frame().

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

Definition at line 450 of file intreadwrite.h.

Referenced by cinvideo_decode_frame(), decode_frame(), decode_frame_header(), extract_header(), fill24(), mss2_decode_frame(), mxf_write_d10_audio_packet(), nsv_probe(), setup_partitions(), and vp9_decode_packet().

#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)
uint8_t

Definition at line 456 of file intreadwrite.h.

Referenced by cdxl_decode_ham6(), cdxl_decode_ham8(), super2xsai(), and targa_encode_frame().

#define AV_RB48 (   x)
Value:
(((uint64_t)((const uint8_t*)(x))[0] << 40) | \
((uint64_t)((const uint8_t*)(x))[1] << 32) | \
((uint64_t)((const uint8_t*)(x))[2] << 24) | \
((uint64_t)((const uint8_t*)(x))[3] << 16) | \
((uint64_t)((const uint8_t*)(x))[4] << 8) | \
(uint64_t)((const uint8_t*)(x))[5])
uint8_t

Definition at line 464 of file intreadwrite.h.

Referenced by filter_slice().

#define AV_WB48 (   p,
  darg 
)
Value:
do { \
uint64_t d = (darg); \
((uint8_t*)(p))[5] = (d); \
((uint8_t*)(p))[4] = (d)>>8; \
((uint8_t*)(p))[3] = (d)>>16; \
((uint8_t*)(p))[2] = (d)>>24; \
((uint8_t*)(p))[1] = (d)>>32; \
((uint8_t*)(p))[0] = (d)>>40; \
} while(0)
uint8_t

Definition at line 473 of file intreadwrite.h.

Referenced by filter_slice().

#define AV_RL48 (   x)
Value:
(((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])
uint8_t

Definition at line 485 of file intreadwrite.h.

#define AV_WL48 (   p,
  darg 
)
Value:
do { \
uint64_t d = (darg); \
((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; \
} while(0)
uint8_t

Definition at line 494 of file intreadwrite.h.

#define AV_RNA (   s,
 
)    (((const av_alias##s*)(p))->u##s)

Definition at line 510 of file intreadwrite.h.

#define AV_WNA (   s,
  p,
  v 
)    (((av_alias##s*)(p))->u##s = (v))

Definition at line 511 of file intreadwrite.h.

#define AV_RN16A (   p)    AV_RNA(16, p)

Definition at line 514 of file intreadwrite.h.

Referenced by dctcoef_get(), inter_recon(), and intra_recon().

#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_COPYU (   n,
  d,
  s 
)    AV_WN##n(d, AV_RN##n(s));

Definition at line 542 of file intreadwrite.h.

#define AV_COPY16U (   d,
  s 
)    AV_COPYU(16, d, s)

Definition at line 545 of file intreadwrite.h.

Referenced by av_memcpy_backptr(), and copy_block2().

#define AV_COPY32U (   d,
  s 
)    AV_COPYU(32, d, s)

Definition at line 549 of file intreadwrite.h.

Referenced by av_memcpy_backptr(), copy(), and copy_block4().

#define AV_COPY64U (   d,
  s 
)    AV_COPYU(64, d, s)

Definition at line 553 of file intreadwrite.h.

Referenced by copy_block8(), and copy_block9().

#define AV_COPY128U (   d,
  s 
)
Value:
do { \
AV_COPY64U((char *)(d) + 8, (const char *)(s) + 8); \
} while(0)
const char * s
Definition: avisynth_c.h:668
#define AV_COPY64U(d, s)
Definition: intreadwrite.h:553

Definition at line 557 of file intreadwrite.h.

Referenced by copy_block16(), and copy_block17().

#define AV_COPY (   n,
  d,
  s 
)    (((av_alias##n*)(d))->u##n = ((const av_alias##n*)(s))->u##n)

Definition at line 570 of file intreadwrite.h.

#define AV_COPY16 (   d,
  s 
)    AV_COPY(16, d, s)

Definition at line 574 of file intreadwrite.h.

Referenced by dxtory_decode_v1(), fill_decode_caches(), and write_back_motion_list().

#define AV_COPY32 (   d,
  s 
)    AV_COPY(32, d, s)
#define AV_COPY64 (   d,
  s 
)    AV_COPY(64, d, s)

Definition at line 582 of file intreadwrite.h.

Referenced by backup_mb_border(), fill_decode_caches(), and write_back_motion_list().

#define AV_COPY128 (   d,
  s 
)
Value:
do { \
AV_COPY64((char*)(d)+8, (char*)(s)+8); \
} while(0)
const char * s
Definition: avisynth_c.h:668
#define AV_COPY64(d, s)
Definition: intreadwrite.h:582

Definition at line 586 of file intreadwrite.h.

Referenced by backup_mb_border(), fill_decode_caches(), fill_filter_caches_inter(), and write_back_motion_list().

#define AV_SWAP (   n,
  a,
  b 
)    FFSWAP(av_alias##n, *(av_alias##n*)(a), *(av_alias##n*)(b))

Definition at line 593 of file intreadwrite.h.

#define AV_SWAP64 (   a,
  b 
)    AV_SWAP(64, a, b)

Definition at line 596 of file intreadwrite.h.

#define AV_ZERO (   n,
 
)    (((av_alias##n*)(d))->u##n = 0)

Definition at line 599 of file intreadwrite.h.

#define AV_ZERO16 (   d)    AV_ZERO(16, d)

Definition at line 602 of file intreadwrite.h.

Referenced by fill_decode_caches().

#define AV_ZERO32 (   d)    AV_ZERO(32, d)
#define AV_ZERO64 (   d)    AV_ZERO(64, d)

Definition at line 610 of file intreadwrite.h.

Referenced by fill_decode_caches(), filter_mb_dir(), and vp8_decode_mb_row_no_filter().

#define AV_ZERO128 (   d)