ffmpeg-r/libavutil/intreadwrite.h File Reference

#include <stdint.h>
#include "bswap.h"
#include "bswap.h"

Go to the source code of this file.

Defines

#define AV_RN16(a)   (*((uint16_t*)(a)))
#define AV_RN32(a)   (*((uint32_t*)(a)))
#define AV_RN64(a)   (*((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)   (((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)   ((((uint8_t*)(x))[0] << 8) | ((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)


Define Documentation

#define AV_RB16 (  )     ((((uint8_t*)(x))[0] << 8) | ((uint8_t*)(x))[1])

Definition at line 73 of file intreadwrite.h.

Referenced by adts_aac_probe(), adx_decode(), av_read_image_line(), av_write_image_line(), cinepak_decode(), dca_convert_bitstream(), decode_13(), decode_dvd_subtitles(), decode_format80(), decode_frame(), 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(), ff_amf_tag_size(), ff_copy_bits(), ff_h264_decode_extradata(), ff_parse_pes_pts(), ff_rdt_parse_header(), ff_split_xiph_headers(), film_read_header(), flac_decode_frame(), get16(), get_pts(), h263_handle_packet(), h264_handle_packet(), h264_mp4toannexb_filter(), handle_packet(), lmlm4_probe(), matroska_parse_block(), mjpega_dump_header(), mov2textsub(), mov_read_chapters(), mpegts_get_pcr(), mpegts_push_data(), mpegts_read_header(), mpegts_write_packet(), msrle_decode_8_16_24_32(), mxf_read_local_tags(), oma_read_header(), probe(), pva_probe(), qcelp_decode_frame(), qdm2_parse_config(), qdm2_parse_subpacket(), qtrle_decode_16bpp(), qtrle_decode_frame(), read_access_unit(), rpza_decode_stream(), rtcp_parse_packet(), rtmp_parse_result(), rtp_parse_mp4_au(), rtp_parse_packet(), smc_decode_stream(), spdif_header_dts(), tget_short(), tgq_decode_frame(), unpack(), vmnc_get_pixel(), vp6_parse_header(), vp8_handle_packet(), write_hint_packets(), write_section_data(), xan_wc3_decode_frame(), xiph_handle_packet(), and yop_probe().

#define AV_RB24 (  ) 

#define AV_RB32 (  ) 

Value:

((((uint8_t*)(x))[0] << 24) | \
                     (((uint8_t*)(x))[1] << 16) | \
                     (((uint8_t*)(x))[2] <<  8) | \
                      ((uint8_t*)(x))[3])

Definition at line 116 of file intreadwrite.h.

Referenced by a64_write_header(), a64_write_packet(), adts_aac_probe(), adx_decode_header(), alac_set_info(), AV_RB64(), cinepak_decode_codebook(), cinepak_decode_vectors(), cmv_decode_frame(), dca_convert_bitstream(), decode_13(), decode_dvd_subtitles(), decode_frame(), decode_slice(), dirac_combine_frame(), dnxhd_decode_header(), dnxhd_probe(), dv_probe(), dvdsub_parse(), dxa_read_packet(), ea_probe(), ff_amf_tag_size(), ff_find_start_code(), ff_isom_write_avcc(), ff_rtmp_packet_dump(), ff_rtmp_packet_read(), ffm_read_packet(), film_probe(), film_read_header(), flac_decode_frame(), flv_probe(), gen_pong(), get_slice_offset(), h264_mp4toannexb_filter(), libopenjpeg_decode_frame(), libschroedinger_encode_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(), mp3len(), mpeg_decode_frame(), mpegts_write_packet(), mxf_read_packet(), mxf_write_header(), nc_probe(), old_dirac_header(), parse_pcr(), probe(), qdm2_decode_init(), qdm2_parse_config(), read32(), rl2_probe(), rpza_decode_stream(), rtcp_parse_packet(), rtmp_parse_result(), rtp_parse_packet(), rv10_decode_init(), shorten_decode_frame(), smc_decode_stream(), sox_probe(), spdif_header_dts(), sunrast_decode_frame(), svq3_decode_init(), swf_read_packet(), tcp_write_packet(), tget_long(), tm2_read_stream(), txd_decode_frame(), unpack_parse_unit(), vaapi_vc1_decode_slice(), vc1_decode_frame(), vc1_decode_init(), vc1_extract_headers(), vmdaudio_decode_frame(), vmnc_get_pixel(), vqa_decode_chunk(), write_hint_packets(), wsvqa_probe(), wsvqa_read_header(), and wsvqa_read_packet().

#define AV_RB64 (  ) 

Value:

(((uint64_t)((uint8_t*)(x))[0] << 56) | \
                     ((uint64_t)((uint8_t*)(x))[1] << 48) | \
                     ((uint64_t)((uint8_t*)(x))[2] << 40) | \
                     ((uint64_t)((uint8_t*)(x))[3] << 32) | \
                     ((uint64_t)((uint8_t*)(x))[4] << 24) | \
                     ((uint64_t)((uint8_t*)(x))[5] << 16) | \
                     ((uint64_t)((uint8_t*)(x))[6] <<  8) | \
                      (uint64_t)((uint8_t*)(x))[7])

Definition at line 152 of file intreadwrite.h.

Referenced by av_des_init(), ff_amf_get_field_value(), ff_amf_tag_contents(), ffm_read_packet(), rtcp_parse_packet(), and rtmp_parse_result().

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

Definition at line 52 of file intreadwrite.h.

Referenced by mov_read_stsd().

#define AV_RL16 (  ) 

Value:

((((uint8_t*)(x))[1] << 8) | \
                      ((uint8_t*)(x))[0])

Definition at line 78 of file intreadwrite.h.

Referenced by adpcm_decode_frame(), 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(), dca_convert_bitstream(), decode_format80(), decode_frame(), decode_frame_header(), decode_init(), decode_p_frame(), dpcm_decode_frame(), dxt1_decode_pixels(), ff_mlp_checksum16(), ff_mlp_read_major_sync(), ff_mms_asf_header_parser(), ff_rtmp_packet_read(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), flic_decode_init(), flic_probe(), flic_read_header(), flic_read_packet(), get_chunk_header(), get_tcp_server_response(), ipmovie_read_header(), ipvideo_decode_block_opcode_0x8_16(), ipvideo_decode_block_opcode_0xA_16(), ipvideo_decode_opcodes(), mm_decode_frame(), mm_decode_inter(), msrle_decode_8_16_24_32(), msvideo1_decode_16bit(), mtv_probe(), mxf_write_d10_audio_packet(), nc_probe(), ogm_dshow_header(), pcx_decode_frame(), probe(), process_ipmovie_chunk(), ptx_decode_frame(), read_gab2_sub(), read_packet(), rl2_decode_init(), roq_probe(), roq_read_header(), roq_read_packet(), skeleton_header(), spdif_header_dts(), str_read_packet(), targa_decode_rle(), tget_short(), tgq_decode_frame(), tgv_decode_frame(), tgv_decode_inter(), tmv_probe(), 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(), xa_probe(), xan_wc3_decode_frame(), and yop_read_header().

#define AV_RL24 (  ) 

Value:

((((uint8_t*)(x))[2] << 16) | \
                     (((uint8_t*)(x))[1] <<  8) | \
                      ((uint8_t*)(x))[0])

Definition at line 93 of file intreadwrite.h.

Referenced by cinvideo_decode_frame(), decode_frame(), decode_frame_header(), mxf_write_d10_audio_packet(), and setup_partitions().

#define AV_RL32 (  ) 

Value:

((((uint8_t*)(x))[3] << 24) | \
                    (((uint8_t*)(x))[2] << 16) | \
                    (((uint8_t*)(x))[1] <<  8) | \
                     ((uint8_t*)(x))[0])

Definition at line 126 of file intreadwrite.h.

Referenced by a64multi_init_encoder(), aasc_decode_frame(), adpcm_decode_frame(), adpcm_decode_init(), aea_read_probe(), av_lfg_init(), AV_RL64(), 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(), dirac_probe(), dxa_read_packet(), dxt1_decode_pixels(), ea_probe(), ff_flac_is_extradata_valid(), ff_h263_decode_frame(), ff_mjpeg_decode_init(), ff_mms_asf_header_parser(), ff_mpeg4_decode_picture_header(), ff_rtmp_packet_read(), 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_chunk_header(), get_quant(), get_slice_offset(), get_tcp_server_response(), h263_decode_picture_header(), handle_packet_stream_changing_type(), idcin_probe(), iff_probe(), lz_unpack(), matroska_read_header(), mjpeg_decode_app(), mjpega_dump_header(), mov_probe(), mov_read_header(), mov_read_packet(), mov_read_stsd(), mov_write_audio_tag(), mpc8_probe(), mpeg_decode_frame(), mpeg_decode_slice(), mpegts_set_stream_info(), msrle_decode_8_16_24_32(), multiswap_init(), nuv_packet(), ogm_dshow_header(), pmt_cb(), probe(), process_ipmovie_chunk(), qcp_probe(), r3d_probe(), raw_decode(), raw_encode(), read32(), read_packet(), rl2_decode_init(), rm_read_audio_stream_info(), roq_probe(), roq_read_packet(), rtp_asf_fix_header(), siff_probe(), skeleton_header(), smacker_read_packet(), smka_decode_frame(), sox_probe(), 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(), tmv_probe(), 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(), vqf_probe(), wavpack_decode_frame(), wc3_probe(), wmavoice_decode_init(), wsaud_probe(), wsaud_read_packet(), wv_read_block_header(), and xa_probe().

#define AV_RL64 (  ) 

Value:

(((uint64_t)((uint8_t*)(x))[7] << 56) | \
                     ((uint64_t)((uint8_t*)(x))[6] << 48) | \
                     ((uint64_t)((uint8_t*)(x))[5] << 40) | \
                     ((uint64_t)((uint8_t*)(x))[4] << 32) | \
                     ((uint64_t)((uint8_t*)(x))[3] << 24) | \
                     ((uint64_t)((uint8_t*)(x))[2] << 16) | \
                     ((uint64_t)((uint8_t*)(x))[1] <<  8) | \
                      (uint64_t)((uint8_t*)(x))[0])

Definition at line 170 of file intreadwrite.h.

Referenced by ff_asfcrypt_dec(), ff_decode_dxt3(), ff_mms_asf_header_parser(), ogm_dshow_header(), qcp_probe(), rtp_asf_fix_header(), and skeleton_header().

#define AV_RL8 (  )     AV_RB8(x)

Definition at line 55 of file intreadwrite.h.

Referenced by txd_decode_frame().

#define AV_RN16 (  )     (*((uint16_t*)(a)))

Definition at line 41 of file intreadwrite.h.

Referenced by copy_block2().

#define AV_RN32 (  )     (*((uint32_t*)(a)))

#define AV_RN64 (  )     (*((uint64_t*)(a)))

Definition at line 43 of file intreadwrite.h.

Referenced by ff_asfcrypt_dec(), ff_cavs_filter(), and intra_pred_vert().

#define AV_WB16 ( p,
 ) 

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

Definition at line 88 of file intreadwrite.h.

Referenced by decode_frame(), draw_slice(), encode_frame(), ffm_write_packet(), and find_expected_header().

#define AV_WB32 ( p,
 ) 

#define AV_WB64 ( p,
 ) 

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.

Referenced by ffm_write_packet(), and mxf_gen_umid().

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

Definition at line 53 of file intreadwrite.h.

Referenced by alac_encode_init().

#define AV_WL16 ( p,
 ) 

Value:

do { \
                    ((uint8_t*)(p))[0] = (d); \
                    ((uint8_t*)(p))[1] = (d)>>8; } while(0)

Definition at line 80 of file intreadwrite.h.

Referenced by ape_read_header(), av_write_image_line(), bmp_encode_frame(), decode_frame(), encode_init(), oma_read_header(), siff_read_packet(), targa_encode_frame(), and yuv2yuvX16inC_template().

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

Definition at line 96 of file intreadwrite.h.

#define AV_WL32 ( p,
 ) 

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(), 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(), send_command_packet(), and svq3_decode_slice_header().

#define AV_WL64 ( p,
 ) 

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,
 )     AV_WB8(p, d)

Definition at line 56 of file intreadwrite.h.

#define AV_WN16 ( a,
 )     *((uint16_t*)(a)) = (b)

Definition at line 45 of file intreadwrite.h.

Referenced by copy_block2(), and ptx_decode_frame().

#define AV_WN32 ( a,
 )     *((uint32_t*)(a)) = (b)

#define AV_WN64 ( a,
 )     *((uint64_t*)(a)) = (b)

Definition at line 47 of file intreadwrite.h.

Referenced by vp8_decode_frame().


Generated on Fri Sep 10 03:08:35 2010 for FFmpeg by  doxygen 1.5.6