FFmpeg
|
#include <stdint.h>
#include "libavutil/avconfig.h"
#include "attributes.h"
#include "bswap.h"
#include "config.h"
Go to the source code of this file.
Data Structures | |
union | av_alias |
union | av_alias |
union | av_alias |
union | unaligned_64 |
union | unaligned_32 |
union | unaligned_16 |
Macros | |
#define | AV_RN(s, p) (((const union unaligned_##s *) (p))->l) |
#define | AV_WN(s, p, v) ((((union unaligned_##s *) (p))->l) = (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_RB16(p) AV_RB(16, p) |
#define | AV_WB16(p, v) AV_WB(16, p, v) |
#define | AV_RL16(p) AV_RL(16, p) |
#define | AV_WL16(p, v) AV_WL(16, p, v) |
#define | AV_RB32(p) AV_RB(32, p) |
#define | AV_WB32(p, v) AV_WB(32, p, v) |
#define | AV_RL32(p) AV_RL(32, p) |
#define | AV_WL32(p, v) AV_WL(32, p, v) |
#define | AV_RB64(p) AV_RB(64, p) |
#define | AV_WB64(p, v) AV_WB(64, p, v) |
#define | AV_RL64(p) AV_RL(64, p) |
#define | AV_WL64(p, v) AV_WL(64, p, v) |
#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) |
Variables | |
union unaligned_64 | av_alias |
Definition at line 224 of file intreadwrite.h.
Definition at line 225 of file intreadwrite.h.
Referenced by libschroedinger_decode_frame().
#define AV_RN16 | ( | p | ) | AV_RN(16, p) |
Definition at line 360 of file intreadwrite.h.
Referenced by cdxl_read_probe(), fill16(), filter_frame(), interleave_cols_to_any(), mxf_probe(), writer_print_integers(), and wtvfile_open2().
#define AV_RN32 | ( | p | ) | AV_RN(32, p) |
Definition at line 364 of file intreadwrite.h.
Referenced by av_image_copy_to_buffer(), bmp_probe(), cdxl_read_probe(), clear_image(), decode_deep_rle32(), dpx_probe(), drawtext(), epaf_probe(), fill32(), filter_frame(), ingenient_probe(), interleave_cols_to_any(), ircam_probe(), mxf_probe(), mxg_find_startmarker(), pmp_probe(), pp_postprocess(), put_no_rnd_pixels_l2(), targa_encode_frame(), and writer_print_integers().
#define AV_RN64 | ( | p | ) | AV_RN(64, p) |
Definition at line 368 of file intreadwrite.h.
Referenced by addkey_s(), av_adler32_update(), cdxl_read_probe(), ff_asfcrypt_dec(), ff_cavs_filter(), filter_frame(), get(), interleave_cols_to_any(), intra_pred_vert(), and libschroedinger_decode_frame().
#define AV_WN16 | ( | p, | |
v | |||
) | AV_WN(16, p, v) |
Definition at line 372 of file intreadwrite.h.
Referenced by codeblock(), filter_frame(), generate_missing_ref(), interleave_cols_to_any(), p010BEToUV_c(), p010BEToY_c(), p010LEToUV_c(), p010LEToY_c(), read_ayuv64le_A_c(), read_ayuv64le_UV_c(), read_ayuv64le_Y_c(), read_ya16be_alpha_c(), read_ya16be_gray_c(), read_ya16le_alpha_c(), read_ya16le_gray_c(), rle_unpack(), and vectorscope16().
#define AV_WN32 | ( | p, | |
v | |||
) | AV_WN(32, p, v) |
Definition at line 376 of file intreadwrite.h.
Referenced by av_base64_decode(), clear_image(), codeblock(), compute_default_clut(), dds_decode(), decode_frame(), draw_dot(), drawtext(), fill16(), fill24(), fill32(), filter_frame(), import_palette(), interleave_cols_to_any(), lag_decode_frame(), and pp_postprocess().
#define AV_WN64 | ( | p, | |
v | |||
) | AV_WN(64, p, v) |
Definition at line 380 of file intreadwrite.h.
Referenced by addkey_d(), decode_mb_row_no_filter(), filter_frame(), get(), and interleave_cols_to_any().
Definition at line 390 of file intreadwrite.h.
Definition at line 391 of file intreadwrite.h.
Definition at line 392 of file intreadwrite.h.
#define AV_RB8 | ( | x | ) | (((const uint8_t*)(x))[0]) |
Definition at line 395 of file intreadwrite.h.
#define AV_WB8 | ( | p, | |
d | |||
) | do { ((uint8_t*)(p))[0] = (d); } while(0) |
Definition at line 396 of file intreadwrite.h.
Referenced by alac_encode_init().
#define AV_RL8 | ( | x | ) | AV_RB8(x) |
Definition at line 398 of file intreadwrite.h.
Referenced by avcodec_decode_audio4(), libopus_decode_init(), and opus_header().
#define AV_WL8 | ( | p, | |
d | |||
) | AV_WB8(p, d) |
Definition at line 399 of file intreadwrite.h.
#define AV_RB16 | ( | p | ) | AV_RB(16, p) |
Definition at line 402 of file intreadwrite.h.
#define AV_WB16 | ( | p, | |
v | |||
) | AV_WB(16, p, v) |
Definition at line 405 of file intreadwrite.h.
Referenced by adx_encode(), auxiliary_info_add_subsample(), av_write_image_line(), avpriv_dca_convert_bitstream(), concatenate_packet(), decode_frame(), decode_trns_chunk(), dnxhd_write_header(), encode_apng(), encode_slice(), encrypt_counter(), ff_rtp_send_aac(), ff_rtp_send_xiph(), ff_rtsp_tcp_write_packet(), ff_videotoolbox_avcc_extradata_create(), fillPlane16(), flush_packet(), jpeg_create_header(), jpeg_put_comments(), jpeg_table_header(), mov_cenc_end_packet(), mov_read_chapters(), mov_text_encode_frame(), mp3_update_xing(), mpegts_write_packet_internal(), nal_send(), output_frame_end(), planarCopyWrapper(), prores_encode_picture(), put_system_header(), qdm2_restore_block(), rgb48Toxyz12(), sap_write_header(), sctp_read(), sp5x_decode_frame(), spdif_header_dts4(), text2movsub(), write16_internal(), write_cvid_header(), write_strip_header(), and xyz12Torgb48().
#define AV_RL16 | ( | p | ) | AV_RL(16, p) |
Definition at line 409 of file intreadwrite.h.
#define AV_WL16 | ( | p, | |
v | |||
) | AV_WL(16, p, v) |
Definition at line 412 of file intreadwrite.h.
Referenced by ape_read_header(), av_write_image_line(), bmp_encode_frame(), compress_color(), decode_frame(), dfa_read_header(), encode_init(), fillPlane16(), gamma_convert(), genh_read_header(), load_ipmovie_packet(), matroska_parse_wavpack(), oma_read_header(), planarCopyWrapper(), rgb48Toxyz12(), siff_read_packet(), smush_read_header(), targa_encode_frame(), write16_internal(), wsaud_read_packet(), wsvqa_read_packet(), xyz12Torgb48(), and yuv2ayuv64le_X_c().
#define AV_RB32 | ( | p | ) | AV_RB(32, p) |
Definition at line 416 of file intreadwrite.h.
#define AV_WB32 | ( | p, | |
v | |||
) | AV_WB(32, p, v) |
Definition at line 419 of file intreadwrite.h.
Referenced by a64multi_encode_frame(), a64multi_encode_init(), aa_read_header(), alac_encode_init(), alloc_and_copy(), apng_read_header(), apng_write_chunk(), apng_write_trailer(), apply_color_indexing_transform(), auxiliary_info_add_subsample(), av_blowfish_crypt(), av_hash_final(), av_sha512_final(), av_sha_final(), avui_encode_init(), create_iv(), decipher(), decode_entropy_coded_image(), dnxhd_encode_picture(), dnxhd_write_header(), dv_read_header(), dv_write_pack(), dyn_packet_buf_write(), encipher(), encode_apng(), encode_codebook(), encode_frame(), encode_headers(), encode_mode(), encode_parse_info(), expect_tag(), ff_avc_write_annexb_extradata(), ff_rtmp_packet_write(), ff_srtp_decrypt(), ff_srtp_encrypt(), ff_videotoolbox_h264_decode_slice(), ffm_write_packet(), filter_frame(), find_expected_header(), flush_packet(), get_qt_codec(), hevc_extradata_to_annexb(), hevc_mp4toannexb_filter(), inv_predict_0(), main(), matroska_parse_tracks(), mov_create_dvd_sub_decoder_specific_info(), mov_create_timecode_track(), mov_read_atom_into_extradata(), mov_read_wave(), mp3_header_decompress(), mp3_update_xing(), mpegts_write_packet_internal(), mux_frames(), parse_playlist(), prores_encode_picture(), put_bits(), qdm2_parse_config(), read_kuki_chunk(), redspark_probe(), rtmp_send_hs_packet(), rtmp_server_handshake(), sunrast_encode_frame(), super2xsai(), svq3_parse_packet(), tea_crypt_ecb(), update_size(), utvideo_encode_init(), vda_old_h264_decode_slice(), write32_internal(), xmv_fetch_video_packet(), xmv_read_extradata(), and xtea_crypt_ecb().
#define AV_RL32 | ( | p | ) | AV_RL(32, p) |
Definition at line 423 of file intreadwrite.h.
#define AV_WL32 | ( | p, | |
v | |||
) | AV_WL(32, p, v) |
Definition at line 426 of file intreadwrite.h.
Referenced by aac_decode_frame_int(), add_event(), add_metadata(), ape_read_packet(), apng_read_header(), av_image_copy_to_buffer(), av_lfg_init(), av_md5_final(), av_ripemd_final(), avi_read_tag(), celt_header(), compress_color(), draw_curves(), draw_dot(), dxt1_block_internal(), dxt3_block_internal(), dxt5_block_internal(), dxv_decompress_dxt1(), dxv_decompress_dxt5(), encode_frame(), encode_init(), ff_read_riff_info(), ff_side_data_set_encoder_stats(), filter_frame(), libopus_encode(), matroska_parse_frame(), matroska_parse_wavpack(), mkv_strip_wavpack(), mov_read_atom_into_extradata(), mp3_update_xing(), ogg_build_speex_headers(), ogg_read_packet(), oma_read_header(), parse_vtrk(), png_write_chunk(), put_bits(), qsv_h264_set_encode_ctrl(), read_frame_internal(), read_header(), read_packet(), read_sm_data(), rgtc_block_internal(), rm_assemble_video_frame(), rm_read_audio_stream_info(), rtmpe9_sig(), rtp_asf_fix_header(), sbg_read_packet(), send_command_packet(), set_codec_str(), smush_read_header(), super2xsai(), svq3_decode_slice_header(), targa_encode_frame(), tf_h(), tf_h0(), tf_RS(), twofish_decrypt(), twofish_encrypt(), utvideo_encode_init(), v410_encode_frame(), vorbis_header(), wavpack_encode_block(), webp_decode_frame(), write32_internal(), write_extradata(), X264_frame(), and xtea_le_crypt_ecb().
#define AV_RB64 | ( | p | ) | AV_RB(64, p) |
Definition at line 430 of file intreadwrite.h.
#define AV_WB64 | ( | p, | |
v | |||
) | AV_WB(64, p, v) |
Definition at line 433 of file intreadwrite.h.
Referenced by av_des_crypt_mac(), av_sha512_final(), camellia_decrypt(), camellia_encrypt(), create_iv(), encode_png(), ffm_write_packet(), matroska_parse_frame(), mkv_write_header(), mov_read_wave(), mxf_gen_umid(), read_sm_data(), and storeframe().
#define AV_RL64 | ( | p | ) | AV_RL(64, p) |
Definition at line 437 of file intreadwrite.h.
#define AV_WL64 | ( | p, | |
v | |||
) | AV_WL(64, p, v) |
Definition at line 440 of file intreadwrite.h.
Referenced by av_murmur3_final(), ff_asfcrypt_dec(), ff_side_data_set_encoder_stats(), sbg_read_packet(), and tta_decode_init().
#define AV_RB24 | ( | x | ) |
Definition at line 444 of file intreadwrite.h.
#define AV_WB24 | ( | p, | |
d | |||
) |
Definition at line 450 of file intreadwrite.h.
Referenced by copy_elem(), decode_frame(), decode_region(), decode_region_intra(), decode_region_masked(), decode_rle(), encode_frame(), ffm_write_packet(), fill_picture_rgb(), filter_frame(), filter_slice(), find_expected_header(), init_file(), interleave_cols_to_any(), lag_decode_frame(), put_flac_codecpriv(), write_chunk_header(), write_cvid_header(), and write_strip_header().
#define AV_RL24 | ( | x | ) |
Definition at line 458 of file intreadwrite.h.
#define AV_WL24 | ( | p, | |
d | |||
) |
Definition at line 464 of file intreadwrite.h.
Referenced by cdxl_decode_ham6(), cdxl_decode_ham8(), super2xsai(), targa_encode_frame(), and update_md5_sum().
#define AV_RB48 | ( | x | ) |
Definition at line 472 of file intreadwrite.h.
Referenced by filter_frame(), filter_slice(), and interleave_cols_to_any().
#define AV_WB48 | ( | p, | |
darg | |||
) |
Definition at line 481 of file intreadwrite.h.
Referenced by filter_frame(), filter_slice(), and interleave_cols_to_any().
#define AV_RL48 | ( | x | ) |
Definition at line 493 of file intreadwrite.h.
#define AV_WL48 | ( | p, | |
darg | |||
) |
Definition at line 518 of file intreadwrite.h.
Definition at line 519 of file intreadwrite.h.
#define AV_RN16A | ( | p | ) | AV_RNA(16, p) |
Definition at line 522 of file intreadwrite.h.
Referenced by dctcoef_get(), decode_coeffs(), inter_recon(), and intra_recon().
#define AV_RN32A | ( | p | ) | AV_RNA(32, p) |
Definition at line 526 of file intreadwrite.h.
Referenced by dctcoef_get(), decode_coeffs(), decode_mode(), decode_splitmvs(), derive_spatial_merge_candidates(), ff_h264_decode_nal(), ff_hevc_extract_rbsp(), find_ref_mvs(), iszero(), output_plane(), pred_pskip_motion(), pred_spatial_direct_motion(), vp7_decode_mvs(), vp8_decode_mvs(), vp8_mc_chroma(), vp8_mc_luma(), and xwd_encode_frame().
#define AV_RN64A | ( | p | ) | AV_RNA(64, p) |
Definition at line 530 of file intreadwrite.h.
Referenced by decode_coeffs(), decodeplane8(), ff_h264_decode_nal(), ff_hevc_extract_rbsp(), get_dct8x8_allowed(), and idctRowCondDC().
#define AV_WN16A | ( | p, | |
v | |||
) | AV_WNA(16, p, v) |
Definition at line 534 of file intreadwrite.h.
Referenced by dctcoef_set(), decode_frame(), expand_rle_row16(), mss4_decode_dct_block(), pcm_decode_frame(), and setctx_2d().
#define AV_WN32A | ( | p, | |
v | |||
) | AV_WNA(32, p, v) |
Definition at line 538 of file intreadwrite.h.
Referenced by dctcoef_set(), decode_coeffs(), decode_mb_mode(), decode_mb_row_no_filter(), decode_mode(), decode_splitmvs(), ff_h264_decode_mb_cabac(), fill_decode_caches(), fill_filter_caches_inter(), filter_frame(), intra_predict(), output_plane(), pcx_decode_frame(), pred4x4_horizontal_vp8_c(), pred4x4_vertical_vp8_c(), pred_temp_direct_motion(), put_no_rnd_pixels_l2(), qtrle_decode_32bpp(), set_4x4_block(), setctx_2d(), super2xsai(), svq3_mc_dir(), vp78_decode_mv_mb_modes(), and vp7_decode_mvs().
#define AV_WN64A | ( | p, | |
v | |||
) | AV_WNA(64, p, v) |
Definition at line 542 of file intreadwrite.h.
Referenced by decodeplane8(), ff_h264_filter_mb(), fill_64(), filter_mb_dir(), h264_filter_mb_fast_internal(), and setctx_2d().
Definition at line 550 of file intreadwrite.h.
Definition at line 553 of file intreadwrite.h.
Referenced by av_memcpy_backptr(), and copy_block2().
Definition at line 557 of file intreadwrite.h.
Referenced by av_memcpy_backptr(), copy(), copy_block4(), and dxtory_decode_v1_410().
Definition at line 561 of file intreadwrite.h.
Referenced by copy_block8(), copy_block9(), and copy_CTB().
#define AV_COPY128U | ( | d, | |
s | |||
) |
Definition at line 565 of file intreadwrite.h.
Referenced by copy_block16(), copy_block17(), and get_pixels_16_c().
Definition at line 578 of file intreadwrite.h.
Definition at line 582 of file intreadwrite.h.
Referenced by dxtory_decode_v1_420(), fill_decode_caches(), and write_back_motion_list().
Definition at line 586 of file intreadwrite.h.
Referenced by apply_color_indexing_transform(), apply_obmc(), copy_subcoefs(), decode_entropy_coded_image(), decode_mode(), derive_spatial_merge_candidates(), fill_decode_caches(), fill_filter_caches(), fill_filter_caches_inter(), intra_predict(), inv_predict_1(), inv_predict_11(), inv_predict_2(), inv_predict_3(), inv_predict_4(), svq3_decode_mb(), write_back_intra_pred_mode(), and write_back_non_zero_count().
Definition at line 590 of file intreadwrite.h.
Referenced by backup_mb_border(), fill_decode_caches(), and write_back_motion_list().
#define AV_COPY128 | ( | d, | |
s | |||
) |
Definition at line 594 of file intreadwrite.h.
Referenced by backup_mb_border(), copy_CTB(), fill_decode_caches(), fill_filter_caches_inter(), parse_frame_data(), parse_x96_frame_data(), and write_back_motion_list().
Definition at line 601 of file intreadwrite.h.
Definition at line 607 of file intreadwrite.h.
#define AV_ZERO16 | ( | d | ) | AV_ZERO(16, d) |
Definition at line 610 of file intreadwrite.h.
Referenced by derive_spatial_merge_candidates(), and fill_decode_caches().
#define AV_ZERO32 | ( | d | ) | AV_ZERO(32, d) |
Definition at line 614 of file intreadwrite.h.
Referenced by copy_subcoefs(), decode_mb_mode(), decode_splitmvs(), derive_spatial_merge_candidates(), fetch_diagonal_mv(), fill_decode_caches(), fill_filter_caches_inter(), find_ref_mvs(), hevc_luma_mv_mvp_mode(), pred_spatial_direct_motion(), svq3_decode_mb(), vp7_decode_mvs(), and vp8_decode_mvs().
#define AV_ZERO64 | ( | d | ) | AV_ZERO(64, d) |
Definition at line 618 of file intreadwrite.h.
Referenced by decode_mb_row_no_filter(), fill_decode_caches(), fill_mv(), and filter_mb_dir().
#define AV_ZERO128 | ( | d | ) |
Definition at line 622 of file intreadwrite.h.
Referenced by decode_cabac_luma_residual(), decode_luma_residual(), erase_adpcm_history(), erase_x96_adpcm_history(), fill_decode_caches(), fill_filter_caches_inter(), intra_predict(), svq3_decode_mb(), and write_back_motion_list().
union unaligned_16 av_alias |