#include <string.h>
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
Go to the source code of this file.
Defines | |
#define | DEF_T(type, name, bytes, read, write) |
#define | DEF(name, bytes, read, write) DEF_T(unsigned int, name, bytes, read, write) |
#define | DEF64(name, bytes, read, write) DEF_T(uint64_t, name, bytes, read, write) |
Functions | |
static unsigned int | bytestream_get_le32 (const uint8_t **b) |
static void | bytestream_put_le32 (uint8_t **b, const unsigned int value) |
static unsigned int | bytestream_get_le24 (const uint8_t **b) |
static void | bytestream_put_le24 (uint8_t **b, const unsigned int value) |
static unsigned int | bytestream_get_le16 (const uint8_t **b) |
static void | bytestream_put_le16 (uint8_t **b, const unsigned int value) |
static unsigned int | bytestream_get_be32 (const uint8_t **b) |
static void | bytestream_put_be32 (uint8_t **b, const unsigned int value) |
static unsigned int | bytestream_get_be24 (const uint8_t **b) |
static void | bytestream_put_be24 (uint8_t **b, const unsigned int value) |
static unsigned int | bytestream_get_be16 (const uint8_t **b) |
static void | bytestream_put_be16 (uint8_t **b, const unsigned int value) |
static unsigned int | bytestream_get_byte (const uint8_t **b) |
static void | bytestream_put_byte (uint8_t **b, const unsigned int value) |
static av_always_inline unsigned int | bytestream_get_buffer (const uint8_t **b, uint8_t *dst, unsigned int size) |
static av_always_inline void | bytestream_put_buffer (uint8_t **b, const uint8_t *src, unsigned int size) |
Definition at line 39 of file bytestream.h.
Definition at line 41 of file bytestream.h.
#define DEF_T | ( | type, | ||
name, | ||||
bytes, | ||||
read, | ||||
write | ||||
) |
static av_always_inline type bytestream_get_ ## name(const uint8_t **b){\ (*b) += bytes;\ return read(*b - bytes);\ }\ static av_always_inline void bytestream_put_ ##name(uint8_t **b, const type value){\ write(*b, value);\ (*b) += bytes;\ }
Definition at line 29 of file bytestream.h.
static unsigned int bytestream_get_be16 | ( | const uint8_t ** | b | ) | [inline, static] |
Definition at line 51 of file bytestream.h.
Referenced by adpcm_decode_frame(), alac_set_info(), atrac3_decode_init(), cook_decode_init(), decode(), decode_codestream(), decode_frame(), dts_probe(), dvbsub_parse_display_definition_segment(), extract_header(), ff_amf_get_field_value(), ff_amf_tag_contents(), ff_amf_tag_size(), ff_init_range_decoder(), get_cod(), get_qcx(), get_siz(), get_sot(), parse_packed_headers(), parse_picture_segment(), parse_presentation_segment(), pcm_bluray_decode_frame(), pcm_decode_frame(), ulti_decode_frame(), vp56_rac_renorm(), and xan_unpack().
static unsigned int bytestream_get_be24 | ( | const uint8_t ** | b | ) | [inline, static] |
Definition at line 50 of file bytestream.h.
Referenced by decode_frame(), dfa_decode_frame(), ff_flac_parse_block_header(), ff_vp56_decode_frame(), ff_vp56_init_range_decoder(), get_packet(), parse_packed_headers(), parse_picture_segment(), pcm_bluray_decode_frame(), pcm_decode_frame(), pcx_palette(), rtmp_write(), ulti_decode_frame(), and vb_decode_palette().
static unsigned int bytestream_get_be32 | ( | const uint8_t ** | b | ) | [inline, static] |
Definition at line 49 of file bytestream.h.
Referenced by adpcm_decode_frame(), alac_set_info(), ape_decode_frame(), atrac3_decode_init(), cook_decode_init(), decode_frame(), ff_amf_tag_contents(), get_siz(), init_entropy_decoder(), parse_packed_headers(), read_rle_sgi(), rtmp_write(), and xan_decode_frame().
static av_always_inline unsigned int bytestream_get_buffer | ( | const uint8_t ** | b, | |
uint8_t * | dst, | |||
unsigned int | size | |||
) | [static] |
Definition at line 58 of file bytestream.h.
Referenced by bethsoftvid_decode_frame(), bfi_decode_frame(), cdg_decode_frame(), decode_bdlt(), decode_copy(), decode_frame(), decode_packet(), decode_wdlt(), gif_read_header1(), gif_read_image(), ogm_header(), rtmp_write(), and xan_unpack().
static unsigned int bytestream_get_byte | ( | const uint8_t ** | b | ) | [inline, static] |
Definition at line 52 of file bytestream.h.
Referenced by bfi_decode_frame(), bmp_decode_frame(), cdg_decode_frame(), decode(), decode_frame(), decode_rle(), dvbsub_parse_display_definition_segment(), expand_rle_row(), extract_header(), ff_flac_parse_block_header(), get_coc(), get_cod(), get_cox(), get_packet(), get_qcc(), get_qcx(), get_siz(), get_sot(), gif_parse_next_image(), gif_read_extension(), gif_read_header1(), gif_read_image(), mimic_decode_frame(), parse_palette_segment(), parse_picture_segment(), parse_presentation_segment(), range_start_decoding(), rtmp_write(), tgq_decode_mb(), vb_decode_framedata(), vb_decode_palette(), and vorbis_header().
static unsigned int bytestream_get_le16 | ( | const uint8_t ** | b | ) | [inline, static] |
Definition at line 47 of file bytestream.h.
Referenced by adpcm_decode_frame(), atrac3_decode_init(), bethsoftvid_decode_frame(), bfi_decode_frame(), bmp_decode_frame(), decode_bdlt(), decode_dds1(), decode_dsw1(), decode_frame(), decode_i2_frame(), decode_tsw1(), decode_wdlt(), gif_read_extension(), gif_read_header1(), gif_read_image(), ipvideo_decode_block_opcode_0x7(), ipvideo_decode_block_opcode_0x7_16(), ipvideo_decode_block_opcode_0x8(), ipvideo_decode_block_opcode_0x8_16(), ipvideo_decode_block_opcode_0x9(), ipvideo_decode_block_opcode_0x9_16(), ipvideo_decode_block_opcode_0xA_16(), ipvideo_decode_block_opcode_0xB_16(), ipvideo_decode_block_opcode_0xC_16(), ipvideo_decode_block_opcode_0xD_16(), ipvideo_decode_block_opcode_0xE_16(), iv_decode_frame(), mimic_decode_frame(), msnwc_tcp_probe(), mszh_decomp(), ogm_header(), pcm_decode_frame(), roqvideo_decode_frame(), and xan_decode_chroma().
static unsigned int bytestream_get_le24 | ( | const uint8_t ** | b | ) | [inline, static] |
Definition at line 46 of file bytestream.h.
Referenced by bmp_decode_frame(), and cinvideo_decode_frame().
static unsigned int bytestream_get_le32 | ( | const uint8_t ** | b | ) | [inline, static] |
Definition at line 45 of file bytestream.h.
Referenced by adpcm_decode_frame(), atrac3_decode_init(), bmp_decode_frame(), decode_frame(), decode_i2_frame(), decode_init(), decode_tsw1(), ff_parse_mpeg2_descriptor(), ff_vorbis_comment(), fraps2_decode_plane(), ipvideo_decode_block_opcode_0x8(), ipvideo_decode_block_opcode_0x8_16(), ipvideo_decode_block_opcode_0x9(), ipvideo_decode_block_opcode_0x9_16(), ipvideo_decode_block_opcode_0xA(), ipvideo_decode_block_opcode_0xA_16(), iv_decode_frame(), mimic_decode_frame(), msnwc_tcp_probe(), mxf_get_d10_aes3_packet(), ogm_header(), pmt_cb(), roqvideo_decode_frame(), txd_decode_frame(), vorbis_header(), and xan_decode_frame().
static void bytestream_put_be16 | ( | uint8_t ** | b, | |
const unsigned int | value | |||
) | [inline, static] |
Definition at line 51 of file bytestream.h.
Referenced by encode_bitstream(), encode_dvb_subtitles(), encode_dvd_subtitles(), encode_frame(), ff_amf_write_field_name(), ff_amf_write_string(), gen_play(), gen_pong(), iff_read_header(), iff_read_packet(), mjpega_dump_header(), ogg_build_flac_headers(), put_cod(), put_qcd(), put_siz(), and put_sot().
static void bytestream_put_be24 | ( | uint8_t ** | b, | |
const unsigned int | value | |||
) | [inline, static] |
Definition at line 50 of file bytestream.h.
Referenced by encode_frame(), ff_amf_write_object_end(), ff_rtmp_packet_write(), flac_write_block_comment(), get_packet(), gif_image_write_header(), imx_dump_header(), ogg_build_flac_headers(), pam_encode_frame(), pcm_encode_frame(), pcx_encode_frame(), and xsub_encode().
static void bytestream_put_be32 | ( | uint8_t ** | b, | |
const unsigned int | value | |||
) | [inline, static] |
Definition at line 49 of file bytestream.h.
Referenced by encode_frame(), ff_rtmp_packet_write(), gen_bytes_read(), gen_play(), gen_pong(), get_packet(), mjpega_dump_header(), png_write_chunk(), put_siz(), and put_sot().
static av_always_inline void bytestream_put_buffer | ( | uint8_t ** | b, | |
const uint8_t * | src, | |||
unsigned int | size | |||
) | [static] |
Definition at line 65 of file bytestream.h.
Referenced by encode_packet(), ff_amf_write_field_name(), ff_amf_write_string(), ff_vorbiscomment_write(), get_packet(), gif_image_write_header(), gif_image_write_image(), imx_dump_header(), mjpega_dump_header(), ogg_build_flac_headers(), ogg_build_speex_headers(), ogg_write_header(), qtrle_encode_line(), write_codebooks(), and write_typecode().
static void bytestream_put_byte | ( | uint8_t ** | b, | |
const unsigned int | value | |||
) | [inline, static] |
Definition at line 52 of file bytestream.h.
Referenced by bmp_encode_frame(), encode_frame(), ff_amf_write_bool(), ff_amf_write_null(), ff_amf_write_number(), ff_amf_write_object_start(), ff_amf_write_string(), ff_rtmp_packet_write(), ff_vorbiscomment_write(), flac_write_block_comment(), get_packet(), gif_image_write_header(), gif_image_write_image(), iff_read_header(), imx_dump_header(), mjpega_dump_header(), ogg_build_flac_headers(), ogg_write_header(), ogg_write_vorbiscomment(), pcx_encode_frame(), put_cod(), put_qcd(), put_siz(), put_sot(), qtrle_encode_line(), reconstruct_and_encode_image(), roq_dpcm_encode_frame(), roq_write_video_info_chunk(), send_media_packet_request(), and write_codebooks().
static void bytestream_put_le16 | ( | uint8_t ** | b, | |
const unsigned int | value | |||
) | [inline, static] |
Definition at line 47 of file bytestream.h.
Referenced by add_entry(), adpcm_encode_init(), bmp_encode_frame(), decode_wdlt(), encode_frame(), ff_put_wav_header(), ff_rtmp_packet_write(), gif_image_write_header(), gif_image_write_image(), mxf_get_d10_aes3_packet(), pcx_encode_frame(), reconstruct_and_encode_image(), roq_dpcm_encode_frame(), roq_write_video_info_chunk(), send_stream_selection_request(), start_command_packet(), write_codebooks(), write_typecode(), and xsub_encode().
static void bytestream_put_le24 | ( | uint8_t ** | b, | |
const unsigned int | value | |||
) | [inline, static] |
Definition at line 46 of file bytestream.h.
Referenced by mxf_get_d10_aes3_packet().
static void bytestream_put_le32 | ( | uint8_t ** | b, | |
const unsigned int | value | |||
) | [inline, static] |
Definition at line 45 of file bytestream.h.
Referenced by add_entry(), bmp_encode_frame(), encode_frame(), ff_put_wav_header(), ff_rtmp_packet_write(), ff_vorbiscomment_write(), insert_command_prefixes(), reconstruct_and_encode_image(), roq_dpcm_encode_frame(), roq_write_video_info_chunk(), send_media_file_request(), send_media_header_request(), send_media_packet_request(), send_protocol_select(), send_startup_packet(), send_stream_selection_request(), start_command_packet(), and write_codebooks().